4

Sometimes comments are the only defense between me and completely fucking up my HTML editing. Front-end is scary. 😰😭😢

Comments
  • 5
    If you can java, you can write javascript easily, they are the same 😉
  • 1
    @devTea Oh no I love Javascript, it was easy for me to pickup. It's freaking HTML with it's lack of syntax rules, lack of semicolons, and no brackets that just makes my skin crawl. :P
  • 3
    You may consider using a templating engine (Pug, Jinja, Blade, ...)
  • 1
    @lucaspar Already using bootstrap with Angular in node.js. I just get nervous with HTML for some bizarre reason. Is there an easy way you can see the web template of HTML before committing or am I stuck in saving->refreshing?
  • 2
    @starrynights89 the templating engines I mentioned are different from Bootstrap. Take a look at Pug ( pugjs.org ). It integrates nicely with JS projects and it looks clean, unlike HTML.
  • 1
    @starrynights89 HTML is your friend to build the structure of your beautiful application. It just needs you to open its tag and close it, so it doesn't break. If you are using Bootstrap, check their documents and see how they built the elements and try to do like it. Moreover, since you are working with Bootstrap and angular, did you try Ng-Bootstrap. its Bootstrap for angular, has a small nice documentation that will cover your needs.

    For seeing your changes before committing, I am not sure if you IDE have live preview.
  • 4
    Just don't forget to close your void tags.
    <br/> for life!
    <br> for death. 🗡ðŸ˜
  • 1
    @lucaspar Yes, I do like writing UI in JavaScript over HTML, but at some point you do have to work with it. I'm trying to expand my horizons beyond my comfort zone you see. :)
  • 2
    @starrynights89 right. Pug is neither HTML nor JS though. And you don't have to close tags :)
  • 1
    @FahadAlt I'm using IntelliJ Ultimate so I'm pretty sure it has that feature, I just prefer to work with a text editor for simple HTML/Javascript, less bloat and all. I do default to my IDE when I need to do serious debugging or get lost. Mostly the latter. :P
  • 3
    @Root Do <br> and you will be covered in gasoline and set on fire.
  • 2
    @devTea nooooooeessss xD
  • 3
    @PrivateGER ðŸ¡

    Sadly there are no marshmallow emojis.
Add Comment