HNHacker News
TopNewBestAskShowJobs

dlbucci

749 karma · joined May 13, 2015

submissionscomments
dlbucci··on Nintendo Switch game cartridges taste offensively bad (2017)
Well, they aren't just telling them not to do it, they are physically dissuading them from doing so. This is probably a lot more effective than a warning sticker to not put the cartridge in their mouth.
dlbucci··on Francis Fukuyama – Against Identity Politics
Both things can be true. Reagan did repeal this, for example: https://en.m.wikipedia.org/wiki/Mental_Health_Systems_Act_of...
dlbucci··on I quit caffeine
Switching to decaf coffee was one of the best health choices I've ever made. I used to regularly have a mild headache on Sunday every week, but I haven't had that once since quitting. It's also super nice to be able to skip coffee in the morning (for whatever reason) and just get on with my day.

I did have a mild headache for about 2 weeks when I did quit, but honestly, the fact that that happened was just more evidence I was doing the right thing. Still, I have yet to convince another human being to give it a try. I guess most people are just too addicted.

dlbucci··on Invasive Bradford (Callery) pear tree is banned in Pennsylvania
I had no idea that these were the plant responsible for so-called "Jizz Blossoms". There was always one week in the Fall where you'd smell 'em walking to class...
dlbucci··on Understanding UUIDs, ULIDs and string representations
Great article! I hadn't heard of this, but it sounds like something I might suddenly be using in the near future! Also, I loved this line: "Given the way we're going, humanity in its present form isn't likely to exist them, so when this becomes an issue it'll be somebody else's problem. More likely something else's problem."
dlbucci··on Python, unlike C, has the mod operator always return a positive number
Actually, I vaguely recall that if the divisor (or whatever the right number is) is negative, the result will be negative. But that's still consistent with math modulus, as is the Python approach. I always miss Python mod when I go to other languages, honestly...
dlbucci··on The Futurama Theorem
Honestly, my favorite joke has been Billy West reading Trump quotes in Zapp Brannigan's voice on his YouTube channel.
dlbucci··on Finally, on CBS, the football matches the business cards
Read through this whole thing thinking it was filling the "Block & Tackle"-sized hole in my heart, only to realize by the end that this was also authored by John Teti! I'm glad he's still doing it, cause B&T was weekly reading for me back in the day :)
dlbucci··on How much faster is Java 17?
Isn't that what Micronaut does, from the creators of Spring? I never used the latter, but I really like working with the former.
dlbucci··on Afghan president flees the country as Taliban move on Kabul
Never knew that, but it doesn't surprise me. Christ, what a waste of 20 years and countless lives, but at least the rich got richer...
dlbucci··on There's currently a British guy called Lord Miles in Kabul having a great time
He says in one of the first 4chan messages that he's not actually a Lord, he just bought a fake certificate, dressed in a suit, and convinced his bank to have "Lord" added to his credit/debit card.
dlbucci··on 'Arthur,' the longest-running kids animated series, is ending
Wow, I had seen that meme with the face in two panels, but I had no idea it originated in Arthur!
dlbucci··on Illinois first state to tell police they can't lie to minors in interrogations
Not sure if it also happened in a movie, but that's definitely from a scene in Better Call Saul.
dlbucci··on SVG favicons have some cool benefits
I agree they are great, especially for simple icons that work as SVG. Support for SVG favicons, however, keeps me from using them: https://caniuse.com/link-icon-svg
dlbucci··on Leaked Walmart memo reveals competitive threats
Funnily enough, that's actually how grocery stores used to operate: people would bring a list of items they wanted to the store, and the employees would go get them. Piggly Wiggly (https://en.wikipedia.org/wiki/Piggly_Wiggly) popularized the concept of self-serve grocery stores that we know today. I recall that people preferred this because they could pick their preferred cuts of meat, or veggies, or what have you.
dlbucci··on Java's records, Lombok's data, and Kotlin's data classes
Seems like an odd thing to mention. They are arguing that records are better than data classes, but part of their argument is "maybe, in the future, at some point, I don't know, it will be as easy to do this thing with records as it already is with data classes, we'll only need to add new syntax and a new keyword to the language".
dlbucci··on A categorized list of all Java and JVM features since JDK 8 to 16
All the backend projects I work on were originally written in Java. I'll admit that Streams and Lombok make it a somewhat pleasant experience to work with, at least compared to when I used it in college (I think Java 8 was newest?).

But that said, I once tried writing a new feature in Kotlin, and now all our code is Kotlin. I don't really see how Java can compete with the non-nullable types, data classes, and type-inferencing Kotlin gives you, with easy interoperability, to boot! (Although you might start regretting your use of Lombok at that point...)

dlbucci··on Akira Kurosawa’s List of His 100 Favorite Movies (2015)
To quote Francis Ford Coppola, "Most directors have one masterpiece by which they are known. Kurosawa has at least eight or nine."
dlbucci··on Mozilla plans to remove the Compact Density option from Firefox's Customize menu
Man, I hadn't heard of this feature before, and tried it out after reading this. It's so much nicer!
dlbucci··on Bad TypeScript Habits
I agree with most of these, but I pretty strongly disagree with #10 (don't use `!= null`). The reasoning is that you can use `null` and `undefined` to mean different things, like `null` being "no first name" and `undefined` meaning "haven't asked yet". I agree that strict TS lets you do stuff like that fairly easily, but I think this is a really bad idea, because there's nothing that would indicate to a reader of that code the meaning of `null` vs `undefined` for those properties.

I feel in that case you should have some type union of `"notAsked" | "none" | { t: "some", v: "Name" }`, because that would be more clear of what each possible value means. Let `null` and `undefined` be synonyms for `nil`.

dlbucci··on Facebook is bombarding rightwing users with combat gear ads. See for yourself
Maybe they could address the whole "there is a way to circumventing the system" thing? I mean, they own the system, so they should probably be responsible for any circumvention.
dlbucci··on A case study on strict null checks
I was always a big fan of Optionals, but having learned Kotlin this year, I was pleasantly surprised at how much non-nullable types seem to remove the need for them. And non-nullable can be just as ergonomic as Optionals with the `?:` operator (or `??` in TypeScript). My only issue when working with `strictNullChecks` in TS is that `null` and `undefined` both exist (thanks JS...). I also wish TS adopted a `Type?` syntax like Kotlin that would signify `Type | null | undefined` and could be used anywhere, not just in function parameters and object types (like TS's current `key?: value` syntax).
dlbucci··on Ruffle – A Flash Player emulator written in Rust
I think Mike from Newgrounds is the lead developer on the project, or at least the guy who created it.
dlbucci··on Svelte and TypeScript
This has been my experience with AngularJS 1 and TypeScript as well. Looks like there's at least some support for it (Quote the link: You get autocompletion hints and type-checking as you're writing components, even in expressions inside markup). Not sure if it does things like restrict `value` to `input` elements or anything, or if it's just the expressions in the template.
dlbucci··on Barebones WebGL in 75 lines of code
It's been a while since I touched WebGL, but this site was the most informative one I found, and is what I based most of my code on: https://webglfundamentals.org/
dlbucci··on Impressive backyard engineering on an obscure YouTube channel
This guy is doing that: https://m.youtube.com/user/nikrijavec

I've only watched the two hour compilation of the first year, but I think he has a lot more videos that are probably more in depth.

dlbucci··on Twitter engineers replacing racially loaded tech terms like 'master,' 'slave'
Wonder if "yinz" would be acceptable, too...
dlbucci··on Things You Should Never Do (2000)
I completely agree. On my next app, I was forced to use AngularJS (in 2017, somehow), but did get to use TypeScript (which is somewhat hobbled by having to use Angular templates), and this is exactly what we're doing now: rewriting components one-by-one in React. I love refactoring and React is much nicer, so I'm having fun with it :)
dlbucci··on Things You Should Never Do (2000)
I completely agree! Throwing away your code and starting over is failing to atone for the sins of the past, and I feel like it prevents you from learning or growing as a programmer. That's why I don't think I'll ever rewrite something from scratch again.

To me, this was nowhere more obvious than from my old co-worker who was constantly trying to rewrite the internal site we worked on. First it was angular and coffeescript, but that was apparently unmaintainable after 3 months (!!!). So they rewrote it and then I joined, and it apparently made it to 6 months. Then we tried to rewrite it in TypeScript and React which blew 10 man weeks away before we abandoned it. And then he tried to do TypeScript and Angular again but it never launched.

Meanwhile, after the React debacle, I learned my lesson and focused on rewriting and rearchitecting the old code to follow more modern Angular practices (1.5 components and such), and suddenly the code didn't seem so unworkable anymore! Quality improved and features were added that made it a very popular internal site, still in use 3 years after I left that team.

So I agree, I think you should always try to improve what you have instead of starting over. (If only our UX designers would go for incremental improvements too...)

dlbucci··on Kongregate closed to new games, shutting down forums and chat
I remember joining there when they announced they would have medals (Xbox 360 achievements had just become a thing, and were big). Played a lot of great games and had some fun chatting, too! But the one I maybe think of the most is Desktop Tower Defense (1.5, maybe?), as it was all the rage when I joined. Christ, that was 13 years ago! Gonna have to revisit that soon, I suppose...
← PreviousPage 2 of 7Next →