[-] eager_eagle@lemmy.world 2 points 2 hours ago* (last edited 2 hours ago)

The misleading behavior is about what you expect to execute in the source code you're looking at vs what's actually executed.

What you describe is a logic ambiguity that can happen in any program / language.

[-] eager_eagle@lemmy.world 3 points 4 hours ago

Totally agree. The hardcoded isAdult: true repeated in all #2 examples seems like a bug waiting to happen; that should be a property dynamically computed from the age during access time, not a static thing.

[-] eager_eagle@lemmy.world 8 points 1 day ago* (last edited 23 hours ago)

That's part of the problem. Different number of whitespaces indicate different nesting levels and the YAML spec does not enforce them. These two horrible YAMLs are valid and are not equivalent:

a:
 b:
     - c
     -  d
      - e
f:
    "ghi"
a:
 b:
     - c
     - d
     -  e
f:
    "ghi"
[-] eager_eagle@lemmy.world 10 points 1 day ago* (last edited 1 day ago)

You can't say python's whitespace usage is as bad as yaml's. YAML mixes 2 and 4 spaces all the time. Python scripts don't run if you write this kind of crap.

And whitespaces is really just the tip of the iceberg of YAML problems...

[-] eager_eagle@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

yes, from my other comment

the only mistake of Python when it comes to whitespaces was allowing hard tabs

but that's easily fixed with an editor setting - on the other hand, unbalancing braces (and not realizing it) is too easy all the time.

[-] eager_eagle@lemmy.world 6 points 1 day ago* (last edited 1 day ago)

YAML sucks because, among other things, indenting it is not obvious.

In contrast, the only mistake of Python when it comes to whitespaces was allowing hard tabs, which makes it too easy to mix them if your editor is not configured.

Improper indentation stands out more than missing or unbalanced braces and it's really not an issue to delimit code blocks.

[-] eager_eagle@lemmy.world 8 points 1 day ago* (last edited 1 day ago)

False dichotomy. Optional braces are bad practice because they mislead the programmer that is adding an additional clause to the block.

This misleading behavior wouldn't happen in Python, as it would either be invalid syntax, or it would be part of the block.

Indentation problems are pretty obvious to the reader. Even more than missing or unbalanced braces.

[-] eager_eagle@lemmy.world 16 points 1 day ago* (last edited 1 day ago)

I'm a native pt speaker and I had never thought of the word as slur. I remember it being commonly said on TV, music, and written on newspapers without this connotation. It was certainly more common than the preferred alternative "mestiço".

[-] eager_eagle@lemmy.world 1 points 2 days ago

insert standards xkcd

[-] eager_eagle@lemmy.world 1 points 2 days ago

what do you mean by one server per tool?

[-] eager_eagle@lemmy.world 4 points 2 days ago

it ends when you become lunch

26

GitHub Copilot Workspace didn't work on a super simple task regardless of how easy I made the task. I wouldn't use something like this for free, much less pay for it. It sort of failed in every way it could at every step.

200
1
submitted 6 months ago* (last edited 6 months ago) by eager_eagle@lemmy.world to c/kde@lemmy.ml

I've just upgraded to Plasma 6 on EndeavourOS and X11 works, but booting on Wayland via SDDM gives me a blank screen. The display enters power saving mode and switching to a TTY doesn't wake it up.

Anyone else having this problem, or with a workaround suggestion?

NVIDIA Driver 550.54.14-4
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
17
1000 capacity! (www.youtube.com)
26
submitted 7 months ago* (last edited 7 months ago) by eager_eagle@lemmy.world to c/programming@programming.dev
15
167
95
20
submitted 8 months ago* (last edited 8 months ago) by eager_eagle@lemmy.world to c/linux_gaming@lemmy.world

I'd like to try the new Assassin's Creed and Avatar, but they're not on Steam - which is how I play almost every other game on Linux. I know I might be able to install Uplay games using Lutris, but I'm not sure if the experience is as smooth as Steam + Proton.

Do you have any experience with Ubisoft + Lutris? Is there an equivalent to ProtonDB to have an idea how well a game runs?

140
22
view more: next ›

eager_eagle

joined 1 year ago