HN user

thex10

1,007 karma

front end web dev / data viz

Posts12
Comments320
View on HN
Sanding UI 2 years ago

This attention to detail is what separates the mediocre frontend devs from the rest. How the heck do I improve our hiring process so we get more of you!!!

ACE 4, raised by my grandmother and alcoholic drug addict mother in the projects. I made it out only because my aunt gave me a handmedown PC when I was 13, I lucked out into a magnet high school, and was granted admission with full financial aid into MIT (and was somehow able to graduate in 4 years). Grateful for it every day.

After I birthed my first kid in my early 30s at the start of the pandemic, my struggles with depression and anxiety seemingly vanished.

I've always been very risk averse, so I fear I'll never be able to start a startup or something like that. It's always sounded fun. Now that I'm very stable and well, and ok financially (the house cost way more than I'd like)... it still feels too risky for me to leave my normal job. Maybe I'll try in my 40s...

I recently watched a documentary[0] about the social media dangers for children. It mostly centers around narratives & interviews from a variety of people young and old, and in my opinion decently avoids trite pearl-clutching over vague assumptions about 'technology' or any particular company. Among other things, I am a bit floored by how much child suicide has increased over the past decades.

[0] "Childhood 2.0" https://www.youtube.com/watch?v=He3IJJhFy-I

Having grown up in the bottom decile of poverty in the USA I can believe it. I credit my childhood's stability for much of my success in life. Sure my life, especially at home with my family, was broke, boring, uninspiring, not the least bit enriched... but it was incredibly stable thanks to living in public housing and being on welfare. It's much easier to find your way out if you don't have to process and respond to chaos :)

Noise canceling wireless earbuds. I’ve had both a Jabra and a Beats… very happy with both. Nice for blocking out noise. No messy cables, can use with any device…

I was skeptical, I liked my corded headphones fine. Just turns out these sound better and are way more useful for me.

I try to push for making websites without JavaScript but nobody wants to because it requires some forethought. TIL Amazon has a functional no-JS version, amazing!

Right on.

Related, the junior FE devs want our web app to be a SPA because they think it’s the only idiomatic way to write reusable components (think a JSX-written React component). Often they’ve never used anything else (so like TFA mentioned, for them it’s not an open choice).

I hate that my job these days has to involve counteracting this notion, probably looking like some weird Luddite in the process, for simply highlighting the same points from TFA.

React is still a good tool for writing MPAs, if you can get your team to stick to it. But unfortunately, if you aren't careful, React has become an infectious disease and slowly eats your whole frontend, even where it's not necessary and in fact, counterproductive. Pages which initially had a component or two, slowly are completely rendered in React, and when this happens to enough pages, someone starts wondering why your site isn't an SPA.

This started happening to me this year. And all the other senior devs who know better happen to be gone from this project, so I'm alone having to convince these junior engineers (working on a very large non-JS-backend web application mostly with content pages!) that SPAs are not the ultimate solution to all. It's so frustrating.

business incentives work more strongly against reuse because the higher ups can actually see the work that is being shared

Can you talk more about this one? I think this is getting at something I've seen but have been unable to articulate thus far.

Respect to you! This might sound ridiculous to some but is honestly my personal ideal as well.

I have found it hard to achieve in real world settings. The PM wants to know how many visitors aren’t enabling JS before we dare justify any effort towards supporting that case, for example.

Yeah, I’ve too noticed how hard it is to find any web development guidance involving direct DOM manipulation now!

I was recently refactoring some code and wondering whether to use a (JS) class… The search results were mostly about React Class Components. And I was contemplating building a reusable component… results from the past decade were split between React Components and Web components. (In retrospect I should’ve tried DDG or something not connected to my search history lol).

Anyway where are the vanilla JS/TS DOM manipulators blogging these days? I guess here is one, thankful for the post :)

Not enough discussion here of the parts under "Our Optimization Strategies", which was the most interesting to me. Assorted reactions:

We found that react-icons had an issue that lead to everything being imported. This meant that we were including every single react-icon in our package whether we need it or not.

Kudos to the Linen team for proactively finding this - I have a feeling tons of projects blindly trust that tree-shaking their dependencies will "just work" even though for many libraries it won't!

We also noticed that we were only using AWS client for s3 upload on the client side and it was taking up significantly more bundle size we need so we replaced the entire client side package with a 2 api calls to the AWS api.

For such a minimal use case, this feels like a logical choice even if it's slightly more work to implement.

We ended up moving the code highlight code to a backend api that would cache the results.

Love seeing websites make smart choices about which work to handle in the server versus the client.

This is pretty silly because governments do compete for residents.

I agree, but I also think many places compete poorly.

I recently moved to a fast-growing (read: developer-friendly) region of the USA that often claims to be a "top place to live". And I might just leave, for many reasons:

* The water tastes terrible. But I bought a filter so whatever...

* The schools are bad. But I can try to lottery into the magnet school, okay..

* The services suck because they are not made to keep up with demand. Worse yet this is "normalized", seen as completely okay by the culture.

* Can't make a DMV appointment yet, next appointments available in three months

* None of the post offices accessible to me have passport appointments available. The only walk in service available is in another county

* I can't drive, transit exists but is too infrequent to be a good option to get to that other county for a very specific appointment

That's just a small slice of government-enabled things which happen to affect me. But what of it? No one in power gives a shit. So f--k me for having high expectations, I guess.

Full stack devs working with JS on the backend love to be able to reuse their code on front and back end when desired. This question is relevant to them and them only.

It eventually turned out that a single type definition in the file was causing all typechecks to become incredibly slow

I've love to read a blog post about this.