@tef@mastodon.social avatar

tef

@tef@mastodon.social

former main character. they/them is fine

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

tef, to random
@tef@mastodon.social avatar

today on cohost i argue "simple" and "complex" are useless ways to think about software https://cohost.org/tef/post/2503472-complex-simple-good

tef,
@tef@mastodon.social avatar

@c0dec0dec0de code that does real things will have code smells, because the real world smells bad

tef,
@tef@mastodon.social avatar

@glyph i kinda want a better name for it but "here is an unchanging thing for the ages, constructed at great cost and effort" it fits kinda well

but it's not that pyramids are bad, it's more "software is a rule book and the game has to keep up with the players"

tef,
@tef@mastodon.social avatar

@glyph the impact java has on first time python programmers cannot be underestimated

tef,
@tef@mastodon.social avatar

@glyph prolog has a saying, “elegance is not optional” and it boils down to “if it’s ugly, it’s hard to debug, or inefficient” but that’s kinda about going with the grain of the language

which i do agree on

tef,
@tef@mastodon.social avatar

@glyph in all honesty i feel like i'll be writing in typescript, java, C#, or similar in a few years and i won't be able to tell the difference

tef,
@tef@mastodon.social avatar

@glyph either way, i think the issue is more deeply rooted, programmers learn abstractions to pass exams, and so they invent things they don’t need, to show they can

or the way in which many beginner python questions are “yes but how do i do it in one line”, or the “it’s reusable!” thing where people generalise before having an example

i guess when you write enough of it, it’s way easier to be detached and sloppy where necessary

tef,
@tef@mastodon.social avatar

@glyph i kinda call it “pyramid building mentality,” where people act like software has a finished state

and arguably, a lot more software used to have an end in sight—but acting as if you write once and maintain never ends up justifying fhe wildest trade offs

on the other hand, when you see it as an experiment/or something you learn aa you build, there’s less impetus to deduplicate in the name of efficiency, or write a framework in the name of reuse

lzg, to random
@lzg@mastodon.social avatar

deleted_by_author

  • Loading...
  • tef,
    @tef@mastodon.social avatar

    @lzg “it takes nothing to be kind, i should ask to speak to your manager!”

    tef, to random
    @tef@mastodon.social avatar

    discovering that FUSE-crimes are possible

    tef,
    @tef@mastodon.social avatar

    so, normally to mount a fuse process, you open /dev/fuse, pass in a fd to mount(), and hey presto, fuse mount

    but this requires root, so there's a fusermount suid binary that opens /dev/fuse, and calls mount, and sends back the fds

    .... but there's a secret third, near undocumented way, where you can pass in a mount point of /dev/fd/N and god

    tef,
    @tef@mastodon.social avatar

    @whitequark that's just your brain trying to protect you from learning about fuse

    tef,
    @tef@mastodon.social avatar
    tef,
    @tef@mastodon.social avatar

    @whitequark the first commit is for libfuse. you pass in the /dev/fuse fd with _FUSE_COMMFD env var variable containing the fd number

    tef,
    @tef@mastodon.social avatar
    tef, to random
    @tef@mastodon.social avatar

    it’s not surprising that the thing i use at work becomes the thing i use at home, but i am coming around to go,

    and much like python, the warts are surface level, so i don’t have to think too hard about working around them

    feels weird because i kinda felt like rust would fit my style of coding more, and it does in places,

    but there’s no puzzling parts to go, and having garbage collection is fantastic

    tef,
    @tef@mastodon.social avatar

    @jonty see also: drmaciver using python

    go stinks, but i can make it work without too much effort, as long as i can hold my nose

    the removal of gopath was a big improvement, i found out how to handle json properly, and i can do crimes with reflection, and i hear the loop bug is being fixed, along with adding min and max

    it still stinks though

    tef, to random
    @tef@mastodon.social avatar

    tripped up on the “go loop variables aren’t inside the loop block” closure bug and i am very “you had one job, rob pike”

    tef,
    @tef@mastodon.social avatar

    @filippo i also saw min and max making an appearance, too

    which is also about time 🙂

    tef,
    @tef@mastodon.social avatar

    @glyph yeeeeep https://go.dev/play/p/HFrHlaWpONm

    although python's worst feature in my mind is "default args at define time"

    gsuberland, to random
    @gsuberland@chaos.social avatar

    a 20 minute youtube video titled "the best of Snake from The Simpsons"

    pretty sure that's literally 100% of Snake's scenes in the entire show

    tef,
    @tef@mastodon.social avatar

    @gsuberland you know the early mcbain stuff forms a complete show right?

    gsuberland, to random
    @gsuberland@chaos.social avatar

    there needs to be a movie metric that counts how many times a character does something contrary to their motivation (including basic preservation).

    the challenge is then to find a single horror movie from each release year that scores a zero. this is remarkably difficult.

    tef,
    @tef@mastodon.social avatar

    @gsuberland cf "you've got hypothermia! why are you taking your clothes off!"

    also if it's set in america, you know why no-one goes to the hosptial

    tef,
    @tef@mastodon.social avatar

    @gsuberland well that's just bad writing

    gvwilson, (edited ) to random
    @gvwilson@mastodon.social avatar

    Every once in a while I dream out loud about writing a book that explains how society works to young programmers in order to inoculate them against the self-serving "well actually" bullshit of around Silicon Valley. https://siderea.dreamwidth.org/1817931.html is an example of what such a book would contain, and makes me realize that one reason I want to write such a book is that I want to be the kind of person who knows enough about things that matter to be able to.

    tef,
    @tef@mastodon.social avatar

    @gvwilson bring back “geek social fallacies”

    tef, to random
    @tef@mastodon.social avatar

    kitten

    tef,
    @tef@mastodon.social avatar

    @sarahdal because i have high standards

    tef,
    @tef@mastodon.social avatar

    @sarahdal these were some of the first pics i took of him, i'm aiming high https://mastodon.social/@tef/110748454578843088

    tef, to random
    @tef@mastodon.social avatar

    why did elon rename twitter to X?

    well, X is the opposite of NeWS

    tef,
    @tef@mastodon.social avatar

    jokes for maybe one, two people here, come and get it

    ben, to journalism
    @ben@werd.social avatar

    It's an interesting grift in a way: VC-subsidized startups changed an incumbent industry enough that its existing companies began to think that these new ideas were good business. But they never were, and it ate them from the inside. https://www.latimes.com/business/technology/story/2023-07-21/column-hollywood-sag-aftra-strike-strike-silicon-valleys-magical-thinking?utm_source=werd.io&utm_campaign=mastodon&utm_channel=mastodon

    tef,
    @tef@mastodon.social avatar

    @ben i tend to buy the union's story more—with the rise of streaming, big places have cut residuals

    players like netflix are paying people pennies

    and yeah, the studios will just say shit like "we will use ai", but they don't have to actually believe it

    it only serves as a threat of forcing wages down

    tef,
    @tef@mastodon.social avatar

    @ben i am 100% sure you can find one movie exec who has absolutely snorted enough coke to be on the AI hype train

    but well, the studios just don't want to pay—to the point where "please pay us on time" got the answer "no, and we never will"

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