petey

joined 1 year ago
[–] petey@aussie.zone 4 points 1 week ago

Thanks, now I want to order McDonald’s yellow coloured filament

[–] petey@aussie.zone 27 points 3 weeks ago (2 children)

I’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously

[–] petey@aussie.zone 11 points 3 weeks ago (1 children)

However it should be noted that the remote development connection is via their servers, which makes it somewhat less useful

[–] petey@aussie.zone 1 points 3 weeks ago

Ah ok, the name implies it’s a security guard

[–] petey@aussie.zone 5 points 4 weeks ago (2 children)

I love that you’re thinking about how to secure sensitive parts of JS applications, however I wonder what threat this is guarding against. Can you give an example? Surely if an attacker can modify the source to call the sensitive functions, then they could modify the allow list

[–] petey@aussie.zone 2 points 1 month ago

Oh wow, this is amazing info. Thanks!

[–] petey@aussie.zone 11 points 1 month ago

Nice article! I’m a fan of the “don’t optimise early” mantra, which seems particularly relevant here regarding clone

[–] petey@aussie.zone 21 points 1 month ago (1 children)

I feel like this is a perfect encapsulation of how an experienced self-aware developer thinks. Experience really beats the hard stances out of you. I find myself saying “it depends” and “a bit of column A, bit of column B” often, like a cheap kids toy

[–] petey@aussie.zone 13 points 1 month ago

His take strangely acknowledges that defects are caused by programmers, yet doesn’t want to improve the tools we use to help us not make these mistakes. In summary, git gud.

Experience has taught me that I’m awfully good at finding and firing foot guns, and when I use a language that has fewer foot guns along with good linting, I write reliable code because I tend to focus on what I want the code to do, not how to get there.

Declarative functional programming suits me down to the ground. OOP has been friendly to me, mostly, but it also has been the hardest to understand when I come back to it. Experience has given me an almost irrational aversion to side effects, and my simple mind considers class members as side effects

[–] petey@aussie.zone 9 points 1 month ago

Effortlessly cool

[–] petey@aussie.zone 3 points 3 months ago (1 children)

To be fair, it’s really difficult when you’re sober too

view more: next ›