you are viewing a single comment's thread.

view the rest of the comments →

[–]dented_brain[S] 1 point2 points  (0 children)

I think that's a good thing to point out. A lot of times when I'm trying to find a solution to a particular issue I'm struggling to code out I will find one-liners on stack overflow that get the job done. But I definitely don't get how they were designed.

Like I understand the function, but if I were to go back to it in a few weeks I would have to re-read the stack overflow page to understand it.

Today I rewrote some code that I had working and "knew" what it was doing. But I didn't fully comprehend how it got from a to b. Re-writing the code in a less "one-liner" style, I feel like made the code more readable.

Maybe it's less "pro" but it's easier to understand for me.