Programmēšanas valodas kā HP varoņi |
Laipni lūdzam, viesi ( Pieteikties | Reģistrēties )
Programmēšanas valodas kā HP varoņi |
06.03.2015 19:57
Raksts
#1
|
|
Acīgais ex-mods Grupa: Biedri Pievienojās: 15.06.04 Kur: Dark Dark Forest Mods 2007 |
Raksts + vēl daži komentāros.
CITĀTS C Lets start off easy shall we? Everyones been saying that C has been dead for well, more than a decade. Some laugh at it. Others mutter darkly about living in fear of the infamous forbidden curses undefined behaviour. Sure, there remain loyal followers, and scattered cults here and there. But almost everyone who still sees the Sun will happily claim that its a dead language, gone forever, and theres no reason to use it any more. But. Scattered around the world there are things. Little, unregarded things that keep C from dying out altogether. Embedded devices, household appliances, single purpose systems and various other unseen, disregarded objects carry Cs compiled code within them. And while they exist, and require maintenance and upgrades, C cannot be killed. C is Voldemort, the dark lord of languages. Fortran Older even than C, Fortran has lived long enough to see the rise and fall of some of the greatest careers in science and computing. A great many extraordinary feats owe their success to Fortran. But Fortran is uh getting on in years, I suppose is the polite way to put it. I mean, there are plenty who will tell you its still capable of some amazing stuff but then, what language isnt? Like C, there are bits of Fortran scattered here and there around the world. But unlike C, these are more memorials than horcruxes. Shining testaments to great acts of insightful mathematics and elegant algorithms remain standing, so that those who wish to build upon great works may one day do so with new and shinier code. Fortran is Albus Dumbledore (who, incidentally, also frowned upon aliasing pointers when operating on arrays theres a little known HP fact for you). Java This is a language that found its way into the halls of ingenuity by appealing to all the right people at the top. The whole language, its uptake and its culture seems to be based on managerial interference and fear. It seems decent enough though. Certainly better than well, You Know What thats for sure! No more buffer overflows, no more uninitialised memory, no casting void pointers and look at the things its accomplished! But after only a few short months, you look up to realise that blatant, horrific evil has been replaced by a kind of dreary, soul sapping awfulness. Actual achievements have been replaced by studying for useless certifications. Design patterns and frameworks are codified as law and hammered into the whiteboards. Gaslighting abounds. Morale plummets. Theres nothing in here about using defensive bounds checking. Using bounds checks? Ha ha! Well I cant imagine why you would need to use pointers in my classroom. Were not gonna use pointers? You will be learning about coding in a secure, risk-free way. Well, what use is that? If were going to deploy code, it wont be risk-free! Programmers will raise their hands when they speak in my class. Java is Dolores Umbridge, and you know, deep down you deserve this implementation of generics. C++ C++ is a langauge pulled between two worlds. One is the dark and evil world of You Know Who and the other is the bright-but-annoyingly-preppy world of those who wish to overthrow the dark lord. And C++s role in all of this is somewhat inscrutable. Is it harbouring and abetting the enemy? Or is it actually keeping you safe from its worst excesses? Is it constantly undermining you to make you weaker, or is it teaching you about your own shortcomings to make you more powerful? Although it occasionally manages to rise above wretchedness and misery, it just keeps getting clawed back into the clutches of C and its followers. And this will ultimately destroy it. Because it will never displace C. It will never live to see what does. It will just be universally reviled for every wrong thing it does, and then it will die. Also, Im pretty sure C++ is what really killed off Fortran. Or at least sharpened the knife. C++ is the hated, the wretched, the unreadable Severus Snape. Ada Ada is a language that is half pure practicality, half lofty academia, all austere glare. Designed by committee to create a race of military space robots, Ada eschews things like runtime checks and casts in favour of refusing to let you even try to compile until you prove that youve been listening. This langauge is a strict and unforgiving disciplinarian, but once youve earned its approval, you can pretty much blow up any goddamned bridge you want with unerring precision. Ada is Minerva McGonagall, and if you mess around in its class, you will leave and not come back. You have been warned. BASH Its easy to forget about Bash. It just works away in the background there doing a thousand different tasks in a thousand different places that no other language really wants to do. Its kind of clunky and oafish, and it doesnt really like change, but theres a magnificent ecosystem out there that would devolve into chaos if it disappeared. Bash is Rubeus Hagrid, the only one who knows where the food is for that SysV init script from 1989 that you didnt even know still lived in your distro. Windows Batch File If Bash is Hagrid, then the Windows batch file syntax is Argus Filch. Intercal INTERCAL was intended to be completely different from all other computer languages. Common operations in other languages have cryptic and redundant syntax in INTERCAL. From the INTERCAL Reference Manual: It is a well-known and oft-demonstrated fact that a person whose work is incomprehensible is held in high esteem. The INTERCAL Reference Manual contains many paradoxical, nonsensical, or otherwise humorous instructions: Caution! Under no circumstances confuse the mesh with the interleave operator, except under confusing circumstances! Oh hey its Luna Lovegood. But dont worry. Youre just as sane as it is. Javascript Ha ha ha Javascript. That stupid little toy language that we used to use to make our websites do oh-so-1337 stuff in the late 90s. That really annoying scripting language that we had deal with to make web apps do anything useful, because our stupid parents ECMA forced us to let it tag along. But around about 2010, we started having conversations like this: What are you using on the server? Javascript. No, the server. Seriously, Javascript. Do you even understand the words Im using? Javascript can be pretty powerful you know. Are we talking about the same language that used to cry when the other languages got on the train to go to the school for real languages? Yes, Javascript is Ginny Weasley. PHP PHP is pure mediocrity from top to toe. It is. Yes, it is. No no, shut up. It is. Even its most noteable, most powerful acts are just half hearted crap done in unecessarily obtuse ways. Just kill someone already FFS. Some people thought that PHP could be improved by bringing it into Cs flock, and all they really managed to do was give it goto. Some people thought that PHP could be turned to greater deeds, and theyre dead now. PHP might have some money behind it, but its not ambitious enough to be a real villian, and its too mediocre for any kind of redemption. PHP is Draco Malfoy, trailed after by slack jawed knuckle-draggers who just keep getting hit on the head but dont really know what else to hitch their wagon to. Haskell Haskell is kind of dismissed as too academic to be useful, but is actually pretty bloody powerful. Here is a language that is built upon the idea that a moments quiet reflection is considerably more efficient than hours of ineffective keyboard mashing. Buuuut if you dont actually do the keyboard mashing, no-one sees you as a hero (you know, of coding). If you solve a major problem by spending three days contemplating data types, everyone just kind of thanks you in a vaguely patronising way and then goes off to mash keys anyway, albeit now with slightly more of a clue. So you roll your eyes, and sigh, and secretly continue to work on that stasis spell that will freeze everyone but you in time so you dont have to deal with these idiots any more but youre still willing to roll up your sleeves and do the stupid kind of work anyway, because you dont want to see your colleagues get their souls eaten more than is strictly necessary for character development. Haskell is Hermione Granger, rolling her eyes at you discovering list comprehensions. Perl Perl cops a lot of flak for a lot of things. From mean people, I mean, not me. Its nothing special, they say. Its suited to the more dreary kind of data processing, they sneer. Maybe you should have spent some of those $s on a proper type system and gotten some class, they heckle. If youre feeling really nasty, you might even say its kind of a homely looking langauge there I said it. I mean, who would ever want to program with Perl when theres Python? People did, though. They still do. It has loyal friends everywhere: programmers who have counted on it to help them with some huge variety of unpleasant, boring or outright terrifying tasks when every other language just happened to have better things to do. Perl is Ronald Weasley. Sorry about the class remark by the way. PHP said it. Not me. Python Well gee everyone just loves this language! Except the jerks who dont, but we all know who they secretly worship. Python is smart enough, but not too academic. Python has some pretty influential people behind it, but is always helping out those who dont have a lot of power. And it seems like every time youre in trouble, Python just happens to have exactly the right magical doodad in its pocket to save your life. (Python also seems to be locked into some utterly inexplicable enmity with PHP, with friends of each just sniping and spitting and snarking at each other when they could just be getting some work done. Who knows why.) Python can be kind of overhyped sometimes, but its not its fault. And lets face it some days it really is just rescuing people left, right and centre. But Python harbours a terrible secret. The reason that many of its spells libraries are so powerful is that buried underneath, in its most hidden depths, there lurks a sinister, terrible core of ANSI FLIPPIN C! Why cant I install this package on Windows, you innocently wonder. Whats this about MSVC and assignment from incompatible pointer types hey wait a second BY MERLINS BEARD NOOOOO and then all you can see are visions of being a snake killing the people you love while you hear corrupting whispers in a language you wished you didnt understand. One day, however, Python will wake up in the universes most brightly lit train station. And it will look down, at the core of C mewling pathetically at its feet, and it will stomp the crap out of that thing. Harry Potter is Python. Well, CPython, to begin with. But one day it will be free of the corrupting influence at its core, and we will know only PyPy. Rust Neville Longbottom. Well we all know who really kills off C, dont we? Un labākie no komentāriem: CITĀTS COBOL What about COBOL? That's clearly Nicholas Flamel -- should have been dead a long time ago but the Sorceror's Stone of bank reports keep it alive CITĀTS RUBY Full of flashy tricks and clever syntax, Ruby is nonetheless not the most effective language choice for any given programming task: a fact you'll forget after an hour of using it because a) it's just so very pretty, and it's cast a memory charm on you. Kept around mostly to stop Rails programmers from doing something really dangerous. Ruby is Gilderoy Lockhart. CITĀTS COBOL If ever there was a language that comes close to matching the more notorious aspects of C, COBOL is the most likely culprit. Coming about in the same era as the venerable FORTRAN, the two languages together ran on mainframes everywhere in the early days to mung through endless business data, speeding up calculations previously done by hand, all in the name of "the greater good". However, while their early goals were the same, FORTRAN opted for a bit more structured, concise approach, using strongly typed vars and adopting a few of the newer ideas along the way. COBOL, however, remained reliant upon horribly verbose incantations, and refused to cease use of unforgivable spells such as "goto". FORTRAN went on to be a venerable, yet eccentric language regarded to this day as fastest in some of the more arcane calculations after so many years past its prime. COBOL, however, has for its crimes been largely ridiculed and its practice considered one of the darkest of magics. It has been relegated to the proverbial jail tower, its practitioners shunned. The famous wizard Djikstra once stated "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." COBOL is Grindelwald, a crippled old relic rotting away in long forgotten mainframes. CITĀTS C#
A powerful language with noble intents. Would be the perfect warrior if there wasn't the dangerous and unreliable transformation/compilation to windows only executables. But his true and reliable friends would do anything to support it to live with this restriction and help him to become an honorable and mighty man. C# is Remus Lupin |
|
|
02.04.2015 17:40
Raksts
#2
|
|
Ataudzē kaulus pēc uzvaras kalambola mačā Grupa: Biedri Pievienojās: 06.04.07 Kur: Vakardienas trakumā |
Labais!
|
|
|
Lo-Fi versija | Pašlaik ir: 28.03.2024 12:02 |