@leblancfg@fosstodon.org
@leblancfg@fosstodon.org avatar

leblancfg

@leblancfg@fosstodon.org

Data plumber at Shopify, small-time open source maintainer @ https://github.com/leblancfg

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

dabeaz, to random
@dabeaz@mastodon.social avatar

I sometimes wonder if I should teach a project course (like raft or compilers) where you don't even know what programming language will be used until you show up. That would certainly be one way to make things even more exciting.

leblancfg,
@leblancfg@fosstodon.org avatar

@dabeaz FWIW would love to sign up to a compilers course if/when ever you open them up in person again!

Is that something you're considering?

jamescooke, to random
@jamescooke@fosstodon.org avatar

Found a bug in yesterday regarding how it processes blank lines when checking if there are blank lines in blocks.

https://flake8-aaa.readthedocs.io/en/stable/error_codes/AAA05-blank-line-in-block.html

If the blank line is followed by a # comment line, then Flake8-AAA doesn’t see it 🙈

While trying to check if the bug is valid, I’ve ended up yak shaving…

leblancfg,
@leblancfg@fosstodon.org avatar

@jamescooke you could drop both flake8 and black in favour of ruff (and ruff format). Like 100x faster and self consistent.

leblancfg,
@leblancfg@fosstodon.org avatar

@jamescooke oh I hadn’t clued in on the AAA part! Thought you meant an alpha build.

Please disregard that then, sorry — didn’t mean to sound disparaging.

pamelafox, to random
@pamelafox@fosstodon.org avatar

I'm really torn about the pretty exceptions from rich (as seen in Typer- https://typer.tiangolo.com/tutorial/exceptions/)
On the one hand, they're pretty. On the other hand, they're overwhelming - soo much traceback!

leblancfg,
@leblancfg@fosstodon.org avatar

@pamelafox yeah same, I always end up turning them off. No way I’m scrolling through 5 terminals’ worth of glitter 😅

brianokken, (edited ) to random
@brianokken@fosstodon.org avatar

--stepwise is the new -x

-x stop at the first failure
--stepwise first time, just like -x
--stepwise again, restart where we left off and continue until a failure.

leblancfg,
@leblancfg@fosstodon.org avatar

@carlton @brianokken pytest right?
> flag --stepwise will "exit on test failure and continue from last failing test"

leblancfg,
@leblancfg@fosstodon.org avatar

@carlton @brianokken or Twitter changed names again, who knows 🤷🏻‍♂️

hazelweakly, to random
@hazelweakly@hachyderm.io avatar

I find it fascinating that we talk about over engineering as if it's a thing in software engineering. It's not, cut it out, stop talking about that.

If I'm a contractor and I over engineer something, guess what? It works for that use case and all the future ones. The only thing I wasted was money and time. Did you make a 10 ton capacity deck when you only need 2 tons? Cool... It's still a deck.

Software engineering? We don't have over engineering. We have "building to solve the wrong problem"

leblancfg,
@leblancfg@fosstodon.org avatar

@hazelweakly I fundamentally disagree with the way this was worded. Might have to do with semantics? Maybe the 10 ton capacity dock is also "building to solve the wrong problem"?

To me, good engineering is synonymous with both "building to solve the right problem", but also "using the right time and money to design the solution".

The real sin with designing i.e. a carbon fiber paperclip is squandering the R&D resources when designing it.

leblancfg,
@leblancfg@fosstodon.org avatar

@hazelweakly I also see network effects in companies, e.g. "oh carbon fiber paperclips is the kind of thing that gets rewarded here? Guess I should start convincing management to spend my next 4 months on wifi water bottles if I want to get promoted."

leblancfg, to longboarding
@leblancfg@fosstodon.org avatar

Great little shop if you’re around : https://birlingtheottawa.com

Amazing service

scy, to random
@scy@chaos.social avatar

Reading about this new Linux kernel feature called bcachefs and I'm like "wtf are BCA chefs?"

leblancfg,
@leblancfg@fosstodon.org avatar

@scy They’ll cook up leucine, isoleucine, and valine in ways you never thought possible!

leblancfg, to random
@leblancfg@fosstodon.org avatar

Spaces 👏 in 👏 your 👏 CLI 👏 flag 👏 names 👏 should 👏 be 👏 dashes

Looking at you, gcloud.

leblancfg,
@leblancfg@fosstodon.org avatar

@shawnhooper yes 100%. I already had too many clapping emoji lol

kellogh, to random
@kellogh@hachyderm.io avatar

i'd love an editor that predicts which file i'm going to open next. like autojump for bash or jump-location for windows that basically build a markov chain around which sequence of directories you navigate to. i'm sure there's patterns, it would be neat to have the editor try to guess

leblancfg,
@leblancfg@fosstodon.org avatar

@kellogh slightly related, but check out “projectionist“ plugins for your editor (original being vim-projectionist).

You (manually 🤷🏻‍♂️) set up a JSON in your folder that maps between e.g. source and test files… or model, view and controller files. Then opening up the alternate files is a keymap away. https://github.com/tpope/vim-projectionist

leblancfg,
@leblancfg@fosstodon.org avatar

