Better HN
topnewbestaskshowjobs
Log inSign up

90s_dev

1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions

Submissions

comment 1y ago · link · parent

I'm on the fence. But the new idea would fully break compatibility, and is much better. Should I continue to indefinitely support a product I no longer believe in?

comment 1y ago · link · parent

  const cached = new Map<string, Function>()

  export function as<T>(o: any, path: string, as: (o: any) => T | undefined) {
    try {
      let fn = cached.get(path)
      if (!fn) cached.set(path, fn = new Function('o', `return o.${path}`))
      const v = fn(o)
      return as(v) as T | undefined
    }
    catch (e) {
      return undefined
    }
  }

  as.number = (o: any) => (typeof o === 'number' ? o : undefined)
  as.string = (o: any) => (typeof o === 'string' ? o : undefined)
  as.boolean = (o: any) => (typeof o === 'boolean' ? o : undefined)
  as.numbers = (len = 0) => (o: any) => (o instanceof Array && o.length >= len && o.every(c => typeof c === 'number') ? o : undefined)
  as.strings = (len = 0) => (o: any) => (o instanceof Array && o.length >= len && o.every(c => typeof c === 'string') ? o : undefined)


  const size = as(usrConfig, 'sys.size', as.numbers(2))
  const fontpath = as(usrConfig, 'sys.font', as.string)

comment 1y ago · link · parent

All APIs are experimental and in a state of constant flux and evolution, including the web.

The only time status quo is fine is when it's for clients and employers who just want stuff done and don't care how.

In that context, all these unfortunate layers of complexity at least mean more billable hours.

comment 1y ago · link · parent

> burnout that I later found out was in reality ME/CFS

In my experience, burnout is really just a subconscious realization that what you're doing is just not worth doing, even for large amounts of money, and it manifests itself in fatigue or pain, because your mind is trying to stop you.

comment 1y ago · link · parent

Actually maybe this is one way to explan it:

When Pico 8 came out, I immediately had a feeling of recognition and familiarity: "Oh! So this is the app I was half dreaming of making all these years!*

The app I'm making now gives me the exact same feeling, which is already a reward in itself, but it also means it'll probably give others that feeling too. So it's doubly exciting.

comment 1y ago · link · parent

> TypeScript-first schema validation with static type inference

Is there a comparison guide? Never heard of this before, but I used io-ts and ajv.

comment 1y ago · link · parent

Thanks! It's hard to know exactly why. What I do know is that I'm surprised week after week with breakthroughs I never dreamed possible and which I think other people will find very useful, and these each renew my excitement.

comment 1y ago · link · parent

Sure, I don't disagree. But so is deviating from that standard. I'm just talking about people who are overly restrictive of their own language usage. The best authors broke rules and made up words as needed.

comment 1y ago · link · parent

Huh? You woulda said this comment also isn't valid English.

Contractions, exclamations, shortucts of every kind, are legit.

(Though some usuallyo only appear in certain mediums U+1F609.)

comment 1y ago · link · parent

Only this modern article[1]. Can't find any scholars or Church Fathers on this. Seems to be an entirely new theory in history, most likely because women were dismissed as possible author since (a) Hebrews 11:32 uses a masculine first person verb, which the article explains as being the Holy Spirit who coauthored the letter, and (b) women were not Apostles or leaders, which the article implies was not actually a hard and fast rule for inclusion in canon, resolves by saying she wrote it in secret.

One additional point this article doesn't mention is that 1 john 1:4 also uses "we" in the same way the article claims Hebrews does. Seeing as St. John the Apostle was clearly united with the Holy Spirit as Revelation shows, and as Mary lived with John, this further strengthens the theory that "we" means "the author and the Holy Spirit who the author was conscious was co-authoring the letter".

[1] https://www.immaculatalibrary.com/articles/2025-03-06-mary-w...

comment 1y ago · link · parent

I admitted it was superficial. But it's the same reason I find English more natural than Italian or Greek. I grew up with C. We're only human after all.

comment 1y ago · link · parent

Yep. I love finding someone's old project on github and going through it and especially comparing it to stuff they did release and seeing how it was merely a stepping stone and a way for them to learn something. That significantly influenced how I code and helped me to be okay with writing code that never sees the light of day, as long as it helps me get past something in a project that does.

