Browsed by
Tag: ruby

JavaScript Is Not Expressive

JavaScript Is Not Expressive

Rant Mode: Engaged.

The word “expressive” is often bandied about when describing the features of a language. In the same way that every new CSS framework that hits the front page of Hacker News is “light-weight”, “modular”, and “modern”, everyone’s favourite language will be at some point described by them as expressive.

Whether or not a language is expressive is a relative measure. To be expressive is to effectively convey thought or feeling. There are some languages that are so expressive that you immediately understand the author’s intent without needing to know the syntax. Take the following lines of Ruby, for example:

Read More Read More

The Case Against Dynamic Typing

The Case Against Dynamic Typing

dynamic-typing

AN ARGUMENT FOR DYNAMIC TYPING is that by not enforcing the types of a function’s parameters, the function becomes more generalized, and thus more flexible and reusable. I argue that this flexibility versus automatically-verifiable correctness of the system is not a trade-off we need to make.

This post is in part inspired by Why Dynamic Typing Is Useful by Gary Bernhardt. I’ll concede that his post is published 10 years prior, so I’ve had plenty of time to build a counter-argument.

Why Is Dynamic Typing Useful?

Read More Read More