Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Well, there has to be some compromise between both.
If it exists and it's working and it's readable well no reason to change it but if it's clearly readable only by creator then yes, again experience will tell better.
spending 15min could get you mad but save you lots of headaches in future -
bioDan56228y@lostpirate i agree and fully aware of the tradeoffs.
and i also know from expierence that large JSON objects with nested values can be difficult to read.
But this case is simple, perhaps i wasnt clear enough of what the JSON consisted:
[ {name: 'Google', url: 'www.google.com'},
{name: '...', url: '...'},
{name: '...', url: '...'} ];
IS THIS REALLY UNREADABLE ?!
(not single key-value pairs. my mistake. complexity should converge to infinity in any given moment) -
bioDan56228y@Madeindjs its a good way to express rage and also cause i can :)
its really liberating, cant you tell?
Related Rants
SICK AND TIRED OF READABILITY VS. EFFICIENCY!!!!!!!
I HAD TO SEPARATE A 4 LOC JSON STRING, WHICH HAD AN ARRAY OF A SINGLE KEY-VALUE PAIRS (TOTAL OF 10 OBJECTS IN THE ARRAY).
ITS READABLE IF YOU KNOW JSON. HOW HARD IS TO READ JSON FORMAT IF YOU GET YOUR STYLE AND INDENTATION PROPERLY?!?
SO I HAD TO
BREAK THE POOR FREAKING JSON APART TO A FUCKING DIFFERENT YAML FILE FORMAT ONLY SO I CAN CALL IT FROM THERE TO THE MAIN CONTROLLER, ITERATE AND MANIPULATE ALL THE ID AND VALUES FROM YAML BACK TO MATCH THE EXPECTED JSON RESPONSE IN THE FRONT END.
THE WHOLE PROCESS TOOK ME ABOUT 15 MINUTES BUT STILL, THE FUCKING PRINCIPLE DRIVES ME INSANE.
WHY THE FUCK SHOULD I WASTE TIME AT AN ALREADY WORKING PIECE OF CODE, TO MAKE IT LESS EFFICIENT AND A SLIGHTLY BIT MORE READABLE?!? FML.
undefined
rails
yaml
json
rant
readability