Better HN
topnewbestaskshowjobs
Log inSign up

CSSer

2,366 karma · joined Mar 15, 2019 (7y ago) · 973 submissions

Sometimes fascinated by pieces of cheese
Submissions

comment 6y ago · link · parent

I can’t argue with that. I think the syntax highlighting is also part of it. It’s hard to have vivid, readily meaningful colors against a background that is washing everything out. Shades of dark text just aren’t as compelling. Come to think of it, that’s probably why most light themes are “solarized”. I guess you can only go so bright.

comment 6y ago · link · parent

I’ll admit it’s not the best phrasing (and I’m definitely not an ophthalmologist, so I’m playing fast and loose here). Your pupils dilate to let in more light because there’s less light overall when the background is black. This causes your lens to distort slightly, thus making the edges of the white text appear to be fuzzy or bleed into surrounding characters. I couldn’t find a scientific source on this, but a couple articles called it the “Halation effect”. Over time, this creates eye strain, and it’s apparently worse for users who have astigmatism. Of course, if the text is sufficiently large enough, this effect should be at least somewhat mitigated. Generally, at least in my use cases, it’s not large enough. Although the more I think about it, I’m rarely really staring at white on black. It’s usually more like various colors against a very dark navy. I should probably just rest my eyes more...

comment 6y ago · link · parent

That’s fair. I really like the contrast. Dark side of the moon is nice, but it’s always left me wanting more.

comment 6y ago · link · parent

They taught us this in advertising. White text scatters over the iris on a dark background, so it’s harder to read the copy. I’ve even read it in UX articles. It was amusing to get out of school and into the tech industry to find dark mode everywhere.

Granted, I use it too. Both my terminal and editor have dark themes. I’m not really sure why. The terminal isn’t really a big deal to me. I could go either way there. But I’ve just never found a lighter color theme that wasn’t offensive in an editor. I always try them for a bit and end up switching back.

comment 6y ago · link · parent

Since the 80s. Robert Bork’s ‘The Antitrust Paradox’ was a watershed moment that paved the road for what we have today.

comment 6y ago · link · parent

This might seem like a cliché answer, at least because this is not what I typically listen to on a normal basis, but for an album I'd Pink Floyd's The Wall.

I think it has a certain degree of universal appeal. It has really aged extraordinarily well. If you are ever given the opportunity to listen to it on an any type of hifi system, do so. You'll find layers of eery texture and masterful use of stero dynamics. As a cherry on top, the album forms a perfect loop.

As for a song, Aphex Twin's Avril 14th. I love that you can hear the action of the piano in the track. It was recorded with a kind of player piano that makes it sound very mechanical, but it still has a somewhat organic feel to it. It's very quaint yet oddly contemporary.

comment 6y ago · link · parent

Hhhmm, I think but I can’t know for certain that it may be because comments that don’t contribute to the discussion are discouraged. So one may argue you could’ve just upvoted. Generally I agree with this approach, but sometimes people just deserve some verbal applause. ¯\_(ツ)_/¯

comment 6y ago · link · parent

I was about to suggest this may also vary by subject, but using philosophy as a case study it seems to at least somewhat hold water. I’ll use philosophy only because I minored in undergrad, so I’m not an expert but I’m also a bit more well versed than a laymen.

Anyway, I’ve extensively read Spinoza (Portuguese), Sartre/Beauvoir & Camus (French), Kant (German), Aquinas & Boethius (Italian). I’d expect most others with philosophy backgrounds to at the very least know these names and a synopsis about them too. All that being said, I’m hard pressed to name a Hungarian or Finnish philosopher. I wonder why these languages are less prominent internationally in literature.

comment 6y ago · link · parent

I concur, bravo! Someone should enshrine this comment somewhere. Sometimes I wish hacker news had a “best of”.

comment 6y ago · link · parent

I’m sorry the parent comment was so aggressive but I think their sentiment does have merit.

This is particularly true on mobile where trying to use the back buttons once I finished reading became particularly confusing because mobile browsers hide parts of the URL.

