청개구리 스택 찬가
As someone hearted ❤️ a 2015 demo of mine, I decided that since #CSS got better (and hopefully I did too), I should go for a quick 2024 remake.
Here it is on @codepen
https://codepen.io/thebabydino/pen/wKoVGN
It's mindblowing 🤯 how much I could reduce the (esp. compiled) code - check it out!
HTML by 73%!
CSS by 70%!
I repeat: I shaved off at least 70% from each! ‼️
#Sass #SCSS #Haml #Pug #preprocessor #cssVariables #HTML #cssGrid #cssLayout #cssMaths #code #coding #frontend #web #dev #webDev #webDevelopment
#RubyOnRails #template #cagematch! Do you prefer #HAML or #Slim for new Rail 7.1+ apps? Either way, why?
I have a lot of experience with HAML, but historical benchmarks say its slower than Slim or #ERB. Linting HAML used to be painful, but more modern linters probably make that less of an issue.
What's the killer feature of your choice? How does the performance scale? What's the ease-of-use benefit over the others?
Maybe it's like #vim vs. #emacs, and YMMV. Hands-on POVs welcome!
I actually prefer #HAML for markup because it essentially (although annoyingly) validates structure, but #ERB & #Slim are both much faster to render. ERB is generally the fastest, but is verbose and ugly IMHO.
What do other people prefer for #RubyLang, #RoR, or #SinatraRb templates, and why? Please comment; I'm interested in the "wisdom of the crowd" on this one!
What do you even do when presented with this situation? Bug in #haml? Bug in #viewcomponent? Bug in my brain?? #ruby
Haml (HTML abstraction markup language) is based on one primary principle: markup should be beautiful. It’s not just beauty for beauty’s sake either; Haml accelerates and simplifies template creation down to veritable haiku.
I occasionally try #RubyMine for refactoring or #CoPilot integration, and generally regret it. What are some #vim friendly tools for refactoring, #AI integration (esp. for #TDD or #HAML automation), and so forth? ALE by itself doesn't quite do it for me, but that could just be user error or lack of knowledge. 😇
@davetron5000 true about ORMs, ActiveRecord was really bad with undocumented Arel functions that are actually quite powerful for complex queries.
Not sure #HAML is in this category as it's a direct translation, just a better syntax than verbose #HTML. At least I'm not aware of anything that can't be represented by it.
Just a loose web-dev question:
I have never used Haml or SCSS. They are becoming more common in guides online. Is it worth it? Aside from efficient code (which is definitely a bonus), are there other benefits to these, or other options?
I'm not a designer and don't write more than about 15-20 pages in a year. I achieve what I want with plain old HTML/CSS so far. But I'm making more web-art and see there are tidy ways to do things with SCSS/Haml.
Je découvre également le dialecte de #template #html #slim (http://slim-lang.com/). Va falloir que je me penche un peu dessus. Moins cabalistique que #haml mais en conservant le côté dépouillé. Ça semble chouette
I ran into this interesting read about the use of #haml and #markdown
http://chriseppstein.github.io/blog/2010/02/08/haml-sucks-for-content/