News for hackers. Stuff that matters.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by daveslash on Friday September 09, 2022 @12:43PM (#32781558)
Re >> From someone who has used React professionally but uses vanilla HTML/CSS/JS for his personal website"

What a refreshing perspective. My personal site is also vanilla HTML/CSS/JS on a self hosted server. I constantly catch flak from all of my software engineering friends for it too, and I'm a little burned out on it.

Edit: I'm a bit burned out on the flak and defending my position; not burned out on the approach :-)

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by jraph on Friday September 09, 2022 @12:46PM (#32781599)
Please don't burn out for this. Vanilla HTML/CSS/JS is just a very right way of building a website. I don't know how we ended up having to even debate about this.

Don't worry, just enjoy the simplicity, the zen and the lightness of this.

(from a professional web developer, if it even matters - but the web, especially JS, was not targeted at professional web developers, which is the reason why JS is so "forgiving" - or was intended as such, but that failed miserably if you ask me)

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by rodolphoarruda on Friday September 09, 2022 @12:54PM (#32781742)
Yes. Some things should be designed as simple as possible so they can last.

https://jeffhuang.com/designed_to_last

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by daveslash on Friday September 09, 2022 @01:26PM (#32782247)
I've updated my comment to reflect that I'm burned out on catching the flak, but not the work itself. Personally, I love basking in the zen of the simplicity! I used to be a professional web developer in a former life, but these days I'm more medical-device and embedded focused. I moved out of the web space around the time that AngularJS was becoming the hot-new-thing, for better or worse.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by karaterobot on Friday September 09, 2022 @01:27PM (#32782282)
I got burned out by all the frameworks. It's one of the main reasons I left web development. I love the web, and I still do personal web projects, even though I don't do them for work anymore. I just exclusively use vanilla JS, and make sure the scope doesn't get big enough that I need to construct a giant mech suit of frameworks and libraries and climb into it every time I want to make an app!
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by lolinder on Friday September 09, 2022 @01:40PM (#32782436)
For a website the vanilla tools are exactly right—it's what they were designed for and they still do a really good job at it.

The frameworks are only really worth their weight if you have a web app. I'd only consider a web framework if there's going to be >2x as much JS as markup.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by anotheracctfo on Friday September 09, 2022 @02:39PM (#32783230)
I'm amazed at how many developers need ridiculous complexity to feel like they've accomplished something. I feel that too many people are focused on building resume keywords than solving problems.

If you can solve it in 20 lines of CSS / JS then do it.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by oxff on Friday September 09, 2022 @02:53PM (#32783371)
You don't get hired for, say, a role that requires Svelte / React expertise by pointing out "I did it in vanilla JS!" - so you are correct, industry sets the rules and your CV if you want a job from them, needs to reflect this.

There are also software engineering (not programming) reasons, mostly because they set standards for stuff like state management, for why they're useful - helps with future maintenance, documentation etc. when you don't have to interpret a custom self-made framework and teach it to hires.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by dieselgate on Friday September 09, 2022 @03:21PM (#32783688)
Yep my thoughts as well. It’s great to use vanilla js for a personal website (I do) but if one is seeking employment knowing a popular framework (both backend and front end) is also critical.

It also seems worthwhile from an Org standpoint because then they can target “react” or “vue” developers in job postings who can presumably hit the ground running productivity wise.

(This is basically just echoing everything parent comment was saying)

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by Existenceblinks on Friday September 09, 2022 @04:07PM (#32784227)
Poll

- Job market sucks

- Industry sucks

- JS framework sucks

- Developer sucks

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by kaeruct on Friday September 09, 2022 @12:51PM (#32781693)
Those are some strange friends. Who cares what you use on your own website?
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by DanAtC on Friday September 09, 2022 @12:46PM (#32781602)
A good engineer knows which tools are right for the job.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by codyb on Friday September 09, 2022 @02:42PM (#32783268)
Wow, what an interesting response. If someone told me they were trying different approaches to similar problems on their own time I'd say "Sounds like you'll probably learn something someone using the same approaches or not solving the problems on their own time wouldn't".

Those engineers sound like the kind I don't like to work with. Giving you gaff for wanting to tinker on your own time is downright haughty.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by jcpst on Friday September 09, 2022 @03:04PM (#32783508)
I remember reading a similar HN thread in the past where someone didn’t understand how you build a html form without React, and that it seemed wild that someone would consider it.

Framework, no framework, whatever works. I’m a fan of your approach. But it’s interesting to see how abstractions like react have created a class of web developers that may not know their HTML / DOM fundamentals.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by vinibrito on Friday September 09, 2022 @11:31PM (#32787509)
I once interviewed a guy for a clearly vanilla JS position and he only could work with React. He literally could not declare a variable in vanilla and display it in a hello world html element.

I completely understand his approach, was someone breaking into web dev and people demand frameworks and not vanilla, but definitely felt weird to me.

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by 6510 on Saturday September 10, 2022 @07:45AM (#32789776)
Then they make modules using modules and others use their modules to make modules too! Each module has little snippets copied from stack overflow because you inevitably have to have code that does things eventually.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by francisofascii on Friday September 09, 2022 @01:44PM (#32782501)
Yep, and honestly this is why people don't see as many vanilla sites. Fear of flak, or being labeled a cowboy from the pro-framework, declarative is better, crowd.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by datavirtue on Saturday September 10, 2022 @09:10AM (#32790286)
I stopped talking to other developers. Does wonders for your mental health.