Most people here don’t want reddit size. We like discussion, and 10s of thousands of comments and bots. If it gets larger overtime and scales horizontally to keep the communities a reasonable size, that’s great. We’re here because it’s not Reddit, not because we want it to be reddit.
- 0 Posts
- 49 Comments
BassTurd@lemmy.worldto
Programmer Humor@programming.dev•Got tired of React… so I tried going back to COBOL
61·2 months agoThat’s definitely a choice you can make, but if I see AI at all, I immediately move on from the article or at the very least treat it as nothing of value. Other than the ethical implications of using AI, seeing it tells me the author couldn’t be bothered to care about their article, and so neither will I.
Just some outside perspective and feedback from just one person.
BassTurd@lemmy.worldto
Selfhosted@lemmy.world•I built a self-hosted period tracker because I couldn't find one worth usingEnglish
319·3 months agoFuck bots.
BassTurd@lemmy.worldto
Linux@lemmy.ml•Accidentelly run out of disk space when executing `apt upgrade` - Debian doesn't boot anymore
6·5 months agoAs others pointed out, it looks like you lost networking. If you can boot to a live USB, you can chroot into your environment with networking to maybe have better luck with the repair commands.
BassTurd@lemmy.worldto
Linux@lemmy.ml•Accidentelly run out of disk space when executing `apt upgrade` - Debian doesn't boot anymore
5·5 months agoAnd to clarify to those that don’t know what it does, it will recursively and forcibly remove everything in the / directory, which is the root directory. Run the command and it all dies.
BassTurd@lemmy.worldto
Programmer Humor@programming.dev•y'all are gonna hate me for this, but it's the truth
31·5 months agoAs a dev that recently transitioned from a decade of sys admin experience, to two years of ServiceNow admin/developer/et all, to now full stack development, I have found AI useful for somethings. I asked it how to do a thing, and it regurgitated a bunch of code that didn’t do what I was looking for, however, it did give me a framework for what files I needed to modify. I then put nose to the grindstone and write all of the rest of the code myself, researching the docs when needed, and I got it done.
For me, if I use AI to assist in something code, I always type everything out myself whether it’s right or not, because like taking notes, typing it out does help learn what I’m doing, not just finding a solution and running with it. I’ve disabled most of the auto complete copilot garbage in Visual Studio because it would generate huge blocks of code that may or may not be correct, and the accept button is the tab key, which I use frequently. I still have some degree of auto complete for single lines, but that’s it.
My advice would be to use AI as a prompt to get ideas or steer direction, but if you want to get better at coding and problem solving, I would suggest trying to find solutions yourself because digging through docs will be far more beneficial to your growth. AI does a good job of helping fill the gaps in packages or frameworks when your ignorant to all of the functions and stuff, but striving to understand them instead of relying on unreliable tools will make you a much better developer long term
There are definitely use cases where something like C is still the best option because it’s faster. For the most part consumer software it’s unnecessary, but it’s not obsolete for all applications.
BassTurd@lemmy.worldto
Programmer Humor@programming.dev•Unsafe Rust: living up to its name
42·6 months agoBad code is bad code. We’ll see more of this as rust is implemented into core software.
I read in on C but it’s also true for JavaScript. The code implies that x was declared as an int sometime previously, or if JavaScript, just an object if not assigned a value giving it a type.
I know. OP asked what x was before the loop, and I just said it’s an int. The int can be any value because as you pointed out it will be set to 0 in the first loop iteration.
An int. Value doesn’t matter because it’s overwritten.
Can the web version of Excel do tables? I know that it’s a lesser version of the desktop app, but if tables was the most advanced feature you need, that could be an option.
I prefer lowercase with hyphens, but I’m transitioning into a team that does everything camelCase, which is the second best case, but I still strongly dislike it.
So you hold down the first letter of each sentence longer so that it capitalizes rather than hold shift? That feels like it would completely mess with my flow when typing. Shift just happens naturally for me and I don’t register I’m pushing it.
As a ServiceNow dev/admin, I support this opinion so hard.
I really want someone to try this and report back. It really does feel like something that could execute.
Edit… I reread your comment and realized that python does it differently and that everything I typed was irrelevant… I’m still gonna leave it if anyone is interested in ternary expressions, but I suppose the answer to your question is, that’s just how python does it.
That’s how ternary operators are designed to work. In essence, if you’re looking to do a single line if/then, you can directly assign a variable from the result of a ternary expression.
As an example, I was scripting something earlier where there may or may not be a value returned from a function, but I still had to do something with that return value later. For this thing, I was using JavaScript.
I ended up with:
return platform == "name" ? "Option 1" : "Option 2"If I were to write that out in a typical if/then it would be:
if (platform == "name") { return "option 1" } else { return "option 2" }A ternary starts with a boolean expression, then the if true value, else the false value. That’s returned to either a variable or if in a function like my example, to the object calling the function. It’s just a way to write less code that in many cases is easier to read.
I’m not an old hat programmer and have never been forced to use VIM, but I started learning how to navigate because of the potential efficiencies that comes with it, and because I like to learn new things. I’m not good at it, but I’ve gotten a lot better, and I will continue to do so because it’s enjoyable, neovim is extremely customizable, and the vim key bindings can be used in vscode for when I use that. I also use Linux, so it felt like the right direction to go, but mostly for the memes.
I don’t use it for high level language coding like python, JS, and definitely nothing.net related like c#, but it’s solid for lower level like C.
You don’t have to enjoy it, but there are some extremely skilled programmers out there that can code laps around other extremely skills programmers just because they use vim/neovim and can navigate at a stupid fast rate. Watching some like the Primeagen on YT is humbling.
Too many to count, but I learned this lesson. I just struggled with nuance in gramer as a fucking 1st grader.

I think we’re just on different wavelengths. Anecdotally, it appears to me in most communities that I look in, people don’t want mass expansion. A lot of us like the smaller community where we recognize different regular users. More people means more drama and more shit. If the platform never expanded from where it is right now, I’d be satisfied as well as I think many others would be.
More diverse instances and sub Lemmy’s would be nice for more niche topics, but I don’t want to scroll through posts with thousands of comments.
But again, different strokes for different folks. It’s not what I’m looking for, but there certainly are people such as yourself that do.