this post was submitted on 04 Jun 2024
15 points (89.5% liked)

Programming

17424 readers
25 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

I was asked to help out with someone's git project. They said if I could learn handlebars that would help a lot. What is the best way to learn this? What other languages do I need to use it? Any recommendations for videos or sites to learn from?

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 5 months ago (1 children)

I would learn on the project, and use the official documentation to look up what it is, how it works, and how to solve what you want to do.

[–] [email protected] 1 points 5 months ago (2 children)

Looks like I'll need to know some HTML first. Any recommendations on where to learn?

[–] [email protected] 1 points 5 months ago

Mozilla has good introduction guides into web development https://developer.mozilla.org/en-US/docs/Learn

[–] [email protected] 2 points 5 months ago (1 children)
[–] [email protected] 1 points 5 months ago

I'll check it out. Thanks.

[–] [email protected] 6 points 5 months ago (1 children)

I would start with the official documentation/guides. https://handlebarsjs.com/guide/#what-is-handlebars

It's not overly complicated to learn if you already know some Javascript / HTML / CSS. If you don't, then maybe look up some tutorials on FreeCodeCamp.

[–] [email protected] 1 points 5 months ago (2 children)

Would you recommend I get the basics of JavaScript/HTML/CSS before diving in? Or is it something I can figure out on the way?

[–] [email protected] 3 points 5 months ago (1 children)

HTML is pretty straightforward so just understanding the very basic stuff is probably all you need. CSS is where html gets any challenge it might have.

CSS is weird because it's very "easy" so "real developers" kind of object to learning it, but the truth is, if you gave any of them a layout design, they probably couldn't build it. There are tools like tailwind to help, but, IMO, tailwind just helps you avoid learning css's vocabulary, but you just replace it with having to learn tailwind's vocabulary.

JavaScript on the other hand is a "real" programming language, though decidedly quick-n-dirtier than other languages. It lets you be a lot more sloppy. (Tbh it's a lot more forgiving than css!). As a result, it lacks the elegance and control that "real developers" like -- and, as most people's first language, it lets newcomers get into bad habits. For these reasons, JavaScript is a bit derided -- but, unlike CSS, most developers can't avoid it.

There are a few key ideas in JavaScript that, once you understand them, things make a lot more sense. (I won't get into them now, since it doesn't sound like you're at the point where that kind of clarity would help, but, when you are, come on back here and make a post!)

TLDR: HTML is definitely something you can just pick up along the way. JavaScript is a real language that will take a little while to feel comfortable with, and it will take a career to master. CSS will never be easy, so don't let it hold you back.

[–] [email protected] 2 points 5 months ago

That is a great write up. Thank you for that. It was incredibly helpful to know.

[–] [email protected] 2 points 5 months ago (1 children)

Assuming the project uses them, yes. Might want to check with the project owner to be sure before jumping in.

[–] [email protected] 1 points 5 months ago

I checked in with them. They said a general knowledge of at least HTML will help greatly so I'll start there.