Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
bigworld12220862dis this manually generated??
I found the mistake.
ThatPerlDeb116962dMaths teachers be like "solve for $h"
m0j0nz0r35862dMy 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.
C0D42321562dDon’t pull my eyes out of my head and beat them to a pulp so early in the morning 😭
Kyu96101162dWolfram alpha might help..
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job