Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
outhole surfer
Mar 18, 2003

Plorkyeran posted:

mysql’s big advantage was that it’s a lot easier to implement a mostly working good enough rdms than a correct one, but eventually Postgres progressed from a theoretically better but impractical rdbms to an actually better one

if the oracle thing hadn’t happened then perhaps mysql could have continued to outpace pgsql, but it really sucked a lot of the air out of the room

replication is still a sore spot in postgres, but just about everything else about it absolutely destroys mysql these days. especially the stupid but amazing poo poo like indexed json fields.

Adbot
ADBOT LOVES YOU

outhole surfer
Mar 18, 2003

CMYK BLYAT! posted:

should i name my new library achilles or dionysus

diogenes. always diogenes.

outhole surfer
Mar 18, 2003

RokosCockatrice posted:

sob-admin is a solid admin username.

covers both what the users think the admin is, and what the admin does at home

outhole surfer
Mar 18, 2003

I don't remember the details because I avoid js like the plague, but don't arrow functions have more nuances than traditional anonymous functions? I'd swear I read that in the context of js, "lambda function" refers strictly to arrow functions, as opposed to any anonymous function.

outhole surfer
Mar 18, 2003

Xarn posted:

Hello Python guy.

rite?

i always just referred to them as higher order functions outside of python, though i guess decorators are just a subset of higher order functions

outhole surfer
Mar 18, 2003

Shaggar posted:

it works fine in windows for the most part. when people complain it's usually cause they're running into a security constraint like delegation or token relaying. or if they're doing Linux poo poo

it's the absolute tits in linux these days, assuming you're in a linux-first environment.

linux speaking to FreeIPA, Samba, or even directly with ldap-of-choice/(mit-krb5 or heimdall) makes for happy fun times

linux speaking to AD for anything but the most absolutely simple of use cases, and you're gonna have a bad time

outhole surfer
Mar 18, 2003

assuming you want to be able to map one spiel to many crimes, and buttonid is how you intend to join the two, sure. that said, as spiels grows, it will become increasingly inefficient, and you should probably pull your buttonid up to sit directly inside spiels[] with something like

code:
"spiels": [
  "someSpiel": {
    "name: "",
    "alltheothershit": "",
    "etc": "",
  }
]
where someSpiel is the value of buttonid for the spiel

edit: i am not a frontent person and just realized buttonid is unikely an id.

if you want to map crimes and spiels, you either need to put the spiel inside the crime, or provide an id to map between the two.

outhole surfer fucked around with this message at 23:42 on Jun 18, 2022

outhole surfer
Mar 18, 2003

echinopsis posted:

there is surprisingly little tutorial on the internet that helps you work out how to actually open a JSON file in your code and reference it. down the stack overflow rabbit hole I go

you're trying to think about several relatively simple operations (open file, read it into a string, deserialize that string into an object) as one complex operation.

instead decompose your problems when searching for them. search for how to open a file in your language of choice, then how to read that file into a string, and finally how to parse or deserialize that string into an object.

outhole surfer
Mar 18, 2003

echinopsis posted:

you're probably right, although I would have thought it was a common enough set of problems that tutorials addressing one would at least mention the others.

thanks for the advice :)

part of what you're bumping into is that by the time you need to parse a json file, you're generally expected to have already tackled the concept of opening/working with files, and parsing json strings (from hardcoded vars or apis) into objects, so nobody explicitly calls out "here is how you go from file to object"

outhole surfer
Mar 18, 2003

if you can't develop using only system packages, you're weaksauce

outhole surfer
Mar 18, 2003

12 rats tied together posted:

none of the moving parts of this build pipeline have changed since 1997.

true story:

on-boarding for my current gig, I asked about an internal build/configuration management system that was mentioned in our wiki. response was not to worry about that system as it was legacy and had been replaced by the current build/configuration management system.

in 1992.

outhole surfer
Mar 18, 2003

docker's biggest wart is the dockerfile. the decision to generate a new image layer for the majority of the available instructions is nonsense that way too much time is spent fighting.

outhole surfer
Mar 18, 2003

animist posted:

it kinda makes sense for dockerfiles that just wrap a plang package but otherwise yeah it's annoying, especially if you're doing any kind of build.

even then you gotta fight it the majority of the time. for most languages a package install is still going to cause a lot of cruft to land on disk if you're not careful (does the package manager download an index, cache the package, etc)

outhole surfer
Mar 18, 2003

I've gotten so most of my Dockerfiles just call out to one script for build and another script as an entrypoint. I also yell at the neighborhood kids to get off my lawn, so there's that.

outhole surfer
Mar 18, 2003

Sapozhnik posted:

ehh, disagree, it works fairly well. I guess there can be a lot of backslashes involved in some cases but if you really need to do a whole bunch of stuff in one leap then you might want to write a shell script

honestly I wasn't even thinking about the additional escaping, but that raises another issue with it: another layer of escaping on top of a language already fraught with string handling and escaping gotchas

outhole surfer
Mar 18, 2003

Private Speech posted:

the windows side of things is usually okay about this, as sort of mentioned

linux binary deployment of commercial code though, lol, lmao

linux just ships a tarball^Wcontainer image with the binaries and the nastily patched dependencies

outhole surfer
Mar 18, 2003

