All posts tagged #programming-languages all posts RSS-feed

Some reasons I do not like javascript

It is no secret that Javascript isn't the most well-designed language, and these points have probably been made a billion times, but now it's my turn! Note that this isn't a criticism about a lack of expressiveness. You can create great things with javascript. But you can also footgun yourself very easily, which is what I'm criticizing there. Most languages are expressive, but good ones help you avoid mistakes instead of making them. You can pass more or fewer arguments... full post»
by Mark,

Visitor pattern and dynamic dispatch

The Design Patterns book by the infamous Gang of Four contains 23 object oriented design patterns. Some of them are kind of obvious (Adapter), or have become common knowledge since the book was published in 1994 (Iterator). My personal favourite is Visitor. Visitor "represents an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operations" [except you need to add an... full post»
by Mark,

Analyzing a single, trivial Java statement

Java isn't a bad language, but it is also not great, and it's age shows. Let's look at this simple Java statement: if (!Boolean.TRUE.equals(getIsRequired())) { It's very simple and common, and yet it includes a lot of the things I don't particularly like about Java: We need a getter for a trivial property access. I like the Python way with @property, or the Kotlin way with getters and setters being called implicitly. It is not explicit that getIsRequired is a... full post»
by Mark,

The markv.nl blag!

#imadethis, #coding, #tools, #python, #bash, #programming-languages, #machine-learning, #chinese, #ubuntu, #music, #django, #focus, #fortran, #backup, #bug-prevention, #type-systems, #design-patterns, #charity, #javascript, #learning, #object-oriented-programming, #discussion, #java, #games, #travel, #rust, #order-of-magnitude, #R, #personal, #cross-validation, #china, #what-I-use, #data-science, #data-analysis, #effecive-altruism, #book

Comments

  1. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  2. "Invite" someone to ssh into your machine without port forwarding or firewall changes @Mark Added details about how to use the established tunnel in...
  3. Rainbow colormap in javascript @Mark Now finally with color-coded source!
  4. Bye Make, hello SCons (Fortran) @Mark For SCons' own comparison against alternatives, have a l...
  5. Ubuntu macros @Mark Macro locks have been made more reliable, to prevent any...
  6. Dory backup scripts @Mark I've added some functionality to remove old backups! htt...
  7. Ubuntu macros @Mark Updated after moving the files to https://github.com/mve...
  8. Concentration noise @Mark Sorry if you're in China and can't access Youtube. If th...