GTG3000

joined 1 year ago
[–] GTG3000@programming.dev 9 points 2 weeks ago

Man, the variable scoping thing is insidious. It will never not be weird to me that ifs and loops don't actually create a new scope.

And then you try to do a closure and it tells you you didn't import anything yet.

[–] GTG3000@programming.dev 6 points 2 weeks ago (1 children)

Personally, I prefer duplicate keys to be eaten by the parser but I can see how it'd be beneficial to prevent them.

[–] GTG3000@programming.dev 1 points 3 weeks ago* (last edited 3 weeks ago)

Wait, let is to introduce locals but local is to introduce variables available in the whole file?

...so local creates global variables? What?

...and local creates constant values?

[–] GTG3000@programming.dev 0 points 3 weeks ago

Yeah, I remember when I was trying to parse XML into some lua tables and it forever stumped me how to represent something like

<thing important_param=10 other_param="abracadabra"> stuff </thing>

You just have to have different ways to turn different tags into stuff in your program and that's a huge amount of overhead to think about when all I want is a hash map and maybe an array.

[–] GTG3000@programming.dev 7 points 3 weeks ago

It's inconsistent and annoying. Expressive, yes. Gets it's job done, yes. Absolute nightmare of a spec, YES.

The fact that JSON is a subset of YAML should tell you everything about how bloated the spec is. And of course there's the "no" funny things.

Personally, my favourite way to write configs was using lua (because it was already part of the project so why not), but JSON does fine.

[–] GTG3000@programming.dev 4 points 3 weeks ago

Genuinely, why? Personally, I'm happy to eat basically same meals for a few days before they get boring, and you can vary your sandwiches a lot of you so desire.

[–] GTG3000@programming.dev 1 points 2 months ago

I used to use FTP for file transfer, nowadays I just start up a HTTPS server on the source machine and grab stuff from there.

[–] GTG3000@programming.dev 2 points 2 months ago (1 children)

Well, it was a spur-of-the-moment sort of thing when I went and looked at their site and it just had a bunch of names with no numbers there under the book art.

Went and checked now and site looks entirely different, and I can clearly see the issue numbers. I don't know, maybe I hallucinated it.

[–] GTG3000@programming.dev 2 points 2 months ago (3 children)

Yeah. I tried getting into comics once and got a multi-gigabyte archive of deadpool stuff.

...couldn't make heads or tails of it.

Actually couldn't get into IDW sonic/transformers for the same reason. WHERE DO I START!?

[–] GTG3000@programming.dev 7 points 2 months ago (1 children)

Yeah, it's pretty difficult to find energy for personal programming stuff when your dayjob is programming stuff.

Gotta get up from the PC for a bit.

[–] GTG3000@programming.dev 7 points 2 months ago

"speak-singing" is a thing some people do to work around language issues, apparently it's an entirely different part of the brain.

[–] GTG3000@programming.dev 20 points 2 months ago (2 children)

Anything an API returns should just look like 1720533944.963659 .

There's no reason to store dates as anything other than UTC. User-side, sure, timezones are useful. Server doesn't have to know.

view more: next ›