3 ms·
Really you should be starting with bash, thats how you know why these other languages exist. My rule of thumb used to be if I have more than one "if" in a shel
by dec0dedab0de 8y ago
Really you should be starting with bash, thats how you know why these other languages exist. My rule of thumb used to be if I have more than one "if" in a shell script then its going to python... But now its any ifs or variables
Edit: now that I read the readme I think the title should have been "show hn: I made a web framework in bash" this is pretty neat, I still wouldnt use it, but its cool as hell.
- ryl00 8y agoLearning perl first stunted my bash knowledge; I'm very, very quick to bail into perl at the first sign of difficulty. :)
- JshWright 8y agoDo you consider that a bad thing?
- tmh88j 8y agoUnless he didn't mean to use the word "stunted", I would say yes.
- BoorishBears 8y agoNote to self: Don't ask rhetorical questions on HN.
- earenndil 8y ago> My rule of thumb used to be if I have more than one "if" in a shell script then its going to python... But now its any ifs or variables Hmm. I have a slightly different view. If logic is complex, then it should be moved to a different language. But if there are a lot of flat if statements then shell is fine.
- dmitryminkovsky 8y agoYeah it’s almost inevitable for a bash script to have lots of ifs but they’re almost always simple, checking some variable is empty or something.