Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Nolan Lawson
@nolan@toot.cafe  ·  activity timestamp 2 weeks ago

"What Dynamic Typing Is For" by Alexander Petros https://unplannedobsolescence.com/blog/what-dynamic-typing-is-for/

This is a great defense of untyped JavaScript as a glue language. Not many folks think enough about debuggability or "obvious"-ness when designing resilient systems.

Unplanned Obsolescence

What Dynamic Typing Is For

How dynamic typing makes DSL-driven development easy, and what can be done to bring static typing up to par.
  • Copy link
  • Flag this post
  • Block
Nolan Lawson
@nolan@toot.cafe replied  ·  activity timestamp 2 weeks ago

I've been a big TypeScript hater in the past, but I have to admit it works well when JavaScript is the _only_ language you're dealing with. You get to just turn off your brain and let the type checker find all the undefineds, nulls, etc. But as soon as you have to convert to and from HTML/CSS/SQL it definitely becomes a big pain.

  • Copy link
  • Flag this comment
  • Block
Baraa family
@baraa1998@mastodon.social replied  ·  activity timestamp 5 days ago

@nolan Hello my friend please help me share and donate if you can please read my posts,🙏🤍

  • Copy link
  • Flag this comment
  • Block
Baraa family
@baraa1998@mastodon.social replied  ·  activity timestamp 5 days ago

@nolan Hello my friend please read my posts please share and donate Im really need your support🙏💔🥺

  • Copy link
  • Flag this comment
  • Block
Mikołaj Hołysz
@miki@dragonscave.space replied  ·  activity timestamp 2 weeks ago

@nolan Not a problem if you're just writing JSX.

  • Copy link
  • Flag this comment
  • Block
jokeyrhyme
@jokeyrhyme@aus.social replied  ·  activity timestamp 2 weeks ago

@nolan even the DOM isn't too bad if you have #TypeScript 's `lib` set as expected: https://www.typescriptlang.org/tsconfig/#lib

The default annotations for `JSON.parse()`, `fetch()` say they return `any`, and really any place marked as `any` (or using human-thinks-they-know-best `as MyType` coercions) tends to me what trips me up in practice

I'd love a "greenfield" setting that removes `any` and untyped JavaScript support from TypeScript completely, forcing me to do runtime type-checks instead of making false assumptions

TSConfig Reference - Docs on every TSConfig option

From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login