Belisarius Cawl
kiwifarms.net
- Joined
- Mar 16, 2024
>tfw I've absentmindedly written while True: with a conditional break statement on the inside
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes this code has layers of horribleness to itSomething funny I realized after posting was that theelseblock still wasn't necessary in their version with thebreaksince control flow would still divert before the append. The fact this wasn't readily obvious to me nor the author speaks to the subpar quality of the code. All "features" of a function should be obvious at a glance.
i fucking love@Creative Username Please stop replying to everyone.
i will
anybody i want here there is nothing you can do to stop me
you now to assert my dominancei have actually seen guidance against multiple returns citing the flawed reasoning that it is like a goto or somethingWhen you phrase it that specific way, it makes me think there's one of those "software engineering principles" run amok here. Probably something with a stupid name like "ROO" (Return Only Once) or "Gregory's Iron Law".
sometimes you really do need to evaluate a predicate and then evaluate expression a if it is true or expression b if it is falseI don't think I've used else since learning how to write guard clauses years ago, and I'm not even sure what you'd use it for besides that.
As far as scheduling things go, I'm not the most consistent, but I've had a kind of writer's block on one project for some months now. I've done other things in the interim so it's not a big deal. But I have other projects that I haven't made any progress in for years. Some that are deprecated experiments now. It's whatever. If you're meant to be doing it, you'll keep doing it. The question's always one of scope. How much can you get done well, and how quickly? All things the same, I'm pretty slow, but projects that I make do something that works.I find my consistency to be wavering a bit, a week goes to waste here, a few days there, then you come back rusty and merely pick at it for a few days without hitting your stride, that kind of dance
Consider making use of the Ballmer peakBy the way, do you guys notice much start-and-stop in your motivation to get your own projects done? Doing this stuff as a day job is a nice carrot and stick to force consistency, I'm sure, but when it comes to stuff at home, I find my consistency to be wavering a bit, a week goes to waste here, a few days there, then you come back rusty and merely pick at it for a few days without hitting your stride, that kind of dance. It makes me worry sometimes in spite of what I think I want, whether I love this stuff enough to be great at it.
yes i'm mostly stopdo you guys notice much start-and-stop in your motivation to get your own projects done?
does it really matter if you're great at it? just do it when you can, and have fun doing itIt makes me worry sometimes in spite of what I think I want, whether I love this stuff enough to be great at it.
Really hard to hit it precisely though. I've tried it a few times and usually overshoot, then I am sleepy and just go to bed instead.Consider making use of the Ballmer peak
I rarely drink these days but have definitely succeeded in hitting the Ballmer peak (or maybe the Hemingway peak) for ordinary writing so it should work for coding too. Just take occasional sips, well spaced-out, and you can get there.Really hard to hit it precisely though. I've tried it a few times and usually overshoot, then I am sleepy and just go to bed instead.
Yeah, I have a "2 week Minecraft phase", but for everything... And it's more like 1 weekBy the way, do you guys notice much start-and-stop in your motivation to get your own projects done? Doing this stuff as a day job is a nice carrot and stick to force consistency, I'm sure, but when it comes to stuff at home, I find my consistency to be wavering a bit, a week goes to waste here, a few days there, then you come back rusty and merely pick at it for a few days without hitting your stride, that kind of dance. It makes me worry sometimes in spite of what I think I want, whether I love this stuff enough to be great at it.
"I have 20 projects on the back burner but I have a good feeling about #21" is a meme for a reason. It's virtually ubiquitous among basically any creative effort, especially programming.By the way, do you guys notice much start-and-stop in your motivation to get your own projects done? Doing this stuff as a day job is a nice carrot and stick to force consistency, I'm sure, but when it comes to stuff at home, I find my consistency to be wavering a bit, a week goes to waste here, a few days there, then you come back rusty and merely pick at it for a few days without hitting your stride, that kind of dance. It makes me worry sometimes in spite of what I think I want, whether I love this stuff enough to be great at it.
That is the correct, non-appropriated definition of a high-level language, though. Low-level used to mean assembly (which is still the barest step up from machine code) while high-level meant anything with an interpreter/compiler. C++ is a lot closer to Python than it is to x86.> pajeet professor calls c++ a high level programing language like python
What's even the point of Java anymore? For casual script, people use python. For anything serious, there are just better languages. Why, oh why, does Java continue to exist?> Starts praising Java
Java's purpose was to be so slow and bloated to sell more Sun Microsystems hardware. It was sort of designed as a successor to C++ with a "run anywhere" focus. At the time you still had multiple Unix systems competing so it was sort of a justifiable idea. It sucked, of course. These days if you're not keeping old Java crap running there's no real reason to use it. And, I guess, Android.What's even the point of Java anymore? For casual script, people use python. For anything serious, there are just better languages. Why, oh why, does Java continue to exist?
And if you want to see that notion done well, learn C#/.NET. I was dismissive about dotNET from working with it professionally, but when Ryujinx built faster and with fewer headaches than Yuzu on Linux, I started to like it. (And be sure to look into the ExpandoObject which allows you to think of .NET objects almost as flexibly as JSON.)It was sort of designed as a successor to C++ with a "run anywhere" focus.
emacs is really user-friendly about configuration, you can hitI've decided to follow advice I saw on le Reddit and instead write my own Emacs configuration from scratch.
M-x customize and set things up in a ui without having to touch a single line of elispthe definition of "high-level language" is very vagueThat is the correct, non-appropriated definition of a high-level language, though. Low-level used to mean assembly (which is still the barest step up from machine code) while high-level meant anything with an interpreter/compiler. C++ is a lot closer to Python than it is to x86.
java is a very average programming languageWhat's even the point of Java anymore? For casual script, people use python. For anything serious, there are just better languages. Why, oh why, does Java continue to exist?
I should look throughemacs is really user-friendly about configuration, you can hitM-x customizeand set things up in a ui without having to touch a single line of elisp
it writes to a special structure in your .emacs and you can look at it and take things out of it and configure things with raw elisp if you want (and customize will recognize that it has been changed outside of customize and play nice with your shit)
M-x customize for ideas but that won't be enough. After wavering on whether I really wanted to proceed with my Emacs journey at all yesterday, I now have the beginnings of a working init.el. I won't be including my configuration here as it is entered into le GitHub along with my real name in the log but I have set up various things like doom-themes (still vacillating on what theme I want), xclip to make the system clipboard work in terminal Emacs and stuffing auto save #files_like_this# into /tmp. It's just been not quite two days and, though what I am doing right now might seem inchoate one day, I already have nearly everything in my ~/.vimrc working in Emacs.