Just to get something clear, i am a self taught web developer and i love learning new USEFULL technologies, recently i have been assigned to work on a project and it uses Jade, its a MEAN stack project and since i started using Jade, it just sucks for me, so my question is why Jade, what is worng with HTML as it is? if its not broken then why try to fix it? I feel like learning the shity Jade is like a waste of time and mental effort.
Personally, I prefer HTML too. That’s the reason I enjoy Angular so much. It essentially allows you to use an enhanced version of HTML, so you keep the strengths of a DSL without the limitations of basic HTML.<p>But in pure HTML, how do you do something like ng-repeat?[1] You can’t. You have to either use a template language or you have to construct the HTML in the code. Both have goods and others. A template language allows you to keep an HTML like format that non-programmer’s can possibly understand and contribute to, and that can help separate the view from the business logic, but it comes at the cost of having to learn a new language / framework and the hurdles that abstractions sometimes create.<p>Similar question on Quora. [2]<p>[1] <a href="https://docs.angularjs.org/api/ng/directive/ngRepeat" rel="nofollow">https://docs.angularjs.org/api/ng/directive/ngRepeat</a>
[2] <a href="http://www.quora.com/What-are-the-pros-and-cons-of-using-a-template-engine-like-Jade" rel="nofollow">http://www.quora.com/What-are-the-pros-and-cons-of-using-a-t...</a>
HTML is too slow. My web dev method is so streamlined at this stage, if I'm writing <tags> individually, I'm spending too much time on stupid shit that doesn't really interest me.<p>Consider this takes me 45 seconds to write:<p><pre><code> <div class="container">
<div class="container__item" data-id="#{item.id}">
<h1 class="container__item__title">#{item.title}</h1>
</div>
</div>
</code></pre>
Versus 15 seconds:<p><pre><code> .container
.container__item(data-id=item.id)
h1.container__item__title= item.title</code></pre>