1
cb219
2y

Wanted to start a little project of writing a website from scratch with a given template. No framework, just a basic thing. Apparently I've already done some work, long ago. And of course, I don't understand several parts anymore that are written. All knowledge and context gone. fuck...
At least I've realized I went for BEM css, instead of my utility css approach nowadays. Now the css has become hard to change, without accidentally breaking things. Also no git, surely because it was "just a small thing". Almost about to delete and redo. Fuck fuck fuck!

Comments
  • 0
    yeah don't go without git, especially if you go frameworkless, looking through git history really helps understand a codebase even if it was terribly written. i too have written my own php framework and tried to maintain a large vanilla js application and i typed a lot. the only one where i haven't typed alot was svelte.

    BEM isn't much better tbh than utility first, what you should focus on is layout first framework like mflx and then use components to have your css scoped to the component. you can write much larger apps that way without polluting your classes. actually using components in a js framework make utility style frameworks bearable. i legit use mflx in all my personal and I've even used it in a client project https://www.npmjs.com/package/mflx

    you can also use webcomponents too and the styles are scoped so you don't need BEM
Add Comment