196
Vývoj / Re:Zkušenosti s TypeScriptem
« kdy: 31. 03. 2020, 00:48:51 »Smalltalk sa aj mne páči po teoretickej stránke, ale položte si otázku prečo sa nepresadil? Ja si myslím že je to kôli (ne)bezpečnosti. Dáva vám síce veľa slobody, ale práve nízka bezpečnosť a možnosť meniť úplne všetko je dôvod prečo ho v polovici 90tych rokov vytlačila Java.
No, důvody byly asi trochu přízemnější. Ideový nástupce Smalltalku byl Self, který Sun Microsystems vyvíjel společně s Javou, a v Sunu dumali, který jazyk by měli pustit na veřejnost. Podle tohoto zdroje: http://blog.rfox.eu/en/Series_about_Self/Environment_and_the_programming_language_Self_part_3.html , zvolili nakonec Javu, protože
Chuck McManis, a former employee of Sun Microsystems, wrote for a thread on hackernews:
Wow. For those who don't know, there was a big 'language bake off' at Sun between TCL, Java, and Self (all being funded by Sun Labs) and Bert Sutherland (then director of Sun Labs and brother of Ivan) required that the language changes stop and then we'd look at each one, and decide which one to move forward on. When the world sort of exploded at the WWW conference held in Darmstadt Germany in 1995, Java officially 'won' and both Self and TCL were de-committed. (not canceled per-se but not getting any more funding either).
I like to think that all three languages benefited from the competition.
Asked why did Java win, he replied:
"At the time it was the ability to construct executable content inside a web page. Javascript now dominates that space, but up until WWWC 2 pretty much everyone was stuck with page layout primitives. It made it possible to see a path to where we are today and so everyone wanted their browser to have it, and if their browser didn't have it they could run the HotJava browser and get it.
Bottom line, it demonstrated an answer to a problem that a lot of people were having, and it promised to answer that problem in an 'open source' kind of way."
Jinak z osobní zkušenosti bych neřekl že Smalltalk je více nebezpečný než kterýkoliv jiný dynamicky typovaný jazyk - Python, PHP, Javascript atp.
Toho selfu je velká škoda a vlastne aj smalltalku, lenže pre ľudí ktorí boli v 90tych rokoch zvyknutí na C++ a Turbo Pascal bol koncept image s kompletným vývojovým prostredím asi až príliš revolučný. A self k tomu pridal ešte aj úplne nový objektový model, ktorý predbehol svoju dobu (prototypy, sloty, zrkadlá atď) ale bol natoľko exotický že by odradil aj zvyšok vývojárov... Keby sa Sun vybral cestou Selfu myslím že by to mal omnoho tažšie ako s Javou
Naproti tomu C++ išiel cestou menšieho odporu Stroustrup si vybral pôvodné OOP zo simuly 67, nesnažil sa o revolúciu, ale len evolúciu v medziach toho čo už vývojári dobre poznali.
ale asi to zkusím.