Hacker News new | past | comments | ask | show | jobs | submit | JestUM's comments login

Sooner or later, this can accidentally slip into important pieces of code.

Attackers could upload malicious modules that don't exist yet due these hallucinations.


Notion is pretty cool.


Was unable to merge PRs.

Earlier, I also got GitHub PR comment emails about 6 hours late.

Whatever it is, it’s been happening for more than 6 hours.


Could you apply the patch from the URL? Pull requests aren't really needed.


Investing in a good debugging tool and knowing your way around using it well, makes all the difference.


After recently doing some JavaScript work and not knowing how to debug it, any suggestions for a JavaScript debugger? Part of the problem is it's already difficult to get a modern JavaScript stack setup: TypeScript transpiles to JavaScript trasnpiles to different bundles that all get minified and backfilled and next thing you know your debugging a variable named i̷̪̱͆͛w̵̤̹̠͊̇̈x̷̨̻̽̍̄͆ on line 582956, and you ask your coworkers for help and none of them have ever used anything but console.log and are like ¯\_(ツ)_/¯ -- it was traumatic.



VSCode works well, both for command line stuff via node.js or Deno, and for (remote) browser debugging:

https://code.visualstudio.com/docs/typescript/typescript-deb...

https://code.visualstudio.com/docs/nodejs/browser-debugging

The JS-to-TS mapping is handled through source map (so you're 'debugging' the TS code, even though it's JS under the hood).

(also, in case you're not aware, browsers have a builtin debugger in their devtool panel, these also have source map support, but this may require some tinkering)


It's one of those things where 'just a puts/printf/console.log/prtln' always seems easier.

But all those tiny times add up, over years, decades. And eclipse the time of that afternoon+ spent on learning & configging debuggers in months already.

Don't be me, that senior dev who'd been promising himself for decades to really get down to learning and setting up gdbg or equivalent. And then, once invested, keeps thinking: "I should've done this years ago".


I've been using Rust on Windows, LLDB is just pain. Not being able to see content of enums is a show stopper, luckily VSCode has C++ debugger by Microsoft that works flawlessly.


FWIW CLion is worth the $$. For Rust and for C++. The debugger interface is fantastic, in both Windows and Linux. And also for WSL2 (run IDE in Windows but edit and run the binary inside your WSL2 container.)


I have it (CLion I mean), but didn't get it to run in WSL2. VSCode debugging is better but editor can get wonky.


I'm personally not a big fan of CLion. Too heavy, not as near customizable as (Neo)Vim, this damned `.idea` folder, constant re-caching. I tried to use it a couple of times, but always ended up going back to Vim.


Yup.


Give your brain 10 decision points.

Aim to finish these by EOD.

Repeat.


10 decisions in one day? I'd be a relief to have just 10 per hour.


My way is super weird.

I start with a YT to get comfortable.

Once things start to make sense, I try to extrapolate that feeling or thought and build something immediately (hoping to be wrong or get stuck).

gets stuck

bp:

Back to consuming but with a more specific intent.

Back to building.

goto bp;


I generally break down goals into tiny actions and try to combine tiny actions to goals to see if there is any confusion.

Tasks -> Projects -> Streams -> Goals

I think in this format.


Once you get it, it's one of those games that give good vibes.


Thanks for compiling and sharing these :)


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: