CodeNewbie Community 🌱

Cover image for March 11th, 2021: What did you learn this week?
Nick Taylor
Nick Taylor

Posted on • Updated on

March 11th, 2021: What did you learn this week?

It's that time of the week folks. So wonderful code newbies, what did you learn this week? It could be programming tips, career advice etc.

![A picture it a dog waving their paw with the caption β€œLearning, cool at school or at home”](https://media.giphy.com/media/1xpm1nTQiRL96Di3Q6/giphy.gif)

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure. πŸ‘‡πŸ‘‡πŸ»πŸ‘‡πŸΌπŸ‘‡πŸ½πŸ‘‡πŸΎπŸ‘‡πŸΏ

#todayilearned

Top comments (4)

Collapse
 
aaron profile image
Aaron McCollum

todayilearned In Ruby, you can forego the parenthesis in methods if you don't have any parameters. That's clutch.

Collapse
 
sheriffderek profile image
sheriffderek

In JS you can do that when there's only 1 parameter in some cases. However, I much prefer the consistency to just always use the same convention. If it's always parentheses then it's easier for a larger team to read.

Collapse
 
aaron profile image
Aaron McCollum

I didn't know that re: JavaScript! But I agree, especially with JS where its very bracket/parenthesis/semi-colon reliant.

Collapse
 
nickytonline profile image
Nick Taylor

Pam from The Office saying Nice!