News for hackers. Stuff that matters.

ggpp

Re:Google Maps now requires WiFi scanning to use navigation on Tuesday February 01, 2022 @06:22PM (#30171132)
My access points are inaccessible to the public. You would have to trespass deep into my property.
Re:Nokia E63 phone converted into LoRa messenger on Wednesday July 14, 2021 @11:20AM (#27834078)
Re:Apple MagSafe Battery Pack on Tuesday July 13, 2021 @05:55PM (#27826760)
The iPhone 12 starts at $729. You get a $30 rebate if you sign up for a new phone plan.
Re:Why is it so hard to see code from 5 minutes ago? on Friday February 19, 2021 @04:12PM (#26198089)
Ohhh, I thought it was a riff on "I don't always test my code, but when I do, I do it in production."
Re:Why is it so hard to see code from 5 minutes ago? on Friday February 19, 2021 @10:35AM (#26194223)
YES! TDD has saved me from this, listen to our friend fung. I put off learning about it for so long out of laziness but the payoff is huge.
Re:Why is it so hard to see code from 5 minutes ago? on Friday February 19, 2021 @10:30AM (#26194166)
no it's webpack HMR

(I know you're joking)

Re:Why is it so hard to see code from 5 minutes ago? on Thursday February 18, 2021 @10:18PM (#26189214)
> I believe many devs are afraid someone could see all their trial and error attempts and judge them

This is certainly part of the reason I do it. Sometimes I'll start repos anew, without the "mistake" commits and branches, and add that version to my Github before I send the link to a potential employer.

Re:Why is it so hard to see code from 5 minutes ago? on Thursday February 18, 2021 @10:14PM (#26189186)
I write a lot of frontend JS with hot reloading

make change => see result => cmd-z 1 time to fix result OR commit and keep coding

oops, it wasn't really fixed. cmd-z 3 times and see if that works

I know it's wrong, but what's right?

Re:Why is it so hard to see code from 5 minutes ago? on Thursday February 18, 2021 @10:08PM (#26189147)
What's the alternative? What should I be doing instead of cmd-z?

> I'll Ctrl-A and Ctrl-V this into a new tab before it gets too messy

I did this about 400 times today

You should at least pay your intern a livable wage, $15/hr