champagne posting posted:

laugh-cries-emoji in Microsoft Teams

at least modern emoji is still plaintext unicode. i'll take that any day over rich text.

outhole surfer
Mar 18, 2003

a deploy *and* dependency change on friday. bold strategy cotton.

outhole surfer
Mar 18, 2003

sb hermit posted:

I wrote perl in order to add spamassassin modules and even I cannot completely understand what I wrote unless I write copious amounts of comments

the perl interpreter is a utility that translates line noise into book stores

outhole surfer
Mar 18, 2003

plot twist: no linter was currently being used and the new guy was proposing they try one out

outhole surfer
Mar 18, 2003

i actually had an old hand make an argument like that when i joined a past gig. sysadmin type work, everything was managed directly from his workstation and only occasionally in any form of source control. i started an ansible repo that described a single file i was deploying to hosts (to act as a starting point for collab and test the waters) and he raised hell up the flag pole that i was trying to change all his workflows on day one.

outhole surfer
Mar 18, 2003

barkbell posted:

the best change was screen print width from 80 to 100. huge value

as someone who has been too lazy to reconfigure default terminal width for a couple decades now, i'd have to agree with you. that's a wtf pr right there.

outhole surfer
Mar 18, 2003

akadajet posted:

:rip: smokadustbowl

dags are a boomer myth

outhole surfer
Mar 18, 2003

many many times. they never last because they abstract too much, and when users of them land in a rough spot, they can no longer speak the the lingua franca of git misery

outhole surfer
Mar 18, 2003

bob dobbs is dead posted:

embedded linux, they might literally just only have libc

how someone contributes to buildroot but has never used make graph-depends is mind boggling to me tho

outhole surfer
Mar 18, 2003

TheFluff posted:

fair, i've never actually used rails myself either

rails (well, activerecord really) pisses me off with all the goofy convenience methods is spews out.

an integer should not have a days_ago method that returns a date/time

outhole surfer
Mar 18, 2003

RokosCockatrice posted:

I need some help workshopping an opinion

pull requests were made either in fact or in practice by GitHub, to allow untrusted third parties contribute to open source code bases. but in a software development team, if you don't trust someone to modify the code, you should just fire them.

this leads to, what, recommending everyone just commit on the trunk? do you do code reviews before you push commits? pull requests are used to dissect and review code, how do you still get knowledge transfer and catch each other's gotchas, just write the tests with those in mind?

pretty sure pull requests originated from the lkml, not github. github implemented a web ui around the process, but pull requests previously existed as a literal e-mail that requested you pull changes from a repo specified in the e-mail.

outhole surfer
Mar 18, 2003

99.9% of real world saml implementations are heavily browser dependent. ECP was introduced to try to bring saml beyond the browser. i started to add an exception for amazon, saying that awscli supported ecp, but that doesn't seem to be the case anymore if it ever was, as they suggest a 3rd party tool that implements saml ecp to get an sts token, so it's a 3rd class citizen there too.

outhole surfer
Mar 18, 2003


no

outhole surfer
Mar 18, 2003

Carthag Tuek posted:

lmao at admitting that

people admit to and are even proud of the dumbest poo poo.

colleague at a past gig had been responsible for their iam infrastructure for years doing everything by hand, from building to deploying to operating services. acted like it was unreasonable to config manage an environment that was only a half dozen servers and a dozen services and was proud of constantly having to hero the shitshow he made

dude would also proudly talk about how the shibboleth deployment was stuck on a hella old version because he wrote a plugin that the deployment depended on, then lost the source.

he of course blamed everything on not having enough time to do everything that needed to be done.

outhole surfer
Mar 18, 2003

redleader posted:

i'd rather write xslt than js tbh

outhole surfer
Mar 18, 2003

ruby is an ecosystem where nobody thinks twice about adding a days_ago method to integers

outhole surfer
Mar 18, 2003

horrible flashbacks to a customer site (porn site) I worked on 15+ years ago. all images were mysql blobs. on a porn site.

outhole surfer
Mar 18, 2003

cinci zoo sniper posted:

no, the name of the algo is "zstandard"

required pronunciation is an american impersonating a german tho

Zee Standard!

outhole surfer
Mar 18, 2003

3.11 just builds on top of python for workgroups, right?

outhole surfer
Mar 18, 2003

i'm one of those crazies that goes a step further and says vendor all your dependencies

you never know when poo poo is going to disappear from the internet and break your builds. mirroring gets you part way there, but being able to git blame within a dependency is the goddamn bees knees

outhole surfer
Mar 18, 2003

Jabor posted:

it becomes a brownfield app pretty quickly when you have microservices pooping all over it

outhole surfer
Mar 18, 2003

then you have loving conda where they were like "what if we shipped a shitload of packages that aren't related to python with every install"

loving kerberos is provided by conda by default

outhole surfer
Mar 18, 2003

Just a Moron posted:

I should clarify that I love EVE, I think it's great. But I've gotten the impression over the years that it running in python has been a consistent source of technical debt that they have to overcome.

it's a shame that keeps getting in the way of them becoming insanely profitable... oh.

Adbot
ADBOT LOVES YOU

outhole surfer
Mar 18, 2003

uvicorn is the new hottness if you're moving from wsgi to asgi

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply