[-] hex@programming.dev 2 points 3 days ago

I like dragging the card to the "Ready for demo" slot :3

[-] hex@programming.dev 1 points 3 days ago

I hear ya. As always, it's a balance between having functions that are too long, and many too small functions. Matter of team preferences too.

[-] hex@programming.dev 1 points 3 days ago

That makes sense.

[-] hex@programming.dev 1 points 3 days ago

You make some great points. Using smaller functions and breaking up your code in readable bits makes a huge difference and you will likely never need comments if you do it right 👍🏻

[-] hex@programming.dev 2 points 3 days ago

I understand what you're saying and I mostly agree, but those few instances where a line of code is only slightly different and the comment is the same, can really be confusing.

[-] hex@programming.dev 2 points 4 days ago

It's not that deep. It looks nice, and is easy to understand.

[-] hex@programming.dev 5 points 4 days ago

Fair. I guess in this case, it's a manner of gauging who you're working with. I'd much rather answer a question once in a while than over-comment (since refactors often make comments worthless and they're so easy to miss..), but if it's a regular occurrence, yeah it would get on my nerves. Read the fuckin name of the function! Or better yet go check out what the function does!

[-] hex@programming.dev 3 points 4 days ago

Well, it literally is a yes man, it guesses what words are the most appropriate response to the words you said.

[-] hex@programming.dev 6 points 4 days ago

I mean, boolean short circuit is a super idiomatic pattern in Javascript

view more: ‹ prev next ›

hex

joined 1 year ago