@kellogh in my experience that's not the case. Most project layouts have similar patterns regardless of language.

If when you're editing e.g. src/widget.rs you also need to update tests/test_widget.rs, then projections are a useful tool.

Or app/routes/index.js and public/templates/index.html. The list goes on

Cmastication, to random
@Cmastication@mastodon.social avatar

Since dragging home this hunk of steel I’ve learned a lot about heavy duty trailer axles. This frame can handle 20k lbs and the axles at least 15k. But the front axle with the brakes is a bastard size. Possibly off of a mobile home (!!!). Back “idler” axle is likely a spindle. I’ll add modern hubs on the back but since the front is weird it’ll likely get fully replaced with axle, brake, hub assembly.

leblancfg,
@leblancfg@fosstodon.org avatar

@Cmastication and um, what’re your plans for it? 😮

leblancfg,
@leblancfg@fosstodon.org avatar

@Cmastication ah neat! For some reason I thought the axles looked like they went on train tracks 🤦🏻‍♂️

dabeaz, to random
@dabeaz@mastodon.social avatar

I think I've reached the point where I consider any import statement that's related to code itself to be a code smell. If I see that, I just know that some giant turd of a thing awaits.

leblancfg,
@leblancfg@fosstodon.org avatar

@dabeaz like attrs? Or something more meta?

scy, (edited ) to linux
@scy@chaos.social avatar

Okay, so. I have a and a file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a . But how?

Like this.

alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'

pdfcat a.pdf > a.txt
doccat b.docx > b.txt

git diff --no-index --word-diff a.txt b.txt

And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.

leblancfg,
@leblancfg@fosstodon.org avatar

@scy reluctantly converting plain text files to other shit because you have to: The third-best way.

b0rk, to random
@b0rk@jvns.ca avatar

what helps people get comfortable on the command line? https://jvns.ca/blog/2023/08/08/what-helps-people-get-comfortable-on-the-command-line-/

Would love more stories of things that helped you in the last ~5 years!

(as usual, no need to reply if you don’t remember, or if you’ve been using the command line comfortably for 15 years — this question isn’t for you :) )

leblancfg,
@leblancfg@fosstodon.org avatar

@b0rk "forced to solve a problem that requires it" seems to be a common thread here! Mine was trying to get CUDA working on a home computer years ago. Watching Gary Bernhardt's Destroy all Software screencasts really made some things click too.

pybites, to python
@pybites@fosstodon.org avatar

Here is a 5 minute video on what a Makefile is, why you want to use one and how to - hope it helps you as 🐍 🔥 📈
https://www.youtube.com/watch?v=MICrNQm5btQ

leblancfg,
@leblancfg@fosstodon.org avatar

@pybites I've used a Makefile for my personal projects, but always find it hard / impossible to make it do things like virtualenv setup, automatic venv activation when entering the project directory, etc. AFAICT this is because make runs subshells.

Has anyone been playing with doit, paver or invoke, and how easy / hard is it to script the above?

danjac, to neovim
@danjac@masto.ai avatar

The whole ecosystem feels like a deck of cards. With null-ls being deprecated and no fork on the horizon, you scramble for a replacement, only to find a wasteland of poorly maintained documentation and contradicting Reddit comments for the alternatives.

That's not to knock against the hard work of the maintainers of core and plugins. But as a tool for getting serious work done, I'm not sure it's worth the effort any more for anything beyond simple text editing.

leblancfg,
@leblancfg@fosstodon.org avatar

@danjac that was always the drawback of using vs vanilla .

The lua nvim plugin ecosystem is in this weirdly early stages, yet working alongside other vim plugins that might be decades old at this point.

The ecosystem will coalesce and solidify, that’s a function of its age, not language/tooling/people. In the meantime the non-lua plugins are still pretty good IMO compared to VSCode.

tenderlove, to random
@tenderlove@mastodon.social avatar

It's weird that FaceTime accepts NDI as a microphone source, but it won't accept OBS as a video source

leblancfg,
@leblancfg@fosstodon.org avatar
zzzeek, to random

this is a really great thread unfortunately on evil bird site about Lance's "tweet" and the general topic of trans participation in sports. it's an explainer, which I appreciate since I would like to be more aware of the background on this topic (I'm not a sports person at all). including the notion of "why do we have gendered sports at all?" which I have often thought myself

https://twitter.com/assignedmedia/status/1672905549606789121?s=20

leblancfg,
@leblancfg@fosstodon.org avatar

@zzzeek I don’t think I have the full context here, but isn’t that textbook ad hominem? “This man can’t ask questions because he cheated”… the fact that he cheated has no bearing on the question.

leblancfg, to LLMs
@leblancfg@fosstodon.org avatar

Trying to think about future personal use of on desktop. Assuming people roll their own , what is the "natural" for a service running models locally?

seems to choose what model to run by itself: It usually starts fast (prob. 3.5 turbo), and if the question is complex enough or it's prompted to correct itself, it'll use prob. .

That's one way to think about it.

leblancfg,
@leblancfg@fosstodon.org avatar

@kellogh TIL, thanks!

Widely just trying to illustrate server-side model selection based on content, and then compare with https://fosstodon.org/@leblancfg/110600267422333215

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