JustAnotherRando

joined 1 year ago
[–] JustAnotherRando@lemmy.world 5 points 6 hours ago (2 children)

It absolutely should not have been named zeroth() because the reasoning for that is purely pedantic and ignores WHY arrays are 0 indexed. It's not like the people in the early days of writing programming languages were saying "the zeroth item in the array" - they would refer to it using human language because they are humans, not machines. Arrays are 0 indexed because it's more efficient for address location. To get the location in memory of an array item, it's startingAddress + (objectSize * index). If they were 1 indexed, the machine would have to reverse the offset.
Function/Method names, on the other hand, should be written so as to make the most sense to the humans reading and writing the code, because the humans are the only ones that care what the name is. When you have an array or list, it's intuitive to think "I want the first thing in the array" or "I want the last thing in the array)," so it makes sense to use first and last. That also makes them intuitive counterparts (what would be the intuitive counterpart to "zeroth"?).

Hank and John Green are pretty good role models, I'd say.

[–] JustAnotherRando@lemmy.world 1 points 1 week ago (1 children)

I think it could serve that purpose (and honestly has to some degree), but the big thing that I didn't consider when I was young was that a lot of people just want to hate (or to convince others to be focused on hate), and will find spaces to spread and amplify that hate. I underestimated the capacity and drive of those that would spread fear and anger.

[–] JustAnotherRando@lemmy.world 6 points 1 week ago* (last edited 1 week ago) (3 children)

If it makes you feel any better, when I was young, I thought the Internet would bring the world together since you could sit and have a conversation with people all over the world with different perspectives, and befriending those from different walks of life would help break us out of small-town small-mindedness where everyone "not like us" is scary...

Yeah, I might have been a bit too optimistic with that one.

[–] JustAnotherRando@lemmy.world 12 points 3 weeks ago

It took him 12 days to complain about it and be fired

[–] JustAnotherRando@lemmy.world 9 points 3 weeks ago

I'm kinda torn because of this. I like for good games to get recognition and be successful. Part of me wants to buy the game and give it a shot because it's been well received and I'm happy to support an indie dev... But I really do not want to help establish a trend of indies sleeping on advertising/spreading word, then crying "woe is me" after a single week when barely anybody was aware of it, as a way of guerilla marketing their game. I also need to watch a bit more gameplay to see if it's even in my wheelhouse before I decide to spend $20 on it.

[–] JustAnotherRando@lemmy.world 11 points 3 weeks ago (2 children)

Bopl Battle is a hilarious party game for up to 4 people. The rounds go really quick so it's a great game to play with friends when you have a limited amount of time, but the fun doesn't wear out fast either.

[–] JustAnotherRando@lemmy.world 6 points 3 weeks ago

Dude I loved that game back in the day. So many great mods for it too

[–] JustAnotherRando@lemmy.world 4 points 1 month ago* (last edited 1 month ago)

I don't think it could be hashed if it is case insensitive. It's fairly early so I may be misremembering but I'm not aware of any hashing algo that ignores case.

Edit: Ah, actually they could be storing the password as a hash, but they would probably have to do like a password. ToLower() call or something where they morphed the string before checking... The thought of which just makes me shudder.

[–] JustAnotherRando@lemmy.world 9 points 1 month ago (1 children)

And C) continue in the pursuit of wealth rather than fucking off and just enjoying life with your fortune.

[–] JustAnotherRando@lemmy.world 15 points 1 month ago (2 children)

If you like nice shirts with no design or logo, Kohl's has some really comfortable shirts in several colors and no logo at all. They're some of my favorite shirts right now.

[–] JustAnotherRando@lemmy.world 7 points 1 month ago

Pretty sure people have been shitting on AI pretty heavily as well, partly for those reasons (but also for several others).

 

A couple of months ago @RBWells made a post for a bourbon, pineapple amaro, apricot liquor cocktail that sounded good, but was "missing something." It sounded like a great candidate for my new cocktail smoker but it took me a while to get suitable ingredients. I had to change things up a bit because I couldn't find the same apricot or amaro, but this came out quite well (the wife took one taste and decided I was making her one too).

My version: 2oz Knob Creek Smoked Maple (didn't realize I only had a maple bourbon at home, but it worked. Maybe made it a bit sweeter than intended) 1oz Amaro Montenegro 1oz Drillaud Apricot 1oz lemon juice

Mix in a shaker with ice, pour into low-ball glass and smoke (I used Cherry wood for mine and Pecan wood for my wife's - very subtle change in flavor but I think the pecan might have been just slightly better).

The cocktail is very smooth, a great blend in flavors - the Amaro Montenegro comes through really well but not overpowering. I think I would choose a more traditional bourbon next time as the maple bourbon is a bit sweeter than I was looking for, but the smoke did balance it out. It is apparently my wife's new favorite drink though, so I'll have to keep the maple bourbon as an option in case she prefers it over other bourbons.

Definitely a drink I'm going to hold onto, and I think I'm going to have to explore Amaro Montenegro as an ingredient further.

view more: next ›