@Floppy@mastodon.me.uk avatar

Floppy

@Floppy@mastodon.me.uk

Generic humanoid carbon unit. ❤️ tech, democracy, environment, society.

Currently building https://3dp.chat/@manyfold and site admin @ https://mastodon.me.uk

Previously: https://dxw.com, https://somethingnew.org.uk, https://openpolitics.org.uk, https://apolitical.co, https://theodi.org, https://www.amee.com and more.

Alignment: Chaotic Whimsy.

#OpenSource #Ruby #Rails #Python

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Floppy, to javascript
@Floppy@mastodon.me.uk avatar

experts, I need advice. I'm trying to extend a class in order to override a method or two. It defines everything in its constructor, and I can't work out how to use anything in the original class from my new one.

Could anyone suggest to me how syntactically I should minimally replace onKeyDown and handleKeyDown with my own versions, while still being able to use functions and properties from the base class? I'd really appreciate the guidance!

Code: https://github.com/mrdoob/three.js/blob/885c2dbab575e6528464e096784680d19914c3f3/examples/jsm/controls/OrbitControls.js

Floppy,
@Floppy@mastodon.me.uk avatar

@almostobsolete thanks! I could override the event handling completely, but I still want to call stuff inside the original class to control the camera; I guess that’s not possible with it all wrapped up like that.

Floppy,
@Floppy@mastodon.me.uk avatar

@almostobsolete looks like I’ll have to just copy it wholesale.

Floppy,
@Floppy@mastodon.me.uk avatar

@Krazov no, all the scopes were screwed up. Think I've got a solution now though!

millerdl, to random
@millerdl@mathstodon.xyz avatar
Floppy,
@Floppy@mastodon.me.uk avatar

@millerdl coming next: Beyond Tacomadome

Floppy, to random
@Floppy@mastodon.me.uk avatar

Once again, I state for the record that Javascript's scoping rules can get in the fucking sea.

Floppy,
@Floppy@mastodon.me.uk avatar

@rgarner no, that other one next to it.

ldodds, to random
@ldodds@mastodon.me.uk avatar

I just mis-read a media type as "mans/plain" and now I'm trying hard not to write the RFC for it.

Floppy,
@Floppy@mastodon.me.uk avatar

@ldodds @pikesley HTTP 302 I THINK YOU'LL FIND

Floppy,
@Floppy@mastodon.me.uk avatar

@otfrom @pikesley @ldodds and anyone who is here is already complicit in our bullshit.

Floppy,
@Floppy@mastodon.me.uk avatar

@ldodds @otfrom @pikesley “None of you seem to understand. I’m not locked in here with your bullshit. You’re locked in here with mine!”

Floppy, to random
@Floppy@mastodon.me.uk avatar

TFW you merge a PR that represents your entire week's work. Lovely.

Floppy, to random
@Floppy@mastodon.me.uk avatar

Headdesking after realising I’ve spent a day debugging something I caused by trying to make debugging a different thing easier.

Would YOU like to feel like a genius or an idiot on a completely random basis? Try programming!

Floppy, to random
@Floppy@mastodon.me.uk avatar

Who on mastodon.me.uk is coming to @emf? I wonder if I should organise a little meet up…?

Floppy, to random
@Floppy@mastodon.me.uk avatar

Web workers seem fairly straightforward, except if you want to run an interactive 3d engine offscreen, in which case there's so much to get your head around and very little clear documentation. It's taken me ages. 😭

Blog post definitely to come from this though.

Floppy, to random
@Floppy@mastodon.me.uk avatar

Now wondering whether to pitch an @emf lightning talk that would either (a) be really interesting and unexpected or (b) make me look utterly insane and destroy what little credibility I have left.

Not sure I'm brave enough.

Floppy,
@Floppy@mastodon.me.uk avatar

@jsbilsbrough a tiny tiny sliver

Floppy, to random
@Floppy@mastodon.me.uk avatar

Even after all these years, Javascript's scope and callback behaviour still do my head in.

Floppy, to random
@Floppy@mastodon.me.uk avatar

Sadly didn't get my @emf talk in, but I'm not too surprised; it was probably not right for the audience or general vibe really. Still, that means I can spend the time focused on the many other things I need to do before the end of the month 😓

Floppy, (edited ) to random
@Floppy@mastodon.me.uk avatar

It’s May 4th! What shall I get the kids to watch tonight?

Floppy,
@Floppy@mastodon.me.uk avatar

@pikesley nah I’ll watch with them

Floppy,
@Floppy@mastodon.me.uk avatar

@pikesley no you’re thinking of The Blob

Floppy,
@Floppy@mastodon.me.uk avatar

@jezhiggins snoogans

RepairCafe_Barry, to repaircafe
@RepairCafe_Barry@toot.wales avatar

We're working on a child's bake which has unreliable brakes, a cassette player, a vacuum cleaner, a hedge trimmer, a bag, and a laptop at the moment.

We've had lots of clocks come in so Kevin is very busy!

@repaircafe

Floppy,
@Floppy@mastodon.me.uk avatar

@RepairCafe_Barry why on earth would a kid’s bike need a vacuum cleaner and a hedge trimmer on it?

😉

Floppy,
@Floppy@mastodon.me.uk avatar

@RepairCafe_Barry volunteers, mad scientists, what’s the difference really?

Floppy, to DuckDuckGo
@Floppy@mastodon.me.uk avatar

Well, that's my normal workflow fucked.

Floppy,
@Floppy@mastodon.me.uk avatar

@ruggothrikh no idea, I hadn't even noticed it!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • thenastyranch
  • magazineikmin
  • hgfsjryuu7
  • Youngstown
  • khanakhh
  • slotface
  • vwfavf
  • mdbf
  • rosin
  • kavyap
  • ngwrru68w68
  • PowerRangers
  • DreamBathrooms
  • anitta
  • everett
  • InstantRegret
  • GTA5RPClips
  • osvaldo12
  • ethstaker
  • modclub
  • cisconetworking
  • tacticalgear
  • Durango
  • cubers
  • tester
  • normalnudes
  • provamag3
  • All magazines