comment 1y ago · link · parent

Definitely something I've worried about. But a major architectural change is different than an improvement. I've left a lot of low hanging fruit for me to fix up after release. But with this change it would literally become a new, backwards-incompatible product. That's where I personally draw the line for when to wait.

comment 1y ago · link · parent

> This phrase is so common it's practically correct.

In fact, that's how language works. Whatever emerges from organic use is correct language. We the people decide what proper English is, collectively, not a prestigious university or renowned scholar or classic textbook.

comment 1y ago · link · parent

> just start anything NOW. Don't worry about getting organized or the correct order; just go

Yes! Projects develop organically, with many stop gap solutions and temporary scaffolds built and torn down along the way. Rome wasn't built in a day.

comment 1y ago · link · parent

As another religious person, your comment was as boring and difficult to follow as a typical Sunday homily, and for the same reasons. The world doesn't need even more bone dry exhortations and predictable parables. For God's sake, at least say something new and interesting, like how the Blessed Virgin Mary most likely wrote the Letter to the Hebrews and what that implies for the role of mothers, or how Judas was likely the biological son of St. Peter the Apostle and how this is a warning to children, or how Jesus and Mary being the new Adam and Eve implies that Joseph was the new Abel and how that fact helps fathers to know and live their vocations.

comment 1y ago · link · parent

Maybe someone can make a curated wiki page of people's unfinished and/or abandoned projects so everyone can put theirs there? (Oh wait, that's just github.)

comment 1y ago · link · parent

> I wish I had this energy again.

I used to think my youthful energy was gone forever. Then about 3 months ago I had an idea for a project I truly believed in. I was able to write code for 16 hours straight, day after day, for most of the last 3 months. And it's not exhausting, it's rejuvenating. I feel like a young man again, despite my gray hairs! (I was planning on releasing it today actually, but this weekend I had an epiphany that requires a half rewrite for significant gains, which might add another few weeks.)

comment 1y ago · link · parent

I once had a list similar in time and length. It was a great portfolio, but I slowly realized I just made it to remind myself I'm not a perpetually incapable imbecile. Deleting it and giving away those projects was so freeing. I had nothing left to prove to myself or anyone else. Now I can just write code for fun, code that I believed in. Not saying this is OP's motivation or anyone else's, but it was definitely mine.

comment 1y ago · link · parent

> However, my "paralysis by analysis" affliction is strong.

The solution is to remember that nothing is perfect, and that all code is eventually thrown away and replaced. So just start writing code and have fun!

621.

Squirrel (Programming Language)(en.wikipedia.org ↗)

10 points · by 90s_dev · 1y ago · discuss

comment 1y ago · link · parent

Why?

comment 1y ago · link · parent

Do you mean at runtime but only once at startup, like parsing a Lua program into bytecode? Or do you mean at true compile time like Zig and Rust format strings?

comment 1y ago · link · parent

Yet you were even before that, the moment you made programs work at all.

comment 1y ago · link · parent

I hate to be superficial, but languages without braces just feel weird to me. I can use them and have even for a paycheck, but... no thanks. Even Lua, one of my favorite languages (if not #1), always feels at least slightly weird when I use it because of do/end.

comment 1y ago · link · parent

Rather, QB was the pico8 of the 1990s. Convenient, self-contained, mysterious, quasi-powerful, in-app help menu for the entire language and API, and a few built-in demo games.

comment 1y ago · link · parent

I remember VB-DOS, and fondly too. It was magical. I think I used it even before VB3.

628.

FreeBASIC is a free/open source BASIC compiler for Windows DOS and Linux(freebasic.net ↗)

115 points · by 90s_dev · 1y ago · 45 comments

comment 1y ago · link · parent

For the longest time, I used them just in case it would otherwise cause a bug. But TypeScript fully takes this into account and checks for all these scenarios.

comment 1y ago · link · parent

The only inherent feature of JSX is compile time "parsing" whereas tagged literals inherently require runtime string parsing.

But yeah other than that you're right. I'm just talking about first-class VS Code support. Which to me means a lot.

1
202122
31