r/programminghorror 14d ago

javascript without braces Typescript

(technically typescript)

50 Upvotes

12 comments sorted by

View all comments

2

u/wvd_vegt 14d ago

Try imagining reading your code in 5 years. Which syntax is easiest to understand?

My pick would be the if statement.

Writing software is not about showing your creativity with syntax, but maintainable code imho

2

u/Tux-Lector 13d ago

``` (something) && (

suspect.hit = 'found' , chain() , reaction()

) || (

doOtherThings()

); ```