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

For the rich SPA, styled-components is one of the best things that happened to the Web (CSS-in-JS)


One of the main "problems" we solved with adopting styled-components back in 2016 was styles colocation where more junior members managed to create a several thousand line CSS file with a mess of selectors which we couldn't safely figure out which is used where.

My current plan is to transition to CSS Modules which should allow preserving most (if not all) of the current styled-components DX and advantages.


CSS-in-js is one of the best things that happened to the web over the last 10y. And no, this is not for web documents which many call “apps” these days.


I never played this game before and I got stuck with the main menu as well :)


The div soup is for apps and semantic html is for documents. Not knowing the difference creates this kind of frustration.


It might be that there is no built-in functionality for some things in pure HTML. But most of the time, standard HTML tags provide all the functionality you need, even for web applications. And this benefits people with disabilities.


Nah, div soups are for when you really insist your app UI must look like you want, instead of being ergonomic or useful to end users.


The problem is, a LOT of people are treating documents as if they are apps.


You missed the point entirely.

You should still use appropriate tags like a, button, label, input and not div, div, div, div. Even apps have links


Input controls are always used by the apps (99.9%) and the post and div soup is not about that.


Buttons are often replaced by divs for no apparent reason. Look at Facebook for example.


Why there is no reading mode available on Paul’s website? :( reading his blog from my phone is physically painful


This page crashes my safari and Chrome tab instances on my iPhone


Had strange behavior as well on iPhone, couldn’t finish the post because it kept jumping around


Trying to debug this right now, had similar reports. It's something with my CodeSandbox embeds (through Sandpack). I've tried better error handling but nothing yet, based on the error I'm seeing it sounds like it's overloading the GPU. Surprisingly can't find anything in Sandpack about it.

Might just remove the embedded sandboxes. They're cool, but not needed.


Did you find anything?


I won’t be surprised if Tesla becomes a platform for other automakers like android from Google in the future


It definitely seems like Tesla is slowly seeping into the world of other car manufactures in an ongoing manner. And I don't think they/we have given much thought to what's yet to come. Batteries, auto-pilot, training/inference, manufacturing/robotics, and so on...

Do any of really think, especially given the track record, that most of the auto-industry is going to be able to do any of this alone? I imagine that eventually it will come down to a choice between partnering with a bunch of disparate tech/manufacturing companies or Tesla.

We all know there is disruption to come in general, but it's going to hit the incumbent auto-manufacturers like a brick if they don't wake up soon.


Auto makers are used to making their own platforms, and they won't change. Making a platform is not the hard part, and there are advantages to a custom platform for each vehicle.


Auto makers are used to integrating technology from other companies like Bosch.


But not their platforms. Automakers generally make their own platforms (though they will rebadge someone else's too), engines (again they share with each other, but most have their own), and transmissions. Everything else is outsourced to companies like Bosch.


The definition of readability changes with one’s experience. With time you really want something with less redirections and something which is easy to change like globally.


Debuggers allow you to examine a call stack with their states with a single breakpoint and yes sometimes you don’t event think about where to place the breakpoint like anywhere within a call stack. Another thing is that modern debuggers allow custom code execution which also in a way powerful tool.


I wish people stopped calling websites as applications and I wish web site developers spent more time learning how the world has been building great desktop apps for years. It’s just beneficial to get out of the bubble once in awhile to validate certain ideas


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

Search: