News for hackers. Stuff that matters.
Re:Ask HN: What are some “10x” software product innovations ... by sfblah on Tuesday March 16, 2021 @05:04PM (#26482945)
You didn't like debugging with window.alert()?
Re:Ask HN: What are some “10x” software product innovations ... by eyelidlessness on Wednesday March 17, 2021 @12:33AM (#26486572)
For anyone still/stuck with console debugging, “pro” tip:

JS ignores the value of every statement in a comma-separated expression except the last one. So you can do trash like this:

    const foo = (bar) => (
        console.log(bar),
        someComputationOf(bar)
    );
And log-debug without restructuring your otherwise pure function.
Re:Ask HN: What are some “10x” software product innovations ... by prepend on Tuesday March 16, 2021 @07:13PM (#26484435)
I remember running in a frame set just so I could document.write instead of a million window.alert. Fun times.
Re:Ask HN: What are some “10x” software product innovations ... by ftio on Tuesday March 16, 2021 @07:57PM (#26484848)
This is a brilliant idea. Where were you back then? I would've benefitted immensely from a Xanga or LiveJournal post about this.
Re:Ask HN: What are some “10x” software product innovations ... by prepend on Tuesday March 16, 2021 @10:02PM (#26485650)
It’s really funny how isolated the Webdev world was back then. (Or at least I was).

I take stackoverflow and blogs for granted.

I did have a hand-rolled blog back then (The Hole Report) but was busy writing about magic tournaments and didn’t think anyone else cared about javascript hacks.

Re:Ask HN: What are some “10x” software product innovations ... by crimper on Tuesday March 16, 2021 @05:17PM (#26483101)
this gave me a vivid image of young me flailing around in the dark trying to understand why undefined is not a function
Re:Ask HN: What are some “10x” software product innovations ... by laurent92 on Wednesday March 17, 2021 @10:38AM (#26491855)
The worst was when I discovered all console.log() crashed because IE6 left “console” as undefined until the developer tools were open.

Fortunately another bad feature of IE was to alert() the errors, so customers were aware of each of them and could easily send us the bug back...

This bank employee used PrintScreen to print the screenshot on paper. He the successfully faxed it to his email, zipped it and uploaded it to our bugtracker. I had the zip of a .tiff of a scan of a printed screen. I still wonder whether he did it because he was upset, or whether it was a usual workflow.

Re:Ask HN: What are some “10x” software product innovations ... by crimper on Tuesday March 23, 2021 @04:38PM (#26560109)
probably a temporary ad hoc process that is now permanently etched into their brain
Re:Ask HN: What are some “10x” software product innovations ... by nicoburns on Tuesday March 16, 2021 @06:52PM (#26484267)
[object Object]
Re:Ask HN: What are some “10x” software product innovations ... by sdesalas on Tuesday March 16, 2021 @05:47PM (#26483512)
I remember filling js files with alert messages back in 2004. Imagine the joy debugging a 15k line js codebase back then.