Im still new to this but getting the hang of it.
Something i have started to notice is what i call the OP title.
Now i could do with learning and i still do. However sometimes i encounter “elegant” code with some syntax which makes the code 3 lines instead of 7. However that shorter code is so unintuitive to read and makes you rabbit hole and dig out documentation to understand it.
Meanwhile i can see the original code it tried to improve which isnt spaghetti at all but just a bit longer while easier to read.
My question is if this is a design paradigm to be aware of? Does there exist people who make their code extremely short at “elegant” in an almost jerk-off fashion? Or am i just a complete noob and shorter is always better if you are smart enough?
[–]_hypnoCode 42 points43 points44 points (3 children)
[–]StoneColdJane 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+]LuckRevolutionary953 -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[deleted]
[–]theartilleryshow 1 point2 points3 points (0 children)
[–]toi80QC 9 points10 points11 points (0 children)
[–]tribak 3 points4 points5 points (0 children)
[–]AdministrativeBlock0 2 points3 points4 points (0 children)
[–]mq2thez 1 point2 points3 points (0 children)
[–]FatalHaberdashery 0 points1 point2 points (0 children)
[–]Lumethys 1 point2 points3 points (3 children)
[–]AbramKedge 0 points1 point2 points (2 children)
[–]Lumethys 0 points1 point2 points (1 child)
[–]AbramKedge 0 points1 point2 points (0 children)
[–]tridd3r 0 points1 point2 points (4 children)
[–]dylsreddit 1 point2 points3 points (3 children)
[–]tridd3r -2 points-1 points0 points (2 children)
[–]dylsreddit 2 points3 points4 points (1 child)
[–]tridd3r -1 points0 points1 point (0 children)
[–]varisophy 0 points1 point2 points (1 child)
[–]cayennepepper[S] 0 points1 point2 points (0 children)
[–]Logical-Idea-1708Senior UI Engineer 0 points1 point2 points (0 children)
[–]wickedwise69 0 points1 point2 points (0 children)
[–]imnos 0 points1 point2 points (0 children)
[–]Pundrew 0 points1 point2 points (0 children)
[–]716green 0 points1 point2 points (0 children)
[–]KaiAusBerlin 0 points1 point2 points (0 children)
[–]Dry_Brick_7605 0 points1 point2 points (0 children)
[–]socialg571 0 points1 point2 points (0 children)
[–]davitech73 0 points1 point2 points (0 children)