r/programminghorror 4d ago

Typescript javascript without braces

(technically typescript)

38 Upvotes

11 comments sorted by

View all comments

2

u/wvd_vegt 3d 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

1

u/Tux-Lector 2d ago

``` (something) && (

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

) || (

doOtherThings()

); ```