If it’s any consolation, you are not the first nor will you be the last person who has ever done this. Directly mutating history has costs that are not always readily apparent. The advice not to do so is not an old wive’s tale.

comment 6y ago · link · parent

To add another dimension, people who draw swastikas and claim it’s not bad because “we didn’t mean it _that_ way”.

comment 6y ago · link · parent

Usually local music shops or chains that sell gear also employ or rent space to instructors. Qualifications can vary a lot, which is why I strongly support the suggestion others have made to try out multiple teachers.

For lessons particularly, err on the side of thinking you’re not the problem. You’re paying hourly for this, and if you don’t click with the teacher it could be fairly expensive to “make it work”. Some people are also great artists but terrible instructors. That wouldn’t be so bad if it weren’t for the fact that they are also often completely ignorant of that fact.

comment 6y ago · link · parent

Brb. I’m going to add suffix aliases for all of my frequently used code file extensions. I had no idea those are a thing.

Although I do wish I could pass a flag that didn’t open it, as sometimes I do want to append or overwrite a file without the fuss of an editor.

comment 6y ago · link · parent

> Seems like a no brainer to me.

I see what you did there.

comment 6y ago · link · parent

I've been really interested in Intercooler.js, but the jQuery dependency bummed me out. This is a very cool project, and I highly appreciate you putting in the work here!

I do have one question. Is there a specific reason why you chose not to follow the standardized specification[0] of using data-* prefixes for HTML attributes? I realize it's pedantic, but I'd like to see this project receive wide support and usage. I'm concerned many potential users will criticize this.

[0]: https://html.spec.whatwg.org/multipage/dom.html#embedding-cu...

Edit: Nevermind, I just looked through the docs from the start. You do support it!

comment 6y ago · link · parent

I was raised in the darkness, so things don’t often look as bad as they are to me. Regardless, the clear distinction between PHP and JavaScript seems to be that I can choose whether or not I’d like to use one but not the other (and no, wasm doesn’t count because it still requires JS).

For me, I just don’t why I’d choose to use it for a green field project. Sure, it’s better now, but people have warned me to stay away from the boogeyman lurking within. Maybe it’s there, maybe it’s not. But why should I take the risk if it’s pretty much the same as other modern languages that might have cool stuff.

comment 6y ago · link · parent

Iirc, the last time I looked into this, .test is the recommended TLD to use because it’s reserved for non-production use I.e. it will never be bought or sold.

comment 6y ago · link · parent

Could you throw out some names you liked? I tried See thinking it would be really good. I was unfortunately really disappointed and stopped watching after a little over halfway through the season. It diminished my faith in the platform because it was so heavily marketed.

Your comment makes me willing to give it another shot before my year is up.

comment 6y ago · link · parent

It’s funny to think about the differences in technical ability here. I build stuff for people to edit that our team often ends up editing for them. It’s not a complex CMS. People just get nervous and/or are lazy. Just existing in the digital age is a struggle or an annoyance for them, let alone this.

Occasionally I run into someone in Marketing/Sales who is in love with the idea of Zapier. It’s always Maslow’s hammer run amok.

My guess is this no-code thing is just taking advantage of the increasingly large, seemingly untapped demographic you mentioned here. They just don’t realize the actual cost they’re committing themselves to.

comment 6y ago · link · parent

I'm sorry, I'm still confused. Perhaps the best question to ask you is where does the risk come from him borrowing the money either way? He gets it for virtually free. The fed propping up the market devalues the currency, yes, but it just gives him more time to act and everyone else is in the same boat with him. The way I see it, even if his stock goes down, he still has $70B and a trivial amount of interest to pay.

Also, we should probably use a lower number, because I struggle to think of a scenario where a single individual would actually need that much capital at once. If we need to use someone else for a different hypothetical I'm open to that too, because Amazon's stock has risen 46% since it hit its YTD low on March 16th, which is 10% higher than its previous all-time high.

comment 6y ago · link · parent

Isn’t the idea that the fed makes it basically free, and if you get in big trouble they’ll just step in and bail you out?

comment 6y ago · link · parent

