• 2 Posts
  • 97 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • API is just the term for “the surface of something that’s been exposed to you to interact with”

    Libraries, websites, tools, etc all have APIs, it’s just the general term for “this thing has something we can interface with”

    A library is a bunch of code someone else wrote.

    A package is when you use a tool to bundle up a library to make it easier to distribute to other people, usually adding a version # to it, and adding it to so.e popular package manager network so millions of people can find your package easier.

    A framework is a term for a very big cohesive library, with an advanced api, that does a whole bunch of different things that all have stuff in common. Basically a firework is a huge library that provides many many different things to do that all have stuff in common.

    Game Engines for example are frameworks.

    A library of tools to make a bunch of different website components that all work well together and have stuff in common is a framework.

    Etc etc. It’s a bunch of code that doesn’t do anything in it’s own, but provides a bunch of modular pieces you can assemble into something.

    Think of a framework like buying a big box of lego. It’s not anything specific yet, but you can assemble all those pieces together to make infinite different things.








  • That’s the weird part.

    I wouldn’t imagine Ukraine would ever do something so reckless.

    But Russia has nothing to gain, peace talks are about to start with heavily favoring Russia

    So all I can assume is it could be a third party that doesnt want the peace talk to happen at all, and did this to further destabalize the situation?

    I dunno it’s just super fucking weird overall. Why chernybol of all things, no one, not even putin, would want that thing to start popping off… right?

    That attack for all intents and purposes should be viewed by the world as no different than a failed nuclear launch, really.

    And everyone is too pussy to do anything about it.




  • Okay but if that happens, musk is right that that’s a bit of a denormalization issue that mayne needs resolving.

    SSNs should be stored as strings without any hyphen or additional markup, nothing else.

    • Storing as a number can cause issues if you ever wanna support trailing zeros
    • any “styling” like hyphens should be handled by a consuming front end system, you want only the important data in the DB to maximize query times

    It’s more likely though it’s just a composite key…





  • They probably do use lots of NoSQL DBs too, which perform better for non relational “data lake” style architectures where you just wanna dump mountains of data as fast as possible into storage, to be perused later.

    When you have cases where you have very very high volume of data in, but very low need to query it (but some potential need, just very low), nosql DBs excel

    Stuff like census data where you just gotta legally store it for historical reasons, and very rarely some person will wanna query it for a study or something.

    Keep in mind when I talk about low need to query, the opposite high need us on the scale of like, "this db gets queried multiple times per minute’

    Stuff like… logins to a website, data that gets queried many times per minute or even second, then sometimes nosql DBs fall off.

    Depends what is queried.

    Super basic “lookup by ID” Stuff that operates as just a big ole KeyValuePair mapping ID -> Value? And thats all you gotta query?

    NoSql is still the right tool for the job.

    The moment any kind of JOIN enters the discussion though, chances are you actually wanna use sql now


  • Terrible idea, that new country would instantly realize how awful it is needing to negotiate for oil when you have zero local sources of it.

    The US has Texas, and Canada has Alberta.

    You do not wanna form any kind of new pseudo country that doesn’t have oil in 2025, you will have some serious issues within a couple years.

    The only people that talk about any states or provinces separating are the people too ignorant of just how deeply they are dependent on all the rest of their country’s exports, imports, and production.

    Yes, even backwater places have an absolute fuck tonne of stuff they produce that you depend on every Just because you might think mineral mines, farms, oil, steel factories, forestry, etc etc isnt of major value, it is and you literally depend on it daily

    You cant break out from that, but too many people have become too deeply dumb to grok how fucked their life would become if their specific state/province seperated.

    You’re cost of living would fucking skyrocket to levels you cant even imagine. So much random shit you currently take for granted still being affordable would vaporize as you suddenly realize “Oh yeah I guess we dont make that here locally do we, where does that come from? Shit it comes from there? I never knew they made this stuff, I use it every day! Now I cant have it at all? I can still, it just costs a lot more and is imported? Well how much does it cost? (spit take) IT COSTS HOW MUCH NOW?!?!”




  • It’s a free service that’s been provided to website makers to easily add a way to reduce bot spam. And for a very long time, it worked

    Captcha got tonnes of free training data, and in return website maintainer got an incredibly handy free tool to help secure their site.

    Captcha 100% could have charged licensing for their tool, could charged money for developers to use their service.

    They didn’t, and I think it’s perfectly reasonable they got the training data as “payment” instead.

    Your favorite free websites you use get to have another part of their architecture stay free.

    The website maintainer get an awesome free tool.

    Captcha got training data to profit off of.

    That’s good internet where everyone wins without the need for bullshit licensing and fees and royalties and subscriptions.

    Would you have rather your Netflix account cost an extra 15 cents per month or whatever to offset yet another licensing cost for some captcha tool?