4 ms·
This starts with the blanket statement that you should always use javascript when starting a new web project and then follows up with two examples of using java
by lojack 11y ago
This starts with the blanket statement that you should always use javascript when starting a new web project and then follows up with two examples of using javascript in non-web environments.
While I agree that Javascript has matured a lot, and it has its place in the backend, I strongly disagree that it should always be used. We need to give thought about why we're using it and make it a conscious choice. It can be that its a single language on the frontend and backend. It can be the abundance of developers. It can be it's evented nature. But blindly making a choice without thought leads to a cargo cult mentality.
Additionally, there is no replacement to backend code. We may one day have good enough abstractions to allow us to mostly forget about the backend, but it will still be there. Bugs will arise where we need to understand how it works, and there will always be some sort of API (whether hidden or not) that we need to be mindful of. The web is a client-server system, and we can't forget that.
- erikpukinskis 11y ago"Default to JavaScript" is not "use JavaScript".
- lojack 11y agoYes, I agree, if I "Default to javascript" then I'm evaluating options and picking Javascript in the absence of a clear choice. However, if I "Always default to javascript" then I'm picking Javascript without evaluating any other options.