Elephant in the root on Nostr: I taught someone JavaScript. It was absolutely crappy experience because there's no ...
I taught someone JavaScript. It was absolutely crappy experience because there's no compiler and dynamic typing makes the error messages confusing at best and non-existent at worst. As an example, if you accidentally subtract a number from a text instead of getting an error pointing at that exact errorneous line the error silently propagates and messes up code down line. You'll get super confusing bugs that will take a lot of effort to debug which for begginer might be close to impossible.
Strongly statically typed languages don't have this issue. You have a compiler that checks if your code makes sense and tells you the exact line where a problem is. In great languages like Rust it even suggests a solution that is often correct.
Published at
2024-12-31 11:04:15Event JSON
{
"id": "520f2fa0bf676a69d7241fafd66afdde35bcd12fc00a05a385f1786f98b049fd",
"pubkey": "6e77f4f3c9995e0887d02dc95b39692f58641ed5b073972ef86cd6b61ecc6bae",
"created_at": 1735643055,
"kind": 1,
"tags": [
[
"e",
"3f48b3940bccd22ed0ef511dde0c641c3c63de73faf96b57c145b9435552e38d",
"",
"root"
],
[
"e",
"7ecf7e3e6e9adf77e89fa2e90b7f0d0807fa1db63f654d36dfff6fa9bf504fb6"
],
[
"e",
"c0f2d936df2d21b1fea21cb08be460a7c9ae5fb56b169c19a06b2a42b3ba8fc3",
"",
"reply"
],
[
"p",
"e3aefda887252a72cee3578d33b2dcd90e9fe53b8bed6347ef5e26f74211adbb"
],
[
"p",
"c5e173798dad29dd2b8062b8310974aed0a72e3645f9e58d2129bc6abd15d8bf"
]
],
"content": "I taught someone JavaScript. It was absolutely crappy experience because there's no compiler and dynamic typing makes the error messages confusing at best and non-existent at worst. As an example, if you accidentally subtract a number from a text instead of getting an error pointing at that exact errorneous line the error silently propagates and messes up code down line. You'll get super confusing bugs that will take a lot of effort to debug which for begginer might be close to impossible.\n\nStrongly statically typed languages don't have this issue. You have a compiler that checks if your code makes sense and tells you the exact line where a problem is. In great languages like Rust it even suggests a solution that is often correct.",
"sig": "1da3a4a2a0275fb3fe62709491261b474b3593456f555bd147522a1db35a7828d5fe9f9482ca9eaf9e3b4286f90a040b9d3801e9ed89785d4cb14b502a7c66a8"
}