As little code as possible

That should be the goal when writing code. As little of it as possible.
I don’t mean in the code-golf, how-short-can-I-make-this-line-of-code kind of way.
I meant that we should prefer HTML over CSS, and CSS over JavaScript. We should prefer pre-rendered HTML over dynamic, and server-rendered HTML over client-side HTML.
The planet is on fire, and our profession uses a lot of electricity. It’s a moral imperative that we reduce that consumption as much as possible.


This content originally appeared on Go Make Things and was authored by Go Make Things

That should be the goal when writing code. As little of it as possible.

I don’t mean in the code-golf, how-short-can-I-make-this-line-of-code kind of way.

I meant that we should prefer HTML over CSS, and CSS over JavaScript. We should prefer pre-rendered HTML over dynamic, and server-rendered HTML over client-side HTML.

The planet is on fire, and our profession uses a lot of electricity. It’s a moral imperative that we reduce that consumption as much as possible.

We can’t eliminate it entirely, but we can curb it dramatically by making better choices. And as a bonus, they’re better for our users, too!


This content originally appeared on Go Make Things and was authored by Go Make Things


Print Share Comment Cite Upload Translate Updates
APA

Go Make Things | Sciencx (2024-10-21T14:30:00+00:00) As little code as possible. Retrieved from https://www.scien.cx/2024/10/21/as-little-code-as-possible/

MLA
" » As little code as possible." Go Make Things | Sciencx - Monday October 21, 2024, https://www.scien.cx/2024/10/21/as-little-code-as-possible/
HARVARD
Go Make Things | Sciencx Monday October 21, 2024 » As little code as possible., viewed ,<https://www.scien.cx/2024/10/21/as-little-code-as-possible/>
VANCOUVER
Go Make Things | Sciencx - » As little code as possible. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/21/as-little-code-as-possible/
CHICAGO
" » As little code as possible." Go Make Things | Sciencx - Accessed . https://www.scien.cx/2024/10/21/as-little-code-as-possible/
IEEE
" » As little code as possible." Go Make Things | Sciencx [Online]. Available: https://www.scien.cx/2024/10/21/as-little-code-as-possible/. [Accessed: ]
rf:citation
» As little code as possible | Go Make Things | Sciencx | https://www.scien.cx/2024/10/21/as-little-code-as-possible/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.