Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
b3b340655yFuck you. I don't want to run a few thousand lines of js just to view a webpage. Css rules!
-
Using Vue to bypass CSS is like buying a 40 t truck because your bicycle has a flat tire.
-
Root797705y@Hazarth This.
@Fast-Nop This.
@b3b3 This.
Grats on building something from scratch with completely foreign tools in three days, though! -
joas18915yJust curious. What UI library did you use then?
I can agree that custom element's are like Bootstrap of today. I'd say using them is not bad if you don't want to design the user interface components yourself but instead rely on these libraries. If you want to create an unique website, they won't do you any good though. -
joas18915yI've struggled with CSS selector priority a lot of times and seen many people do too, but now that I've done web development professionally for three years, I'm in a position that I quite about know what's happening. I should read the specs to know every quirk for certain though.
!important and z-index hell is real and there's no way out if you don't understand what's happening. -
So CSS sucks, because you don’t master it after three days. I guess you also hate French, Spanish, German, Japanese etc?
-
K-ASS25455y@JohnDoesNot I do hate Japanese after two years of learning.
Just because I don't master something doesn't mean I can't hate it. I hate cooking, but when I do cook for my girlfriend she thinks it's good. Or do I have to be a Master chef to make the statement that I hate cooking?
I also hate drinking, do I have to be an alcoholic to day that?
It's just not a beautiful thing, and to me that's enough to hate it.
I'm pretty sure there are people who says JavaScript is shit without mastering JavaScript, go ahead and take your piss on them, not here. -
@K-ASS There's good reason why you shouldn't abuse JS for things CSS can already do, and that's performance.
Since JS is (mostly) singlethreaded whiledoing stuff with CSS allows the browser to do stuff in parallel, so that speeds up. Especially CSS animations, but only if done the right way, can even profit from using the GPU.
JS frameworks have an entirely different purpose, which is managing doing the UI logic with regard to states and data. -
K-ASS25455y@Fast-Nop oh, I'm not saying I'm replacing what can be done in css with is, I'm just saying css has unpredictable behavior sometime and it really annoyed me. The result of the website actually looks great, but I'm too afraid to post it now since I got so much hate
-
K-ASS25455y@joas I did encounter the z-index problem. I had 4 div part all clickable and exhibits strange overlap behavior on the first click but are fine afterwards. It was indeed a z index problem and I had no idea how to fix it, not that I don't know what exactly is happening but it seems to be non fixable because the order they were created, and eventually the 4 divs are the same app so I really don't want to set individual z index upon mount. So to fix this shit, I just called the click method upon mount so users will never see the actual first click.
Yup, fuck css -
sebson575yFair play for not spending a ton of time dicking around with something that you didn't like using (css) and being able to find the right tools for yourself to build what you needed in 3 days.
Never wrote a website before
Wanted to write a website for myself just for PhD application.
Learned Vue on Saturday and wrote the website in three days.
Conclusion: fuck css
I can post the website if anyone is interested to take a look though
rant