3 ms·
>> puts the logic in the right place There’s no “right place”. It’s a web browser. You program it in whatever way you like that you enjoy that makes sense to
by andrewstuart 3y ago
>> puts the logic in the right place
There’s no “right place”.
It’s a web browser. You program it in whatever way you like that you enjoy that makes sense to you.
Use whatever approach you need to get the job done. Mix and match. Come up with new ways. Do it simple. Do it sophisticated. Combine JS and CSS. It’s all valid.
Don’t listen to people who try to tell you how to program.
- rado 3y agoJS for UI is wrong, because there will be FOUC, and if you preload JS, the page will be slower. Of course, if something is impossible with CSS, JS is fine.
- andrewstuart 3y ago>> JS for UI is wrong Yeah that’s showing an incomplete understanding of web application development.
- rado 3y agoYeah, the 90% of web apps whose UI is broken, I don't understand them. Haven't we all seen multimillion $ airline mega web apps that can't present a decent form?
- frognumber 3y ago> Don’t listen to people who try to tell you how to program. This worked for me: * DO listen to people who tell you how to program * Listen to many types of them (Microsoft programmers, functional programmers, Unix systems wizards, digital logic designers, UX designers, etc.) * Do what they tell you for at least long enough to understand why they're telling you what they're telling you to do. This requires a very open mind. A Unix programmer stepping into a Microsoft shop or vice-versa will find many things which go against their most core values. * Understand the underlying, fundamental, first principles their best practices derive from (keeping in mind some of those first principles are incorrect -- especially within the Microsoft community), and different ways people have figured out how to structure code, the upsides and downsides of each, and how they mix-and-match. * From then on, program from first principles when you have time, from best practices when you don't, and quick-and-dirty hacks when you really don't, or are just having fun.