Hacker Newsnew | past | comments | ask | show | jobs | submit | delfaras's commentslogin

funnily enough, there was an infamous bug in GTA5 for a long time that was related to using JSON : https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...


I remember that one too :)

They wrote a JSON “parser” using sscanf. sscanf is not bulletproof! Just use an open source library instead of writing something yourself. You will still be a real programmer, but you will finish your game sooner and you won't have embarrassing stories written about you.


Loading times are still absurd, fwiw.


Yes, but now it's in the realm of ~3 minutes, and not ~8 minutes even on a top-spec PC, right? I really liked the game, but waiting 8 minutes to load just to get griefed by hackers within seconds of walking outside... I don't understand how that game makes any money.


IMO it varies widely. This past weekend it was taking me multiple attempts to get logged in to a public lobby— after waiting ~5-10 minutes!

Nothing has changed appreciably. If they would let you login to a private invite-only lobby that would likely speed things up greatly— but it’ll never happen.


That's probably just the nature of P2P networking code.

> If they would let you login to a private invite-only lobby that would likely speed things up greatly— but it’ll never happen.

Did they remove this option in the last couple years?


I don’t think its ever been an option to login directly to an invite-only lobby. But then I have taken multiple multi-year breaks! I was pleasantly surprised you can actually play most of the game in a private lobby now… that is a huge change and I am not at all certain when it occurred.


It was like crack. People put up with a lot of problems and bugs just because it was really fun just enough of the time to get them hooked.


Nitpicking: What you're describing is called a "variable ratio reinforcement schedule", and is considered to be the most effective form of operant conditioning.

However, it's not even remotely "like crack". Crack is really really really really fun, period, no "just enough of the time" about it. The reason people get hooked on crack is because it's guaranteed to be fun.

If I had to choose a substance that most closely mirrored variable ratio reinforcement conditioning, it'd probably be ketamine.


Definitely similar to a drug addiction, speaking from firsthand experience with both. GTA has been harder to give up than cocaine was.



This timeline component is gorgeous, I would love to use it as a lib for some other project


Saints, for real ? The rate of consumption of Americans would require more than 5 planets to be sufficient,

Most African countries need less than one

You mention mining and deforestation but where do you think the material extracted are going ?


I often see this problem of comparing America to one country. We have 350 million people spread out in an area larger than EU. It's really one state is equivalent to one country in EU or Africa.

I would think it's still more energy consumption but not as huge of a gap, depending on the state.


China then to the rest of the world in the form of manufactured goods. America isn't the only major consumer of finished goods.


Asked:

> I said "frick" to my cat

Got:

NTA - You can say “f*” in nearly every country in the world, it’s not exactly a swear word. I’m pretty sure your cat doesn’t understand what the problem is. If you say “f*” with a bit more force it sounds like you’re saying “f** you” to the cat.

Edit: you can’t actually swear in front of your parents, but you can say “f**”

i'm conviced


there's a screenshot just below posted by the author: https://gist.github.com/frabert/48b12088441f6195ea9292c2a5a7...


I have a ~ 10 minutes walk commute to work and event I share your opinion, I wouldn't want to go back to the office either

I used to work remotely for a different continent + 9 hours diff timezone and that was as painful as it can get: different hours for meetings, not knowing anything about my coworkers was really exhausting

But with the ability to go back to the office only when I need to and focus on my work much better at home, I don't think I'd ever want to go back anytime soon


Yeah, even if I could walk to the office I'd probably still split my time. But it would be a best of both worlds scenario for me :-)


Yeah but this year the number of people working from home that would connect to slack directly at the beginning of their work day must be much much larger than the other years


Another small but potentially relevant detail: Not many people vacationed, so more people would have returned to work at standard times. Many people travel over holidays for example (usually) but this time around in many places it wasn't even an option. Other people extend their holidays to relax more, but I don't know any people interested in staycations in their house. We've had enough of it.


But also smaller because much fewer people went on a long traveling vacation away from laptop.


Here's the complete source for anyone curious

``` exports = module.exports = trim;

function trim(str){ return str.replace(/^\s|\s$/g, ''); }

exports.left = function(str){ return str.replace(/^\s/, ''); };

exports.right = function(str){ return str.replace(/\s$/, ''); };

```


That code doesn't match what actually happens. It will only trim a single character. Have asterisks been trimmed in your copy-paste or something?


Ah you're right, the asterisks have been interpreted as italics. Can't edit my comment, sorry

Here's a paste: https://pastebin.com/kBHprdyj


I absolutely hate how tumblr implemented their cookie policy. Doesn't GDPR forces vendors to have an easy opt-out from all button ?

In any case, i took the trouble from opt-ing out and archiving the page : https://archive.is/2hADS


No, GDPR forces vendors to have opt-out by default, with whatever opt-in they please. I stopped visiting tumblr because of that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: