Hacker Newsnew | past | comments | ask | show | jobs | submit | more developer1's commentslogin

Courtesy of https://fourword.fourkitchens.com/article/fix-scrolling-perf... , remove the fixed background and instead place it in its own layer with will-chance: transform.

  .wrapper::before {
    content: ' ';
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: url('data:image/png;base64,...');
    will-change: transform;
  }
Tested with Chrome dev tools, the repaint troubles disappear. Unfortunately only supported in Chrome, Firefox, and Opera. But just checked, and at least in Chrome the performance problem goes away with this solution even with the will-change removed. YMMV


Yes, because the fear of death totally makes the decision to have faith in sci-fi a rational thought. I sincerely hope our species never solves the puzzle of immortal life or even prolonging a life past a natural existence. The mere thought disgusts me. Please, hell no.


iPad is much more niche compared to iPhone. Not everyone wants/needs a consumer device to lounge around with for the price point. Everyone wants a phone. And to people like me, the iPad keyboard is simply unusable in landscape mode. Has this changed? No idea why they insist(ed) on stretching the keyboard across the entire screen instead of leaving half of the keyboard accessible to either side with thumbs. Even if the keyboard has been updated, the larger form factors are just too large and clunky for 2-handed use.


You can tear apart the keyboard in two halves you can use with either thumb. Admittedly a well hidden feature.


Hrm, I'll have to try one out with that setting. I have both a MacBook Pro and an iPhone, but being able to watch video on a tablet while lounging around would admittedly be nice. I suspect the device will still be too bulky and heavy to comfortably type on for longer than a minute at a time, even if the keyboard allows for it. I'm always puzzled when I see a photo of someone typing with 2 hands on a tablet while lying down. I can't imagine physically arranging myself in such a way that this is even possible.


This. Frankly I don't understand these people who "don't get it". We're talking about the difference between moving on with your life with a guilty conscience, vs. having your entire life financially ruined due to injuring someone. I make $80k per year. If my country mandated > $100k per year for injuring someone, that's literally the rest of my life destroyed. I could not financially recover for the rest of my life. Ever. For what? An honest accident in which someone's leg is broken and they feign permanent disability?

Imagine you broke someone's leg. Would you rather kill the person and pay $1000, or spend the rest of your life in prison? Letting the person live and paying them $1000 isn't an option. You either get away scott-free, or ruin your life. I can completely understand a culture in which the reality of the consequences makes people choose the lesser punishment.

The solution isn't to increase the punishment for killing someone on the street. The solution is to abolish the ridiculous costs associated with merely injuring someone, especially if that injury comes from an accident.

Of course what's absolutely a joke is people acting all aghast about another country's culture from behind their white picket fences. You do realize that if you were born in their country, you would have the exact same perspective? What the fuck is with this high and mighty bullshit? Your upbringing in a privileged society doesn't make you better than those from less privileged societies, it just makes you privileged. Be thankful your day-to-day routine doesn't involve having to worry about the possibility of having to kill someone in order to keep your pristine life intact.


People are worth more than property.

Would I kill someone I don't know in order to save someone I know and love deeply? No. That is murder. Now saving a loved one vs. saving someone who is a stranger is a different scenario. The scenario depicted here is very clear. Kill or suffer loss of property that will impact your family physically.

I can see that this would be much harder to do in a collectivist society, I'll give you that much. But murder remains immoral.

I also agree that the consequence of injuring someone should be less. But I don't know what it's so high in the first place so I'm not at a point to really comment on that.

As an aside, I was not born in the U.S. and have lived the vast majority of my life in my country of origin. You stating that I would have the same perspective of those in China if I grew up there does not make that perspective the morally justifiable one. Not having grown up in that culture has given me (or most of us) the freedom of thought to come to the point where we can clearly identify it as immoral, even if we are never faced with the proposition.


> What the fuck is with this high and mighty bullshit

By the time a comment descends to this, it's clear that it shouldn't have been posted to HN in the first place. This is supposed to be a site for civil, substantive discussion. If you can't abide by that, please don't post here.


> Of course what's absolutely a joke is people acting all aghast about another country's culture from behind their white picket fences. You do realize that if you were born in their country, you would have the exact same perspective?

From the article:

> With so many hit-to-kill drivers escaping serious punishment, the Chinese public has sometimes taken matters into its own hands. In 2013 a crowd in Zhengzhou in Henan province beat a wealthy driver who killed a 6-year-old after allegedly running him over twice.

