I am the world's #1 dynamic programming language hater. Give me static or give me death.

seen from South Africa
seen from Singapore
seen from China
seen from Netherlands

seen from United States

seen from Malaysia

seen from Malaysia

seen from Malaysia
seen from China
seen from Egypt
seen from France

seen from Malaysia
seen from Finland
seen from United States

seen from China

seen from Malaysia

seen from Canada
seen from China

seen from Canada

seen from United States
I am the world's #1 dynamic programming language hater. Give me static or give me death.
Historically, I’ve struggled to find a concise, simple way to explain what it means to practice type-driven design. Too often, when someone
Internet debates about typing disciplines continue to be plagued by a pervasive myth that dynamic type systems are inherently better at mode
Nice series on
(1) the mentality/process/approach of using static typing to enforce invariants (and benefits of doing so), with examples, and
(2) followup in response to comments on the original post, rebutting common misconceptions about static vs. dynamic typing: in particular, that static typing forces you to pin everything down everything in exact, overly-specific detail, instead of just enforcing what you would already assume to be true while writing in a dynamic-typed setting anyway:
I’ve wanted to write this blog post for a while, but what finally made me decide to do it were misinformed comments responding to my previous blog post. Two comments in particular caught my eye, the first of which was posted on /r/programming: “Strongly disagree with the post […] it promotes a fundamentally entangled and static view of the world. It assumes that we can or should theorize about what is “valid” input at the edge between the program and the world, thus introducing a strong sense of coupling through the entire software, where failure to conform to some schema will automatically crash the program. This is touted as a feature here but imagine if the internet worked like this. A server changes their JSON output, and we need to recompile and reprogram the entire internet. This is the static view that is promoted as a feature here. […] The “parser mentality” is fundamentally rigid and global, whereas robust system design should be decentralised and leave interpretation of data to the receiver.” Given the argument being made in the blog post—that you should use precise types whenever possible—one can see where this misinterpretation comes from. How could a proxy server possibly be written in such a style, since it cannot anticipate the structure of its payloads? The commenter’s conclusion is that strict static typing is at odds with programs that don’t know the structure of their inputs ahead of time. The second comment was left on Hacker News, and it is significantly shorter than the first one: “What would be the type signature of, say, Python’s pickle.load()?” This is a different kind of argument, one that relies on the fact that the types of reflective operations may depend on runtime values, which makes them challenging to capture with static types. This argument suggests that static types limit expressiveness because they forbid such operations outright. Both these arguments are fallacious, but in order to show why, we have to make explicit an implicit claim. The two comments focus primarily on illustrating how static type systems can’t process data of an unknown shape, but they simultaneously advance an implicit belief: that dynamically typed languages can process data of an unknown shape. As we’ll see, this belief is misguided; programs are not capable of processing data of a truly unknown shape regardless of typing discipline, and static type systems only make already-present assumptions explicit.
What is dynamic dynamic typing
What is dynamic dynamic typing
Dynamic typing: Dynamic typing in programming languages like Python is a technique in which the data type of the variable is decided at run time. It means, the data type of the variable will be same as what type of data or value is assigned to the variable.
For better understanding go through the below python code:
#Python program temp='ABC' #Line1 print(temp) #Line 2 temp=2 #Line 3 print(temp)…
View On WordPress
static vs dynamic typing
https://medium.com/javascript-scene/the-shocking-secret-about-static-types-514d39bf30a3#.o4u4d98ra https://medium.com/javascript-scene/you-might-not-need-typescript-or-static-types-aa7cb670a77b#.enw489hi1 https://medium.com/javascript-scene/angular-2-vs-react-the-ultimate-dance-off-60e7dfbc379c#.16pbd7k2z (TypeScript section)
A rant against something I don't get
hey i see your using es6 for your game but would you ever recommend typescript??
Yeah, TypeScript is great! Phaser has TypeScript bindings too, so if you want to mess around with that, there are options.
Super Radish Witch is written with ECMAScript 6 more out of fluke preference than anything, but I’m kind of happy that it will work on future browsers without Babel.
Considering a lot of game programming has traditionally been done in statically-typed languages, many game programmers may find it comfortable.
Or, you can always go crazy…
The only major platform not using a typed language is the Web. This fact is certainly not the result of deep thinking and analysis, because the Web isn’t a managed platform. It’s more of a Mexican standoff that’s somehow keeping JavaScript alive.
If you only read one thing about types, read this.