DEV Community

Cover image for Got Coding Superstitions?๐Ÿคž

Got Coding Superstitions?๐Ÿคž

dev.to staff on September 12, 2023

Welcome to Code Chatter, your go-to series for conversational coding insights. What makes this series of questions different from all the others? W...
Collapse
 
balagmadhu profile image
Bala Madhusoodhanan

Put a line break or a comment at the 13th line of the code
giphy

Collapse
 
ranggakd profile image
Retiago Drago

Okay Taylor Swift

ts delicate

Collapse
 
jmfayard profile image
Jean-Michel ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ Fayard • Edited

Best tagline ever in a job interview :
"Hey, I'm a backend developer, I work with Taylor (in) Swift"
github.com/izqui/Taylor

Thread Thread
 
ranggakd profile image
Retiago Drago • Edited

Can I apply for a job? Here's my actual GitHub page

ranggakd (Rangga K D) ยท GitHub

blending code and curiosity to create something awesome for the community ๐Ÿš€๐Ÿ‡ฎ๐Ÿ‡ฉ๐Ÿ‡ต๐Ÿ‡ธ - ranggakd

favicon github.com

Hi there ๐Ÿ‘‹ - Rangga (GitHub's Version)

It's cool, that's why you click 'em
Code rules, collapsible heaven
But ooh, whoa oh
It's a cruel coder

With me
I'm a / an
Programmer โœ”
AI Tech Writer โœ”
Data Practitioner โœ”
Statistics & Math Addict โœ”
Open Source Contributor โœ”
Quantum Computing Enthusiast โœ”
I code in the dark of my room ๐Ÿ‘จโ€๐Ÿ’ป

And I predict my data, forecasting from afar (oh)
"Unittest," but it's not just a few
Data analysis keeps me on cue

And I study now, the current state ๐Ÿ’ป

Of Rust and Julia to seal my fate (oh)
And in Python, I find my worth
"SQL", ain't that the geekiest you ever heard?
I write those, grinding like a coder

It's new, commit of my projects ๐Ÿ“Š :
โ€ฆ
Thread Thread
 
jmfayard profile image
Jean-Michel ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ Fayard • Edited

I am not sure.
Even when you apply at GitHub, they don't care at all how green your GitHub internet points are.

Thread Thread
 
ranggakd profile image
Retiago Drago
Thread Thread
 
jmfayard profile image
Jean-Michel ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ Fayard • Edited

I'm a recruiter and I don't believe in those statistics, github stars, leetscore code,
those are all internet points that don't measure anything meaningful,
they have a very weak correlation with the ability to do the work the company needs her to do.

For me the best way to evaluate a developer is to have a look at the work he does.
Just like the best way to evaluate a musician is to open your ears and listen.

Collapse
 
panditapan profile image
Pandita

clean + restart visual studio + rebuild solution

and if it doesn't work you restart your laptop/pc before rebuilding

๐Ÿ™ˆ

Collapse
 
taikedz profile image
TaiKedz • Edited

Don't use backslashes \ to split lines - especially in shell scripts

# actually remove old settings before redeploying, else it will append
ssh user@host \
    rm -r .config
Enter fullscreen mode Exit fullscreen mode

Somehow I got bitten by that once where the character after backslash became inline whitespace and caused a hard to find bug with the second part becoming a new statement on a new line.

Using parentheses usually gets us out of r trouble, and allows more granular commenting:

tokens=(
    ssh user@host
    # actually remove old settings before redeploying, else it will append
    rm -r .config
)
"${tokens[@]}"
Enter fullscreen mode Exit fullscreen mode

In python it's less likely to be an issue, but it's still nice for inline commenting

assert i_did_it(data), \
    "You did not" + \
    f"You did: {data}"
Enter fullscreen mode Exit fullscreen mode
assert i_did_it(data), (
    # Admonish programmer
    "You did not"
    # Highlight irregularity
    f"You did: {data}"
)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ingosteinke profile image
Ingo Steinke, web developer

Only slightly related to coding, but similar to some people striving for a green GitHub activity graph, I used to believe that it's important or helpful to have a high reputation on StackOverflow.

Collapse
 
andrewcollisterson profile image
andrewcollisterson

Certainly! It's always fun to hear about coding superstitions and rituals. Personally, I have a "lucky" rubber duck on my desk. Whenever I'm stuck on a coding problem, I explain it to the duck, and more often than not, I end up finding raposo frp apk the solution while talking it out. ๐Ÿฆ†๐Ÿ˜„ #CodingSuperstitions

Collapse
 
renancferro profile image
Renan Ferro

I don't know why, but programming at night is better than all day!

Collapse
 
balagmadhu profile image
Bala Madhusoodhanan • Edited

Agree

Collapse
 
manchicken profile image
Mike Stemle

Iโ€™m not superstitious, but I am a little bit stitious.

Collapse
 
thecheapaudiophile profile image
Griff Polk

ALWAYS DO THE MOST FUNCTIONAL PARTS AT THE END. DESIGN FIRST, MECHANICS LATER

Collapse
 
michalispapamichael profile image
Michalis Papamichael

I always kind of want finish the simple task first and then proceeding to the complex ones.

Collapse
 
jmfayard profile image
Jean-Michel ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ Fayard • Edited

Backups : My superstition is that I still assume that they will work when I need them, despite history having proven otherwise