Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess I'm just "weird" for thinking the laziest and least error prone way to write a web app is in plain javascript?

Any framework is too much extra work to learn and going to eventually get you shot in the foot.



Least error-prone and JavaScript in one sentence, I’m not sure about that, to be honest. JavaScript alone without any types in a big project is a shot in the foot, let alone the quirks JavaScript has. Apps crash when a thrown error is unhandled, etc.

I would say JavaScript is easy, but it’s definitely not the type for a least error-prone app.


Slap TypeScript on it.


I think there's a scale/complexity thing to be considered.

If your web app is simple, then frameworks and "safe" languages are unnecessary.

At some stage though, that flips around. There's no way I'd choose to write, say, gmail or Trello in "plain javascript". The learning curve of a suitable framework for projects like that are well worth the eventual productivity, and the number of feet to shoot in your project will way exceed the number of feet added by the framework, and hopefully the framework will prevent way more foot shooting opportunities than it adds.




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

Search: