Better HN
topnewbestaskshowjobs
Log inSign up

cain

165 karma · joined Nov 6, 2016 (10y ago) · 23 submissions

https://joellord.dev

You can reach me via email at joel@joellord.dev

Submissions

comment 4y ago · link · parent

What issues did you have with GDscript's signals? I've been using Godot for > 2 years and had no issues with them.

comment 4y ago · link · parent

I can't speak to the strengths of the VScode plugin, but if it's anything like the emacs gdscript plugin (which I use with Spacemacs + vi keybindings), then the integration is very tight. I get just as much completion as I do in the in-engine editor, I can run/debug/breakpoint etc. I've been using it for ~2 years.

comment 4y ago · link · parent

The limitations of Godot's in-engine text editor can be compensated by a more powerful external editor: VScode, emacs, vim, etc. An example would be the lack of remappable keybindings: this can be overcome by using an external editor.

4.

Hetzner subsea fibre cut outage(status.hetzner.com ↗)

140 points · by cain · 4y ago · 90 comments

comment 4y ago · link · parent

I've heard good things about Hetzner. How do they compare to Linode?

comment 4y ago · link · parent

Logging to console, to build a mental model of the codepaths data and events take.

Git grep (or ripgrep) to find usage - useful when refactoring and to see how data is used/accessed and where it's passed around. Also useful to note where certain data doesn't show up: you can infer some structure from this.

Looking at when something was last changed with git blame can be useful. Is something suddenly broken, but hasn't been changed in 5 years? Could give an indication of where not to look on a first pass.

Break some things (locally) on purpose. Get a feel for how errors bubble up through the application and how dependant code behaves when something is wrong.

Look over the last handful of PRs/merged patches. It can be helpful to see these smaller pieces of code, the changeset, and their associated context - whether it was a feature, a bugfix, and what the code was supposed to achieve.

Use existing code in the codebase as a styleguide. Most work on large codebases isn't groundbreaking or innovative, so you're likely to find existing code similar to what you're currently trying to achieve that you can use to guide you.

If possible, make use of code reviews with colleagues.

comment 4y ago · link · parent

Not so much crunch, but I do stress over leaving WIP in a clean state that colleagues can pick up while I'm gone.

That's a useful insight - thanks.

comment 4y ago · link · parent

Oh, interesting. Thank you! It's odd to see something I experience, put into words by others.

9.

Ask HN: Does anyone else get sick when their vacation starts?

43 points · by cain · 4y ago · 40 comments

comment 5y ago · link · parent

I suffer with chronic sleep issues. This is yet another reason to blanket block all medium articles.

comment 5y ago · link · parent

> If there were places IRL where the average person is subjected to a constant barrage of callousness it wouldn't continue to exist, would it?

Is this not why the real issue is related to social media itself, rather than generalised "trolling"? This isn't as much of an issue in niche forums or niche-dedicated social sites.

We are free to make our accounts private, block/sign out/delete/not partake in social media, yet many feel like they are __unable__ to make use of these features. IRL, you can't always easily escape bullying. Online, you can choose not to engage; yet people continue to place themselves in the line of fire. I think this speaks to a much deeper issue (as you point out) and I'm not sure jailing trolls is the answer.

comment 5y ago · link · parent

It looks interesting, but I wouldn't even download or use it for free, knowing I have to send out an email just to find out what the pricing tiers are (even for an individual user) and what is/is not included. Are you willing to publicly share that information?

Since you explicitly mention Sublime Text: their pricing is listed on their website and they have a clear 'Buy' button. Not sure why you would share that your pricing is similar and name a specific product, but also appear unwilling to display what the pricing and featureset is.

comment 5y ago · link · parent

I hope so. I have a part 3 and 4 written locally: I just need to find time to edit them.

comment 5y ago · link · parent

Cool! I went over something similar in an old blog post (https://joellord.dev/blog/posts/Build-a-Text-Editor-in-Lisp-...) only I did the C portion in Common Lisp too, using CFFI + Grovel.

comment 5y ago · link · parent

Noob is just a contraction of Newbie. Newbie -> Newb -> Noob. It's still used interchangeably with Newb.

comment 5y ago · link · parent

What's creepy about complimenting someone's belt, that is not creepy about complimenting their watch?

comment 5y ago · link · parent

Why is the only other option to rewrite VSCode? How about another editor? Vim, <space, doom, etc>emacs...?

comment 5y ago · link · parent

It will be interesting to see in what new ways this disproportionately negatively affects those on the autistic spectrum, or with other similar behavioural traits.

comment 6y ago · link · parent

I was excited to read about this. An upgraded C would be nice. Unfortunately, after the homepage, this seems disastrously opposed to anything resembling a "better" C.

The features page feels extremely painful to read. It took me at least two minutes to even begin to make sense of the first section: "Declarations", then an explanation of Tuple, immediately followed by:

  int i;
  double x, y;
  int f( int, int, int );
  f( 2, x, 3 + i );      // technically ambiguous: argument list or comma expression?
Tuple isn't mentioned again until seven or so lines after its explanation. After reading further, I realise they aren't linked in any way, but this was confusing at first. I thought I was missing something major about the syntax.

  [ y, i ] = [ t.2, t.0 ];    // reorder and drop tuple elements
I don't know what this even means. If this:

  [ i, x, y ] = *pt;      // expand tuple elements to variables
pulls out tuple elements into variables, and this:

  x = t.1;        // extract 2nd tuple element (zero origin)
accesses tuple elements: then what is "reorder and drop" and why does the combination of the above two behaviour result in an ostensibly different third behaviour?

It gets worse the further down the page I try to understand. Very claustrophobic and presented as a mish-mash of syntax examples. I can't see how this is any better than C's syntax, honestly. What C would benefit from is a better baked-in stdlib, OR an easily available, downloadable, lib of helper functionality that doesn't require any modifications to existing code (eg. when I want a hashtable in an already-established project, I don't want to modify my existing structs!)

comment 7y ago · link · parent

I would appreciate if you could share that Youtube download script.

comment 7y ago · link · parent

I agree. This is precisely why it is nonsensical to make a natural vs unnatural comparison for human activity.

comment 8y ago · link · parent

Source: https://www.nasa.gov/sites/default/files/files/NIAC_Torpor_H...

comment 8y ago · link · parent

Maybe I'm out of the loop: what's wrong with Phoronix?