deleted by creator
deleted by creator
Also, folding encourages 1000+ line files and several indentation levels, like in their example.
Ladybird is not usable yet, but it’s an independent browser and engine that accepts donations
repo - https://github.com/LadybirdBrowser/ladybird youtube channel with monthly updates - https://www.youtube.com/@LadybirdBrowser/videos
C was my first language some 18y ago, and I wouldn’t recommend it to anyone starting today. If anything, learning C is a great way to teach why, maybe, we shouldn’t be using it to build customer applications, web servers, and whatnot.
Keep your gold, I’ll stick to sane error messages, memory management, a packaging system, and a dozen other things that actually make working on multiple projects somewhat doable and not a constant fight against seg faults.
that’s one way to swing the pendulum all the way back to the 1970s
You probably don’t have to write to specific broswers. Just stick to the baseline and you’re golden. Optionally use a headless chrome for e2e testing to be sure.
I’ll admit that in 10 years using git, I don’t think I’ve ever used reflog once.
they do
I’ve used plenty of sshfs a few years ago, but x11 forwarding is a compromise. The latency makes it painful to work with for more than a few minutes.
Same, ranger was painfully slow at times. For some reason it would take multiple seconds to start on a few machines I connected it to.
I can’t believe no one mentioned this, but: remote access.
I spend most of my day connected to machines via SSH and yazi offers a great UX with file previews and all. Using kitty I even get image previews in the terminal.
get rid of companies making money off the FOSS
I’m afraid if we discourage companies from adopting open source we’ll end up with even more closed source garbage.
There are industry sectors where closed source is the norm, and it just leads to more vendor lock-in and less standardization and interop.
I’m a bit young to say for sure, but I believe closed source was the norm in the software world 20-30 years ago and openness was stigmatized. I certainly don’t want to live in that world.
tldr
Because you’re assuming foo
won’t be renamed when it becomes a function. A function should start with a verb, say get_foo()
, because just foo()
tells me nothing about what the function does (or what to expect as output). If you make it a property, get_
is implicit.
So if the age is computed from the year of birth for example, it’s really e.g. thing.age
or thing.get_age()
- both of which are fine, but I’d pick the property version.
that we agree on: properties should be cheap to compute.
Making a simple ternary condition as a function instead of property is a wasted opportunity to make its usage cleaner.
Properties make semantic sense. Functions do something, while properties are something. IMO if you want to name something lazily evaluated using a noun, it should be a property.
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.
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.
deleted by creator
I use rustdesk for remote desktop. Screen sharing is usually on zoom as it’s what my workplace uses.