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
-
@joycestick i would fucking suicide rather than work on a cluster-fuck of variables and round brackets like this
-
m0j0nz0r3457yMy 2 cents:
Write a script that takes the string and sets it on fire.
My 2 useful cents:
Make the script check each character.
If it finds "(" or "+" or "," it should add the character to the current string as usual an then add the current string to an array and start a new empty one.
If it finds ")" it should first add the current string to the array and start the new one with ")"
You can then indent it by iterating through your array and adding as many "\t" characters to the beginning of each string as your indentation counter.
A string ending in "(" adds 1 to the counter.
A string starting with ")" subtracts 1 from the counter.
Output the result of stringArray.join ("\n") operation to a file.
This should make your life a lot easier. -
C0D4669027yDon’t pull my eyes out of my head and beat them to a pulp so early in the morning ðŸ˜
Should be easy enough to find the mistake...
rant