@anselmschueler@ieji.de
@anselmschueler@ieji.de avatar

anselmschueler

@anselmschueler@ieji.de

I’m a 20 year old computer science student living in Berlin, Germany.
I am interested in maths, physics, linguistics, and programming.
In particular I program in #rust (although I’m a beginner here), #python, #nix (I use #nixos), and #haskell, for uni I use #java and #c and #sql.
I have a #website (and #blog) at https://anselmschueler.com.

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

aeva, to NixOS
@aeva@mastodon.gamedev.place avatar

I don't actually have time today to work on any side projects, but I thought I'd run through the basic setup steps for MonoGame aaaand

./bin/Debug/net6.0/MyGame
bash: ./bin/Debug/net6.0/MyGame: cannot execute: required file not found

... which required file ._. ???

I think this sort of thing means it tried to dynamically link something and failed. I run into this whenever I try to run loose builds of Linux games on , but idk what to do about it.

anselmschueler,
@anselmschueler@ieji.de avatar

@muvlon @aeva @duckonaut maybe they were talking about nix-env?

alper, to rust
@alper@rls.social avatar

Trying to get my head around how to organise a #Rust project where you have to deal with "crates", "packages", "modules" and "libraries" each of which means something slightly different.

I guess the reason why so many Rust source files are 1000+ LoC is because figuring out how to split them up is too much of a pain.

anselmschueler,
@anselmschueler@ieji.de avatar

@alper packages provide crates. libraries are a type of crate (of which there can only be one per package). modules are (nested) subdivisions of crates.

anselmschueler,
@anselmschueler@ieji.de avatar

@soc @alper What kind of system do you prefer?

mekkaokereke, to random
@mekkaokereke@hachyderm.io avatar

🤔 Why are people taking Scott Adams seriously? He says DEI stands for "Didn't Earn It." But let's look at his own words from his own book. He's boasting about his mediocrity, and how he didn't earn anything, and about how he was terrible at his job.

Every Black employee at his company earned it much more than he did. And these are his own words! And look at the text from his own performance review! 🤡

A bank teller that loses money and is incompetent, genuinely expecting to be promoted.

My supervisor liked me, but my sloppiness at keeping track of peo- ple's transactions-which in those days involved writing down num- bers with a pen and paper-made me unfit for the job. My supervisor warned me that unless I improved quickly, she would be forced to let me go. I knew I wasn't likely to get better at handling details. I was a failure at my first job. I figured I had two ways to leave my job. I could get fired or-and here's the optimist emerging-I could get promoted. I wrote a letter to the senior vice president for the branch system, who was probably seven or eight layers of management above me, and described all of my naive suggestions for improving the bank. My ideas had one thing in common: They were impractical for reasons a twenty-one-year-old wouldn't yet appreciate. I closed my letter by asking for a rare and coveted spot in the management training program, a fast track to up- per management. It was a long shot for a guy who had on his perma- nent work record some version of "too incompetent to write numbers

anselmschueler,
@anselmschueler@ieji.de avatar

@jonobie @mekkaokereke isn't it more in the range of $8500?

astrid, to random
@astrid@fedi.astrid.tech avatar

imagine being the guy who made homebrew (🤮), the pkgxdev AI-generated everything AI-issue-responder guy, AND the teadev guy, and you're just one fucking guy

RE: https://mastodon.social/users/AlSweigart/statuses/112004698631111478

anselmschueler,
@anselmschueler@ieji.de avatar

@astrid what is that supposed to mean?

anselmschueler,
@anselmschueler@ieji.de avatar

@astrid a mixture of "effective altruism" and "accelerationism"?

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Seems OK to me...

with open(text_file) as f:<br></br>    items = [line for line in f.read().splitlines()<br></br>             if line.strip() and not line.startswith('#')]<br></br>

Context: A txt file with a list of files to process, some are commented out, and there is a first line head comment followed by a blank line.

anselmschueler,
@anselmschueler@ieji.de avatar

@villares I'd say this isn't performant because it copies the string unnecessarily.

btp, to random
@btp@fosstodon.org avatar

'brub' is my new favorite word.

anselmschueler,
@anselmschueler@ieji.de avatar

@btp what's it mean?

anselmschueler, to programming
@anselmschueler@ieji.de avatar

In my opinion, C’s declaration-follows-usage is in and of itself not bad, merely idiosyncratic. Where it gets super bad is when you declare the identifier via the declarator and assign to the identifier not via the declarator in the same line.

#c #programming

anselmschueler,
@anselmschueler@ieji.de avatar

@glaskows As I understand it: int * is the type of x_ptr, but int is the type of *x_ptr. The declaration, syntactically, is not the type int * juxtaposed with x_ptr, but the type int juxtaposed with the declarator *x_ptr. This is most clearly demonstrated by multiple declarations with one type: int *a, b means a is a pointer, b isn’t. The type int * is an independent construction formed by omitting the identifier from the declarator.

anselmschueler, to python
@anselmschueler@ieji.de avatar

Convoluted way to check if an element is included in all sublists in Python

anselmschueler, to random
@anselmschueler@ieji.de avatar

I have unsuccessfully installed Arch Linux

kohelet, to python
@kohelet@mstdn.social avatar

I have a quesiton about programming in Python.
Many times when I have a number of options (functions) to run, I wanna generlize the main function as much as possible,
and end up doing a dictionary with function names as values like this:
options = {'1': func1, '2': func2}
and then call them like this:
options['1'](parameter=smth)

  1. is it best practice/by convention?
  2. do people do that in general? are there better options?

thanks!

anselmschueler,
@anselmschueler@ieji.de avatar

@kohelet Why not write a function with a match statement that dispatches to the specialized functions and takes a starred argument to pass through so it's just one call on the consumer side?

RL_Dane, to random
@RL_Dane@fosstodon.org avatar

What a missed opportunity 😅

anselmschueler,
@anselmschueler@ieji.de avatar

@RL_Dane d stands for dollar

anselmschueler, to NixOS
@anselmschueler@ieji.de avatar

APOLOGIES

Today I posted about naively assuming the leadership didn't do anything, promoting the open letter. That was a mistake, I should've checked before. There has apparently been movement to correct the problems

anselmschueler,
@anselmschueler@ieji.de avatar

I still stand by https://save-nix-together.org, but the threat it in is no longer applicable.

anselmschueler, to random
@anselmschueler@ieji.de avatar

@chvp @jakehamilton In fact I did not.

anselmschueler, to random
@anselmschueler@ieji.de avatar

why

anselmschueler, to programming
@anselmschueler@ieji.de avatar
astrid, to random
@astrid@fedi.astrid.tech avatar

"not autistic btw" says girl who infodumped about ALOHAnet's collision avoidance last week

anselmschueler,
@anselmschueler@ieji.de avatar

@astrid that would've been handy I had a test with questions on ALOHA recently

anselmschueler, to GNOME
@anselmschueler@ieji.de avatar

Why don't they just include all the old wallpapers in by default? Why does there need to be the nostalgia app (which isn't updated frequently enough)? The wallpapers are nice!

anselmschueler, to mastodon
@anselmschueler@ieji.de avatar

Does editing a post to include hashtags cause it to appear in timelines of those following the hashtag or doesn't it? #mastodon

anselmschueler, to python
@anselmschueler@ieji.de avatar

Just learned that 3.12 will include arbitrarily nested f-strings and remove limitations on expressions inside them! That's cool.

anselmschueler, to random
@anselmschueler@ieji.de avatar

what do you call this brace style #c

anselmschueler, to haskell
@anselmschueler@ieji.de avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • ethstaker
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • lostlight
  • All magazines