• 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

  • gornius@lemmy.worldtoLemmy Shitpost@lemmy.worldIt's just business
    link
    fedilink
    arrow-up
    10
    arrow-down
    4
    ·
    edit-2
    5 months ago

    Your goal as a company is not to sell as many, but to make the greatest profit. So let’s say that the new market price is $3 000.

    You’re the new company. Your supply is 20 000.

    Do you

    a) Sell fridges @ $2 950/each, undercutting competition while selling whole supply, because of demand being higher than your supply, making $59 000 000?

    or

    b) Sell fridges at a reasonable price of $400, selling the same amount, because your supply is limited anyway, making $8 000 000?

    The company still has no incentive to go B route. They only need to undercut the competition, not make prices reasonable.

    Free market self regulates, provided nothing artificially screws with supply and demand and there are competitors. Both scalping and price fixing screws with it. It is literally the cancer of free market, and people screwing with it call themselves “investors”, while actually destroying the economy.

    It is the government’s responsibility to prevent those situations before they happen, otherwise these changes may be irreversible.

    Btw. A situation like this was happening recently in the GPU market. Nvidia had a crazy high demand for their GPUs because companies invested in AI were going to buy these cards no matter the price. So they bumped the prices like crazy, and they were instantly sold out.

    Meanwhile Nvidia’s competitor - AMD - didn’t have nearly as strong GPUs for Ai as Nvidia. Do you think AMD’s prices stayed the same? Nope. They bumped it just like Nvidia, barely undercutting them, because there was still demand, in fact growing demand, for GPUs for gaming, while AMD’s supply was obviously limited.

    2 years later, lower demand, GPUs actually in stock, but prices are still fucked (though not as much) because people got used to it.


  • gornius@lemmy.worldtoLemmy Shitpost@lemmy.worldIt's just business
    link
    fedilink
    arrow-up
    29
    arrow-down
    3
    ·
    edit-2
    5 months ago

    It’s free market exploitation. If you believe a free market can exist without regulations, you’re imbecile.

    Just imagine: People need fridges. All fridge manufacturers agree to raise prices of a fridge by 2000%. So what, people are going to stop buying fridges? No - because they need them.

    You would say: it’s a free market, some new manufacturer is going to offer fridges at regular prices. Well - no you dumb fuck. What’s the incentive for the new fridge manufacturer to sell at lower prices, when people are going to buy fridges anyway, because they need them? The answer is - none. It would be a dumb business decision, because your supply is limited, and you’re going to sell it at market price, because that item is essential.

    So how does the economy even work if that’s possible? That’s right idiot - because it’s price fixing and it’s fucking illegal.



  • gornius@lemmy.worldtoSelfhosted@lemmy.worldShould I move to Docker?
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    7 months ago

    Learn it first.

    I almost exclusively use it with my own Dockerfiles, which gives me the same flexibility I would have by just using VM, with all the benefits of being containerized and reproducible. The exceptions are images of utility stuff, like databases, reverse proxy (I use caddy btw) etc.

    Without docker, hosting everything was a mess. After a month I would forget about important things I did, and if I had to do that again, I would need to basically relearn what I found out then.

    If you write a Dockerfile, every configuration you did is either reflected by the bash command or adding files from the project directory to the image. You can just look at the Dockerfile and see all the configurations made to base Debian image.

    Additionally with docker-compose you can use multiple containers per project with proper networking and DNS resolution between containers by their service names. Quite useful if your project sets up a few different services that communicate with each other.

    Thanks to that it’s trivial to host multiple projects using for example different PHP versions for each of them.

    And I haven’t even mentioned yet the best thing about docker - if you’re a developer, you can be sure that the app will run exactly the same on your machine and on the server. You can have development versions of images that extend the production image by using Dockerfile stages. You can develop a dev version with full debug/tooling support and then use a clean prod image on the server.







  • gornius@lemmy.worldtoMildly Infuriating@lemmy.worldThanks Spez!
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    11 months ago

    To add to an answer, caddy is better fit for reverse proxy in my opinion. It’s like easier to configure version of nginx. With nginx proxy_pass you also have to configure other headers like x_forwarded_to, and you will also need to do some magic to get websockets working.

    And also caddy automatically generates certs using ACME, by default.


  • gornius@lemmy.worldtoFediverse@lemmy.worldI can't code.
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    Software engineering nowadays is really complex. There is no way you’re going to know what’s going on, nobody is.

    It’s just the more experience you have, the easier it is to figure out what’s going on. If you want to learn coding, just start coding.

    I will start from something no one mentioned - start with Linux. Windows has its own very “special” ways of compiling stuff, while Linux is very simple. If you start on Windows, you’ll probably use IDE which will set up everything for you (cause setting up thing in Windows is messed up), and it will still be a black magic for you how the code transforms into binary.

    Many people recommend python, but I would start with C (not C++, C++ sucks). It will give you the understanding of basic concepts like memory management.

    Then start using something like javascript, which will get you wide range of libraries, which you can use to build anything.

    Then at the end learn how infrastructure works, how are services communicating with each other, how to put your server to the public, learn Docker, set up reverse proxy, run stuff in cloud.