Clearly people born and raised in China do not "have the exact same perspective".


Count me in. Someone is making money, whether it's a an external contract or just the school itself. For Christ's sake, parent said high school. What high school student can't handle their own peanut allergy? Oh my, what if 16 year old Timmy trades his turkey sandwich for a peanut butter and jelly? Won't someone think of the teenaged children! I can't believe a high school gets away with that shakedown, you'd think that would be illegal.


<strike>You mention Stripe twice now.</strike> (Sorry, the first mention was by someone else in a comment above). If their offices were located in my city, I'd jump at a chance to work there. It has nothing to do with belief. It's an interesting and unique product. Really wanting to work on a product doesn't require drinking the kool-aid of PR hype. Companies who try to force the kool-aid down their employees' throats are not to my taste. If Stripe is like that, the bad kool-aid would win out over my severe interest and I would leave.


Is it that unique of a product? It's just payment processing. It's done quite well, but it's not as if they're the first to do payment processing on the internet.


Is this a book that someone with no background in the sciences involved can enjoy? Is it for the layman, or requires some knowledge of the facts involved to appreciate enough to read?


It's written in pretty easy way, you just must be interested in this stuff, then you'll enjoy it :)


Haha. You began listing off the IDEs, and I was going to post suggesting the IntelliJ line. There are still some clunky annoyances and bloat in the software, but overall it is the best line of editors I have ever used.

You say you've forked out money for both PHPStorm/PyCharm and the expensive IntelliJ. I thought IntelliJ automatically supports all the language addons, so why separate copies of the language-specific bundles? Am I wrong about IntelliJ, or did you just happen to buy that one last?


Well I have a mix of their free licenses (for open source projects) and paid licenses. I did pay for PyCharm and PHPStorm (and upgrades). Needless to say I do use commercial versions of all of them on an almost daily basis and I couldn't use anything else.

I could be wrong - but the way I understand IntelliJ language plugins is just really code autocomplete/syntax highlighting. PyCharm and PHPstorm have strong integration with the languages (debugging, inspectors, etc).

As an aside - for an individual license for IntelliJ $200 isn't a lot. Totally not rubbing it in but I've spent thousands of dollars on Visual Studio subscriptions (and I think they gave me a lifetime subscription of $50/month to Azure...). Check out bizspark - I definitely recommend it. Microsoft even waived the graduation fee for me.


To pitch in some preachy advice: with some time and effort, staging and production environments should be essentially identical. Sure, production is generally going to have more servers handling each service (more web nodes, more db/storage nodes, multiple load balancers, etc.), but the setup and deployments should not be any different.

All too often, we think of staging as nothing more than a clone of the development environment on a remote server where QA can get at it. If you run your load balancer (haproxy), web server (apache, nginx), database (mysql, postgres, mondo, elasticsearch), caching (memcached, redis) all on a single server for staging, you're eventually going to stumble on this kind of hard-to-diagnose problem.

One of the main disservices you are doing to yourself with a single-server staging is that all of your traffic is going to be travelling over localhost or, worse, over unix sockets. You're not even testing basic network latency or performance.

Staging should really be considered a first-level production. Its configuration and maintenance should be handled with the same attention to detail as production.


The dislike for Bootstrap isn't a hate for the framework and its components. It's the fact that most people do not customize it, and so nearly all Bootstrap sites _look_ like Bootstrap. Cartoonish and bulky rounded buttons, overly large menus, etc. The default theme feels equivalent to using Comic Sans MS. It's too Web 2.0 and not very professional looking.

Properly theming (at least in 3.x) took a lot of effort. Just try to make a theme whereby at first glance, you can't tell that Bootstrap was used. It's not that it's not possible to do, it just took a lot of time and effort to nitpick over every detail.

In professional environments (ie: real flesh and blood companies), developers cannot say "we're using Bootstrap's default theme". The business has designers, the designers come up with a design, and unless the developer can customize Bootstrap to accommodate the requirements, in a reasonable amount of time to meet deadlines, Bootstrap is simply not an option outside of using the grid system.


Sweeping generalisation there on people in "real companies" not being able to use Bootstrap's default theme.

That's precisely what we do at my place. We don't do it for customer facing things, but for back office tools why would we spend time customising Bootstrap? There are better things we could be doing with our time.


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: