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 โ€ข
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
ย 
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
ย 
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
ย 
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