There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

cyborganism , in Its not wrong though

You can have the code of any software with a decompiler. Especially with Java and C# for example.

nfsu2 , in Its not wrong though
@nfsu2@feddit.cl avatar

I feel old watching this meme template

infinitevalence , in Hallelujah
@infinitevalence@discuss.online avatar

God everytime!

TheBurlapBandit , in This is clearly shaping up to be the pinnacle of this decade's technology

GET OUT. OF MY CAR. NOW

Sonotsugipaa OP ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

Why are you yelling at me?

Eufalconimorph , in ways to close vim

cat /dev/zero > “/proc/$(pidof vim)/mem” is my favorite dumb way. Clear its memory, wait for the segfault.

savvywolf , in How it feels to learn JS in ~~2016~~ 2023
@savvywolf@pawb.social avatar

I stepped out of webdev like 5 years ago. Now every time I try to get back into things to work on an open source project or whatever I just give up because I do not understand things.

Everything seems to be based on React which is some kind of magic templating library that does everything? And also dynamically updates thing in response to changes and talks to the server?

I much prefer the days of just using vanilla js to manipulate a DOM and talk to a well defined API.

gornius ,

The thing is, they look like too much for a simple app with near none interactive elements.

But once app starts growing, concepts like reusable components, reactivity and state management become such an important tool.

Imagine tracking shopping cart’s total value. With these frameworks it’s just one store containing total value, exposing the value as reactive state. Once the value changes, all components using directly or indirectly that value update immediately. In vanilla you would have to keep track of every instance where that value is used manually.

Additionally, if you decide keeping total value of cart in frontend is stupid (because it is), you just modify your store to provide only readonly value, and create setters that require you to pass item or item id. Then that setter would hit up backend keeping your cart’s total value, add an item, and backend would return new total, which would now be set as that store’s new total value.

These frameworks are kind of SOLID principles applied to chaotic world of user interfaces.

gornius , in ways to close vim

ZZ will save file though, the others won’t. You meant ZQ.

WiildFiire , in This is clearly shaping up to be the pinnacle of this decade's technology
PipedLinkBot ,

Here is an alternative Piped link(s): piped.video/Z_1vfTkBq-k?si=NpJuy9WU7vxkeb36

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

Sonotsugipaa OP ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

Truly what inspired me to fight against Vulkan’s complexity

Zozano ,

Thank you! I haven’t laughed that hard in a year or more. My sides hurt.

WhiteBlackGoose OP , in Leave it for the Nerds
@WhiteBlackGoose@programming.dev avatar

My first comic!

JackbyDev ,

Is the joke here that Fedora doesn’t use apt? Because that’s hilarious and I love it lol

darcy , in rule
@darcy@sh.itjust.works avatar

<span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#323232;">cosmic_ray_detector</span><span style="color:#323232;">:
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">while </span><span style="color:#323232;">false:
</span><span style="color:#323232;">        </span><span style="color:#62a35c;">print</span><span style="color:#323232;">(</span><span style="color:#183691;">"Cosmic ray detected!"</span><span style="color:#323232;">)
</span>
BearJCC , in Hours of work

Jokes on them I charge by the hour

jet ,

I was about to say. Rejoice! If this is a client these are billable hours

sip ,

yea, but it stops being fun when they say it’s a bug and it’s always supposed to work like that.

jet ,

Then it’s a valuable lesson in writing your client contracts and your work change order templates.

If you bid per project you need to have clear milestones and sign-offs. If you bill per hour then it’s not issue.

arcimboldo , in single binary executable and dlls

When a basic dynamic library needs to be updated because, for instance, there is a big security issue, then all your statically linked binaries will have to be updated. Which means every one of those developer teams need to keep track of all the security fixes, release a new version of the binary and push it, and every user will have to download gigabytes and gigabytes of data.

While if you have dynamic libs you only have to download that one, and the fix will be pushed earlier and all the apps will benefit from it.

muleunchangedstarved OP ,

if users compile the program on their computers (like AUR) then no need to download gigabytes, you just need the source code.

Kache ,

That route already exists today as “the web”, where the “latest” JavaScript source is downloaded and JIT-ed by browsers. That ecosystem is also not the greatest example of stable and secure software.

MechanicalJester ,

Mmmmmmm yes yes can I interest you in a big surprise piping hot dish of Log4J?

milady ,
@milady@lemmy.world avatar

How is log4j related to what they said ? /genuine

PoolloverNathan ,

deleted_by_author

  • Loading...
  • roembol ,

    Log4J is for Java. This is about JavaScript.

    MNByChoice ,

    Gentoo builds take a long time. Plus hard to use the computer during that time.

    (I may be presuming as the comment above yours is about OS wide. And this was how Gentoo handled things.)

    zagaberoo ,

    I use my machine all the time when its updating no problem. You can always configure portage to leave a core or two idle anyway.

    MNByChoice ,

    Oh, thank you! I am realizing I have not used Gentoo in ages. It was the only option on the Xbox at the time, and that didn’t have many cores. I should give it another go.

    chocobo13z ,

    As someone using it as a daily driver, I wish you the best of luck. If you stick with it, I expect you’ll learn a lot about what goes on behind the scenes in other distros that have a lot pre-configured, like greeters, compositors (or DEs and WMs), etc.

    zagaberoo ,

    I use all cores for updating and still have no problems. Doesn’t even make videos stutter. I think you’ll find things much less heinous than they were on Xbox.

    mustardman ,

    Let’s get grandma running Gentoo!

    arcimboldo ,

    Great idea. I’m sure Microsoft, Apple, Adobe, and almost every company that makes money with their software will be super happy to share their source code with me!

    Edit: typo

    exi ,

    But it’s a gigantic waste of energy and time when you could just download a 2mb package and be done with it.

    ExtraMedicated , in Hours of work

    3 months ago:

    “Can you comfirm that each user account can have no more than one of these entities?”

    “Yes. Definitely.”


    Today:

    “Oh by the way, we have some users who need to have multiple entities. Can you fix it?”

    eluvatar ,

    Oof

    theKalash ,

    I’m in the exact same boat right now.

    Also this change from 1:1 to 1:n entity was like one “minor” feature in a rather larger list of feature requests. It so far has caused more work then all the other features combined.

    FuntyMcCraiger ,

    Or worse, it was an n:1 and they want it n:n

    agressivelyPassive ,

    And months later you’ll find out, that your change completely fucks over some internal optimizer statistic and causes the DB to turn into lava.

    I definitely don’t know that, because of several hour long outages and millions of lost revenue.

    jadero ,

    I eventually learned to never trust any restrictions on the user.

    I quickly learned to make sure everyone had a copy of decisions made, so that I could charge by the hour for changes. I eventually learned to include examples of what would and would not be possible in any specification or change order.

    sphericth0r ,

    Even worse, they'll claim it was a bug

    sip ,

    this is ongoing now. Our “creators” were supposed to be “matched” for a “job” based on “skills”, not “skill”. pure chaos

    gens , in single binary executable and dlls

    Because programmers find a good way to do something then apply it to everything. It becomes the one true way, a dogma, a rule. Like how OOP was the best thing ever for everything, and just now 30 years later is proven to be actually bad. At least appimage is more like DOS-s “just unzip and run it” then “download another 500MB of useless stuff because the program depends on 1 20kB file in it”.

    That said, well made libraries are good. As in those that have a stable API so versions don’t matter that much.

    leviosa ,
    @leviosa@programming.dev avatar

    Like how OOP was the best thing ever for everything, and just now 30 years later is proven to be actually bad.

    Alan Kay coined the term 57 years ago and we have to look at the landscape back then to see just how much OOP has actually influenced pretty much all languages, including ones that distance themselves from the term now. Avoiding shared global state. Check. Encapsulating data and providing interfaces instead of always direct access. Check. Sending signals to objects/services for returned info. Check check check.

    gens ,

    Data oriented design is the new thing, much different from that.

    OOP, other then smalltalk and maybe few other languages, is somewhat different in practice from the original idea. I can dig up a great talk from Alan Kay on OOP if you want. Actually i want to watch it again so i’l edit it in here when i find it.

    Edit: www.youtube.com/watch?v=fhOHn9TClXYGreat talk, as far as i remember.

    That said, we often have to process seemingly unrelated data together which is slow with the model of passing data arround (even when by reference). When OOP was invented memory access was as fast as actual operations on it, while today memory is much slower then processing. With caches and simd and such, it is much faster if everything is an array. Peronally i’m not a fan of OOP because of the “everything has to be an object” mentality, but do whatever you like.

    jarfil ,

    DOP, OOP… just give me “C with classes” and I’ll cast whatever void* to whatever’s needed 😜

    leviosa , in single binary executable and dlls
    @leviosa@programming.dev avatar

    Windows shared libs could do with having an rpath equivalent for the host app. I tried to get their manifest doohickeys working for relative locations but gave up and still just splat install them in the exe directory.

    Aside from that shared libraries are great. Can selectively load/reload functions from them at runtime which is a fundamental building block of a lot of applications that have things like plugin systems or wrappers for different hardware etc. Good for easier LGPL compliance as well.

    jarfil ,

    Modern Windows does a lot of shenanigans with DLLs to avoid the “DLL hell” effect, like keeping multiple versions, hardlinking, and transparently redirecting the DLLs accessible to a program, even when they “seem” to be in the exe’s dir.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines