25+ yr Java/JS dev
Linux novice - running Ubuntu (no windows/mac)

  • 1 Post
  • 756 Comments
Joined 5 months ago
cake
Cake day: October 14th, 2024

help-circle









  • I would bet it has a lot to do with everyone to the left of Attila the Hun being labelled as extremist liberals. There’s almost never any pushback that someone like Biden or Obama are actually quite tame and run of the mill liberals and even AOC wouldn’t qualify as an extremist.

    People here don’t know what extreme leftists even are. They are so fucking brainwashed that they think feeding school children is the same thing as authoritarian communism.





  • MagicSheltoScience Memes@mander.xyzfuck this
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    3
    ·
    2 days ago

    I don’t think so. Not that I have anything better to offer. My wife thinks Biden would’ve won because too many people stayed home, refusing to vote for a black woman. I, frankly, think the election was about the economy. If you look back over the elections, they are almost always about how people are doing financially. If they are scared or hurting, they will vote for change. If they are happy, they vote for the incumbent. My honest opinion is that there wasn’t a scenario or candidate that would’ve changed Trump’s victory.

    What I am sure of is that in all of the states where Trump won (even Michigan), if every single person who withheld their vote due to Israel/Gaza had voted for Kamala, that wouldn’t have been enough by itself to change the outcome. Certainly, that issue had an effect, but it didn’t change the outcome by itself. We have to look beyond that.

    But, still, if you did withhold your vote thinking you were fighting for Gaza, yeah I think you deserve to have your nose rubbed in that shit.


  • MagicSheltoScience Memes@mander.xyzfuck this
    link
    fedilink
    English
    arrow-up
    186
    arrow-down
    17
    ·
    2 days ago

    I’m 100% for valid criticisms—I don’t even consider myself a Democrat and I have no compunctions about criticizing them when I think they are wrong. But I’m pretty sure that meme is directed at those who withheld their vote.


  • An API is just a standard for using a thing. Normally, it’s part of a library. So you install an email library and there is an API for sending emails. But an API can be a standalone thing. There can be a standard for something, such as ORM (or apparently video drivers—not my area) but then there are libraries that implement the API differently. For example, Hibernate implements the JPA API. Now the individual libraries probably do have their own custom API, but if you want to be implementation-agnostic in your code you just code to the API and you can theoretically swap out implementations.

    Package as in package manager is about having a library that you need to use, which is built on other libraries, without you having to manage all of those dependencies yourself. You tell the package manager what you want and it handles the rest.

    Frameworks are built on top of the core language and perhaps a bunch of different components that all work together to create a purpose-build set of features that all work together. It transforms the language, at least within that specific domain. So for example, Spring by itself basically manages dependency injection and beans. But there are a bunch of things that can plug into that to add things like security or database access or web-session management so that you can do those things in a way that is compatible with what you’ve already learned.

    I can’t really speak to the specific domain you are looking at because I do web services, but conceptually that should all translate fairly well.


    I asked ChatGPT to see if it could improve my answer. It basically patted me on the head and ignored everything I said in favor of the following. To be fair, it at least addresses the specific domain you are looking at.

    An API (Application Programming Interface) is a specification that defines how software components interact. It is often part of a library, but it can also stand alone as a standard that multiple libraries implement. For example, OpenGL is an API that defines a standard interface for rendering graphics, but different implementations (e.g., Mesa, Nvidia’s drivers) follow that API. Libraries like GLAD, GLFW, and freeGLUT exist to help developers interface with OpenGL more easily.

    A library is a collection of prewritten code that provides specific functionality, which you integrate into your program. In C++, you link against .lib or .dll files, as you do with Raylib for game development.

    A package refers to a unit of distribution for code, usually managed by a package manager (e.g., pip for Python, cargo for Rust, vcpkg for C++). Packages often include libraries and their dependencies, making installation and dependency management easier.

    A framework is a more comprehensive structure that dictates how a program should be organized. It typically provides inversion of control, meaning your code fits into the framework’s lifecycle rather than calling functions from a library freely. For instance, Cocos2d-x (a game framework) provides not just rendering but also an entire architecture for handling game logic, assets, and input—unlike Raylib, which is just a graphics library.