Skip to content

Commit

Permalink
filler
Browse files Browse the repository at this point in the history
  • Loading branch information
horo-fox committed Apr 2, 2024
1 parent 471f1f9 commit cba8832
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/content/journal/failing-loudly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: "Things should fail loudly!"
published: 4-1-2024
summary: "A Python user talking about how they dislike JS"
---

I really don't like JavaScript's tendency to fail quietly. I understand the rationale: broken webpages are everywhere. But something about the pervasiveness of `undefined` just hurts me.

Let's compare two possible approaches for handling external data:

- throwing it into an unstructured blob and going through that
- converting it via a schema

JavaScript seems to go with the first. It sucks. Special syntax for property access, conveniences for unexpected data, type coersion, etc.

I don't have much of a point beyond that, because I do have a soft spot for TypeScript. I don't hate JavaScript as much as I probably should, and I use it for projects and I am fine poking at it for frontend development. Heck, I think CSS is scarier! But I do dislike how JavaScript lets errors pass silently.

0 comments on commit cba8832

Please sign in to comment.