mcc,
@mcc@mastodon.social avatar

If you are going to be a programmer the most important advice I can give you is that you are going to have to pretend to know what "dependency injection" is

gws,

@mcc Lambdas everywhere. As function parameters, return types, collection value types...Go wild.

If you have more than one case to handle, don't write code for all of them here, make the caller provide their own implementation.

klara,
@klara@wandering.shop avatar

@mcc In such situations I often say something about ML module systems and how it sure would be nice if we got to use those instead of having to mess with dependency injection, but what can you do, none of us alone picks which languages we have to use at this company, etc..

Which is all true! But for it to be meaningful I would've had to ever use an ML module system for something more than a tiny solo toy project.

Eh, at least this presents a nice window for someone else to change the subject.

Dancer,
@Dancer@mastodon.social avatar

@mcc The good news is that almost nobody will call it that, and it's probably something you'll just cobble together yourself along the way without realising it's a thing.

mcc,
@mcc@mastodon.social avatar

@Dancer That doesn't sound like good news at all!

enkiusz,
@enkiusz@is-a.cat avatar

@mcc This and "inversion of control"

curved_ruler,
@curved_ruler@mastodon.gamedev.place avatar

@mcc
ah a thing to care when you parse invalid uml diagrams

janet,
@janet@fosstodon.org avatar

@mcc also whenever someone mentions "programming language theory" you ask them something inquisitive then nod along for the next half hour

Meowki,
@Meowki@mastodon.world avatar

@mcc No need. Static ftw.

alloydflanagan,
@alloydflanagan@me.dm avatar

@mcc It’s a very important technique for solving a problem almost no-one has, in a way that’s usually worse than the problem.

kboyd,
@kboyd@phpc.social avatar

@mcc I know exactly what it is - it's when you load all your dependencies up into a turkey baster and ... no? that's not it?

phenidone,

@kboyd @mcc no that is exactly it.

Be careful where you stick it.

fishidwardrobe,
@fishidwardrobe@mastodon.me.uk avatar

@mcc that's when I get a covid jab because my wife is vulnerable

whimsy,
@whimsy@chitter.xyz avatar

@mcc I will take a programmer who doesn't know what it is over a programmer who pretends to know what it is any day.
The latter type is the type inclined to think "we need a framework of byzantine complexity" as opposed to "we should make simple improvements to our code".

obot50549535,
@obot50549535@left-tusk.com avatar

@mcc guess i better google it

scattapilla,

@mcc but enough about my dating life,

js,

@mcc oof. sounds painful, hard pass

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