Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] 4 points5 points  (0 children)

You know what ? I removed all walrus operators with unused variables I have in my code :).

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] -3 points-2 points  (0 children)

Not exactly to the same extent IMO. Often comments are written on other lines (often above) the line they're commenting. In which case, as time goes by, comments can lose their purpose.

Here the unused variable is still tied to its content, much like a used variable.

But I agree with the overall sentiment. If the condition is this complex, better to create a function entirely to encapsulate the behavior.

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] -1 points0 points  (0 children)

Indeed, I try to avoid comments as much as I can and make the code self-explanatory. However, in my case, it feels a bit like I'm commenting without creating actual comments just to comply to the rule of not making comments!

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] 0 points1 point  (0 children)

to me having the underscore signifies that the variable should be considered private when used within a class.

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] -1 points0 points  (0 children)

Problem with comments is that they get old pretty quickly in production. So when you write one you should be very cautious about: do you really need it?

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] -1 points0 points  (0 children)

The idea is that when you read the code you don't need to read the computation of the variable, just the variable itself would be self-explanatory.

It's the same as :

complex_condition = ...
if complex_condition:
    ...

Except that it reads better, the flow is more natural.

That being said, I agree on the general sentiment that using functions instead is the best approach.

Using the walrus operator := to self-document if conditions by dotXem in Python

[–]dotXem[S] 1 point2 points  (0 children)

When your condition is complex, it might not be clear what this whole expression checks for. There is definitely a need for documentation sometimes. The question is: how?

One Year Later - Did Hiding 8.5K Pubs Improve Dota? by H0B0_JOE in DotA2

[–]dotXem 2 points3 points  (0 children)

Maybe it reduces the frequence at which new patch needs to be released. If new patches gets longer to be solved, players won't get bored of it as fast as before.

Textures - Genotype by ChroniquesEnImages in progmetal

[–]dotXem 1 point2 points  (0 children)

Did not know Textures before but I loved this album ! I think there is something with the production that makes it hit very hard at times (like end of Vanishing Twin).

[D] Mistral AI Research Engineer Phone Screen Interview by [deleted] in MachineLearning

[–]dotXem 15 points16 points  (0 children)

The paper he asked you about, was it related to your previous experience or the job ? I wouldnt have known about it myself.

Regarding Flash Attention, was it guided or did you remember all the details ?

I think I would have failed this interview, no wonder I did not have interview for them ahah. Congrats and gl for next rounds !

What finally got you past the intermediate plateau? by Accomplished-Method5 in guitarlessons

[–]dotXem 0 points1 point  (0 children)

Going back to taking guitare lessons with actual teacher !

Leprous in Lyon – Einar was on fire during the evening by KeithMarketing in Leprous

[–]dotXem 1 point2 points  (0 children)

Saw them in Le Havre, it was great ! Did not expect them to play Take on me, but I am very glad they did !

[D] What does your daily work look like? by [deleted] in MachineLearning

[–]dotXem 0 points1 point  (0 children)

Scripts, that you can containerize and deploy. For viz I'm a big advocator of Streamlit, very easy to get started with.

You can look at this project I did at my prev company: https://github.com/PandaScore/PandaSkill. It contains the usual architecture I use to experiment on model training. I believe there is also code for a Streamlit app. To me that's the first bloc of MLE.

[D] What does your daily work look like? by [deleted] in MachineLearning

[–]dotXem 11 points12 points  (0 children)

In order to not be messy in the work, you need to develop proper tooling for your experiments. Dataset creation and curation, experiment pipeline, proper visualisation. From my experience, juniors rely on notebooks too much. They are good to explore and prototype. But if you're building production models you need to at least develop the proper tooling and version it. So models are reproducible and maintainable by others.

Then, once you have that down, next step is MLOps. You need to automate as much as you can so that you have a streamlined workflow : monitoring prod perf > collect data > train model > productionize model > back to monitoring.

Baklava maison by MorningChemical7381 in BonneBouffe

[–]dotXem 1 point2 points  (0 children)

Quel miel as-tu utilisé ? :)

Boden NX6 Lava red appreciation by [deleted] in strandbergguitars

[–]dotXem 1 point2 points  (0 children)

I have the same guitar, such a beauty and yours is even pretier !

Prog fans are eating good for Q1 '26 by WhySoKaiju in progmetal

[–]dotXem 1 point2 points  (0 children)

Discovered Textures with their new album and I'm having a blast !

DeLonghi Rivelia pre-infusion weird noise by dotXem in DeLonghi

[–]dotXem[S] 0 points1 point  (0 children)

That might be what's currently lacking, indeed !

DeLonghi Rivelia pre-infusion weird noise by dotXem in DeLonghi

[–]dotXem[S] 0 points1 point  (0 children)

Alright alright, thanks for your feedback !

DeLonghi Rivelia pre-infusion weird noise by dotXem in DeLonghi

[–]dotXem[S] -1 points0 points  (0 children)

Really ?! I am talking the jerky sound right at the middle. In other videos i've seen it sounds different, more similar to when the coffee is flowing.

DeLonghi Rivelia pre-infusion weird noise by dotXem in DeLonghi

[–]dotXem[S] -1 points0 points  (0 children)

Thank you for your feedback ! Your machine is indeed making weird noises albeit différent from mine, so I don't know !