- 0 Posts
- 164 Comments
Something about this composition is giving AI, but the line art says hand made…
Traced AI art, perhaps?
Lightfire228@pawb.socialto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Anna’s Archive loses .org domain, says suspension likely unrelated to Spotify piracyEnglish
112·7 months agoYou know, you could just ask what that means
s/org/limeans replaceorgwithli
Lightfire228@pawb.socialto
linuxmemes@lemmy.world•Isn't there someone you forgot to ask?
2·8 months agoNot wanting to maintain a multi-language repo, and not wanting to maintain support for rust integration
Edit: I kinda assumed the guy in the pic was that kernel maintainer who kept throwing a stink about Rust code, but it’s apparently not
I like solving puzzles, and I have a knack for programming specifically
Lightfire228@pawb.socialto
Selfhosted@lemmy.world•700+ self-hosted Git instances battered in 0-day attacks with no fix imminentEnglish
2·8 months agoBut it doesn’t have any built-in concept of users, write permissions, or authentication (except for commit signing)
Hosting an unauthenticated git repo would be the equivalent to an open ssh port with no password required
Not to mention collaborative things like issue tracking, PRs, forums, etc
Lightfire228@pawb.socialto
Selfhosted@lemmy.world•700+ self-hosted Git instances battered in 0-day attacks with no fix imminentEnglish
7·8 months agoI wonder if it’d be feasible to make a fediverse github
Lightfire228@pawb.socialto
Mildly Infuriating@lemmy.world•Apparently, all YouTube Rewinds have been unlisted as of today.English
21·8 months ago“Unlisted” means you can’t find any of them via search or on the creator’s page. But if you still have the URL, you can view them directly
Which includes public playlists other people have created
Lightfire228@pawb.socialto
Asklemmy@lemmy.ml•What programming language would you recommend for teaching to non-technical people that use a variety of different OSes?
11·8 months agoPython
It’s an amazing scripting language, and my goto for writing automation scripts.
It’s the most lenient of the 3 with dynamic typing and managed memory. It’ll let you learn the basics of reading / writing / running code as well as basic control flow and logic
C is also great to learn, as it teaches you how computers work at a fundamental level, but it’s more stuff to learn up front, and can lead to some very difficult to fix bugs
Java is good as an “application” language. Being memory managed like Python, but statically typed like C. Static typing makes it easier to manage larger code bases
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•S&Box went open-source and the comments are very calm
5·9 months agoOnce i have a solid implementation, I wanna morph it into a custom scripting language for generating diagrams (a la graphviz or mermaid js)
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•S&Box went open-source and the comments are very calm
272·9 months agoI literally just wrote this a few hours ago (line 55)

Lightfire228@pawb.socialto
linuxmemes@lemmy.world•If you care, then I guess you'll just have to keep giving Microsoft your money and data.
7·9 months agoIIRC, kernel level anti cheat works for linux. It’s at the company’s discretion if they enable support for Linux clients
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•The Six Stages of Code Grief
2·9 months agoNever make things more “impressive”
Make them more comprehensible
Reduce the cognitive load required to understand and reason about a piece of code. Honestly, the more you can express complicated ideas simply, the more impressive you are
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•The Six Stages of Code Grief
6·9 months agoI did this once
I was generating a large fake dataset that had to make sense in certain ways. I created a neat thing in C# where you could index a hashmap by the type of model it stored, and it would give you the collection storing that data.
This made obtaining resources for generation trivial
However, it made figuring out the order i needed to generate things an effing nightmare
Of note, a lot of these resource “Pools” depended on other resource Pools, and often times, adding a new Pool dependency to a generator meant more time fiddling with the Pool standup code
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•The Six Stages of Code Grief
15·9 months ago- if something feels too “heavy”, like it’s doing xml formatting, file manips, a db insert, and making coffee, all in a single class or function
Separate out those “concerns”, into their own object/interface, and pass them into the class / function at invocation (Dependency Injection)
- use “if guards” and early returns to bail from a function, instead of wrapping the func body with an if
public Value? Func(String arg) { if (arg.IsEmpty()) { return null; } if (this.Bar == null) { return null; } // ... return new Value(); /// instead of if (!arg.IsEmpty) { if (this.Bar != null) { // ... return new Value(); } } return null; }
Lightfire228@pawb.socialto
Programmer Humor@programming.dev•The Six Stages of Code Grief
30·9 months ago-
if it’s not in git / SVC, add it as is. Create a “refactor” branch, and liberally use commits
-
Treat it like a decompilation
Figure out what something does, and rename it (with a stupidly verbose name, if you have to). Use the IDE refactor tools to rename all instances of that identifier
-
Take a function, figure out what it does, and refactor it in a way that makes sense to you
-
Use the editor’s diff mode to compare duplicate code, extract out anything different into a variable or callback, and combine the code into a function call. Vscode’s “select for compare” and “compare with selected” are useful for this
-
Track what you’re doing / keep notes in something like Obsidian. You can use
[[Wikilinks]]syntax to link between notes, which lets you build a graph structure using your notes as nodes -
be cognizant of “Side Effects”
For example, a function or property, or class might be invoked using Reflection, via a string literal (or even worse, a constructed string). And renaming it can cause a reflective invocation somewhere else random to fail
Or function or operator overloading/overiding doing something bizarre
Or two tightly coupled objects that mutate each other, and expect certain unstated invariants to be held (like,
foo()can only be called once, orthingyA.len()must equalthingyB.len()- write tests if you can, either using a testing framework or custom Python scripts
You can use these to more thoroughly compare behavior between the original and a refactor
-
I use Hoppscotch



Federated git hosting platform when?