Fair enough. I guess I know what Zeit means, but not Vercel. Maybe they just wanted the “V” to fit nicely next to the triangle? ;)

comment 6y ago · link · parent

This is pretty cool. It’s reminds me of https://css-doodle.com/, which is a native web component with the same general goal. Iirc, it uses canvas under the hood.

comment 6y ago · link · parent

I’m surprised to see so many people nagging about the brand. As one user pointed out, there’s a big newspaper brand with that name already. And otherwise, who cares, really? Same company. It’s not a soccer team.

comment 6y ago · link · parent

Interestingly, the thread you linked to also has links to other discussions where the React.js team provide their reasoning for why they decided against using generators[0] that the author of Crank.js didn't mention in their post. There's also a more basic breakdown of that explanation deeper in the twitter thread here[1]. As I understand it (and I am no expert), Crank.js's usage of generators is not the most performant because it doesn't provide an avenue to avoid recalcing work. In this case, memoization/caching does nothing to save you.

There are also other interesting tradeoffs, like suddenly making everything a generator as a result (as seen here). It's not that big of a deal to me, personally, but it's not something that everyone in the JS world is necessarily used to either.

Overall, it seems to be about target audience and priorities. Facebook seems to really care about intense performance at scale and they want all of their developers to be able to use their framework with ease. It seems they don't mind if that means requiring a bit of their own 'dogmatic' education as the author put it. Regardless, I agree. This is really interesting stuff!

[0]https://github.com/facebook/react/issues/7942#issuecomment-2... [1]https://twitter.com/swyx/status/1244749594472243200 (see @samselikoff's reply and following discussion)

comment 6y ago · link · parent

You’re probably right. It’s like they’re not even really digesting the numbers I and at least one other person have put in front of them. There’s some extreme cognitive dissonance going on if they really think that the results of just unleashing this in force on the population are really the same whether you do it all at once or spread it out over an arbitrary period. These are not fiscal installment payments, and we can’t just wave a magic wand and suddenly make our healthcare system capable of handling it over night.

After thinking about it for a moment, I really hope you’re right, because the alternatives just make me sad.

comment 6y ago · link · parent

> At best, they’ll get it but just at a rate where they die at an acceptable rate.

They’ll save lives by ensuring medical staff can attend to people who would otherwise die of problems that are wholly treatable with modern medicine.

> herd immunity

Let’s do the math. Based on what I have read, it would take infecting 70 percent of the population to reach herd immunity with this virus based on the R0 value of roughly 3. If we let that happen, 0.35-0.7 percent of the population will die. In the U.S., that’s 11,445,000 people in the best case. 10 percent of all infections need to be hospitalized. That’s 32.7 million people requiring medical care at an unpredictable rate. It sounds like you’re suggesting 3 weeks, so let’s roll with that. Here’s the problem: young or old, we can’t handle that. The number of hospital beds is nowhere near close. How do you feel about those numbers?

comment 6y ago · link · parent

Okay, good. I know it's popular to hate on JS, but I think it catches a lot of undue flack. I know it's not perfect, but I also know enough to have at least learned the reasons for most of its shortcomings. I mainly asked because it was my first language, so I often wonder if there really are greener fields out there and if yes, how much greener they actually are.

comment 6y ago · link · parent

> Major commercial sites are built with little to no direct DOM manipulation.

Little implies some, and I think the average bundle is already large enough without saying, "Oh, just throw jQuery in there whenever you do need to do DOM manipulations.", which will happen. I built a React app a couple weeks ago where I had to use portals to integrate it with a legacy form solution because we didn't have time to rewrite the entire form backend to justify a custom frontend. It involved a fair amount of manual DOM manipulation, but it worked out fine. All said and done, it was probably ~75 lines in a file with a few more comments than usual. It doesn't make sense to add 30kb or even 10kb to the bundle for that, so yes, I would expect the average developer to know the base DOM api at least somewhat well.

edit: I completely forgot about TDD. Depending on your testing environment, you may need to understand the DOM api for mocking or base utilities built into the test suite.

1
2930313233