• 0 Posts
  • 502 Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle


  • Trump promised to do tariffs. People assumed other countries would pay the cost so that was good. It turns out they are paying the cost.

    It would be straight up LAMF if the tariffs were front of mind when they voted. But inflation was what they were most concerned with, and they either didn’t pay attention to Trump’s tariff talk or assumed it wouldn’t be them paying the tariffs… you could say it’s not directly LAMF because people don’t understand the connection between higher tariffs and higher prices, but definitely LAMF adjacent because of the widespread assumption that people in other countries would be paying the tariffs, not them.



  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devfunctions
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    16 days ago

    A constant inside a function is not constant to the computer. It’s only constant within the scope of the function. So it’s not constant to the computer since every time the function is called the “constant” will have a different value.

    Do you even know what a real constant is?

    You maybe need to rethink some things.


  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devfunctions
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    16 days ago

    I’m questioning why things are being done in the way they’re being done and you’re saying I’m being close minded? Also spewing out some more jargon like that’s going to impress me?

    And LOL at “it will feel natural after you get used to it.” I don’t think you understand the concept about something feeling natural. Like I say I just make stuff const because someone put some bullshit in the linter. Enforcing dumb rules in a linter is the opposite of keeping an open mind, it forcing preferences on people.

    I think I’ve confirmed it’s just FE religious dogma. Just keep on repeating whatever Theo says and people will think you know what you’re talking about.


  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devfunctions
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    16 days ago

    Stylistically, you’re changing the array when you add something to it. Javascript is a janky language in the best of times, but FE devs like to artificially introduce additional unnecessary complexities on top of the jank.

    const is simpler. why would I declare an array as let if I’m not reassigning?

    Why would you declare a const that’s going to have different data every time to function is called?

    Now I’m thinking it’s a form of gatekeeping. Just an excuse for FE devs to throw out terms like “immutable” to make it sound like they know what they’re taking about. Y’all need to constantly sound like you know what you’re talking about when dealing with users, pretending weird stylistic choices have real technical reasons for them. But the BE devs know what you’re saying is complete bullshit LOL.


  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devfunctions
    link
    fedilink
    arrow-up
    1
    arrow-down
    7
    ·
    16 days ago

    Pushing something onto an array isn’t changing the array? It’s not changing the reference to the array, but from a style standpoint it doesn’t make sense.

    And if you’re declaring a const within the scope of a function, it’s still allocating memory when it enters the scope and disposing it when it leaves the scope, same as a variable. There’s no performance benefit to do this.

    Something like const CONSTANT_VALUE = “This never changes” has a performance benefit and is actually how other languages use constants. The value will always be the same, the compiler understands this and can optimize accordingly. If you’re declaring an iterator or the result of calling a webservice to be const it’ll be a different value every time it runs that code, so it’s not something a compiler can optimize. In style terms, it’s a value that’s different every time you get to that line of code, so why would you want to call it constant?

    You’re comment indicates the FE dev obsession with always using const stems from a misunderstanding of how computers work. But of course many religious beliefs originate from a misunderstanding of the world. Whatever man, I just make it a const to make the linter happy, because it’s dumb FE bullshit LOL.


  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devfunctions
    link
    fedilink
    arrow-up
    1
    arrow-down
    6
    ·
    17 days ago

    Yeah for whatever reason, FE devs want to make everything a const. It’s like a religious belief or something, it’s really kinda weird.

    const fun = () => { const something = “whatever” const array = []; array.push(someting)

    for (const thing of array) { if (thing === ‘whatever’) blah(thing) } }

    Semicolons? Optional. Which quotes you should use? Whatever you feel like! But you must declare things as a const wherever possible! Even if it’s an array that you’re going to be changing, declare it as a const because you should know that you can push things into a const array, and since it’s possible to declare it as a const, you must declare it as a const.

    Why is this? Nobody knows, but it’s important to FE devs that you use const.


  • Yeah and some clocks have a second hand and some don’t sometimes clocks use roman numerals sometimes they’re arabic numerals, and that’s if it can understand based on context if someone saying just “clock” in the data the scraped is referring to a digital clock or an analog clock.

    In general LLMs don’t understand logic, though I suspect they have given some of them ability to run some code validation logic (that’s not actually AI) when you tell it to generate code in some languages. I say this because I’ve had it produce some code that could compile, but it seemingly put some example code into a function and had some other example code that needed to call that function with another parameter so it just created a third function that accepts the additional parameter and calls the first function (throwing away that parameter). It compiles but doesn’t have any understanding of how stupid that is on a logical level. So it seems like it’s just trying stuff until it’s capable of compiling without there being any understanding of how anything works.


  • Oddly enough it seems like Microsoft themselves that’s working towards breaking the network effect. They are pushing people to use the web versions of their software now and since edge is chromium, their web versions should work in Linux.

    In the past Microsoft made most of their money from Windows and Office, but now they make more money off of cloud services so the traditional Windows and Office products are becoming more and more about just driving people to their cloud services. But as they they put more emphasis on cloud services they’re actually making it easier for people to dump Windows, and as they make Windows more about marketing their cloud services, they give people more incentive to dump Windows.

    Microsoft is digging the grave for windows.




  • Yup. When you think about it, if you were really libertarian you’d have an electric car and maybe stand up a wind turbine and some solar panels in your yard. That way you wouldn’t be dependent on complex oil refineries and a global oil system, the majority of which is directly owned by foreign governments.

    But how many libertarians actually do this? Really libertarianism is about a vague feeling of distrust in the government and it doesn’t actually go any deeper than that.


  • Teacher tells a kid to be careful of social media, but the kid’s favourite influencer tells the kid their teacher is lame and they shouldn’t listen to that. Who is the kid going to believe.

    Also we don’t let kids into bars until they’re of a certain age. Sure kids are going to still do shenanigans to get in and sometimes they might succeed, but it reduces children getting drunk at bars by significant amount. And even when kids are able to do something they’re prohibited from, they at least know it’s not a normal thing and might understand there’s danger in what they’re doing.



  • The key is “with human supervision”. Calling it Full Self Driving with “Supervised” in parentheses aftwards while putting out videos where they say the only reason there’s some behind the wheel is because of regulations (those annoying “regulations” amirite?) leads people to think they don’t really need to supervise the driving of the car.

    Couple that with the fact that there are actual full self driving cars (Waymo) there’s even greater confusion.

    People have been killed because of the misconceptions about Telsa cars actually being full self driving. Which they aren’t, they cheap out on the hardware needed for that to be possible, let alone the software.