bash - Is using shell scripting for Introduction to Algorithms a good idea -
currently have listed down learning unix/shell scripting , reading clr algo book important priority me. thinking if solve algorithms questions mentioned in clr using shell scripting. mind i'm complete newbie unix/shell scripting.
no, it's not. shell scripting not designed writing algorithms. should use general-purpose programming language c, c++, java, python, or [insert favorite general purpose language here].
that's not couldn't use bash or algorithms -- it's turing-complete afaik -- wouldn't want to. it'd huge pain, wouldn't learn lot of skills need (like modeling algorithms in common programming languages or styles), , solutions cryptic. favor , use else. shell scripting automating tasks, not solving algorithms.
also, shell script languages (bash notably) weakly typed, a.) hurts performance , b.) make program harder reason about. dynamic typing ok algorithms, weak typing, not much. performance abysmal, regardless.
if you're trying learn both shell scripting , algorithms, can still @ same time. write scripts compile , test programs , write programs in general purpose-language.
Comments
Post a Comment