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
Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Shaggar posted:

yeah netscape and mozilla pretty much destroyed the internet

lmao sure it's not microsoft refusing to follow the w3c or anything

the browser wars were microsoft's fault and we've all suffered for it

Adbot
ADBOT LOVES YOU

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Shaggar posted:

lol no. javascript is a horrible, horrible language and all the tooling in the world cant fix it. also all the tooling is terrible

i know i'm being shaggared but i'm sincerely curious as to why you think es6 is a horrible language

don't compare it to c#

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
es6 not what you remember of javascript from 1998

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

ComradeCosmobot posted:

Do you prefer substr or substring?

i'm aware of the gotcha you're trying to call out. i tend to use substring because mdn considers substr to be legacy

that said i haven't written an appreciable amount of javascript in a year and a bit

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Shaggar posted:

if es6 had eliminated prototype inheritance and dynamic types it would have been a good step forward

prototypical inheritance is fine it's not the language's fault you don't understand it

js type system could be better but typescript exists and tbh if you get into a place where you have questions about your types you're probably writing bad code anyway

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
i wonder what the overlap between people saying javascript is bad and people who write c is

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
the terrible programmers are coming from inside the thread

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

AWWNAW posted:

it’s huge fun writing dynamically typed programs and it fuckin sucks to maintain them

:hmmyes:

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
i'm the NullPointerException at runtime

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

AWWNAW posted:

whose stack trace has been elided as a performance optimization

pretend i posted a stack trace entirely comprised of files in spring boot

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Soricidus posted:

another plausible outcome would have been: client side scripting takes off, but in vbscript

perhaps we should count our blessings

this would have been the outcome if microsoft had had its way

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

abigserve posted:

golang error handling is so terrible if you're thinking about writing something in golang think extremely long and hard about how much error checking you want because this one attribute of the language might be enough to put you off

go error handling is fine albeit super verbose

handling panics in early versions was hot garbage especially since places in the stdlib and a whole bunch of 3rd party libraries used to use it liberally

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

hmm yes a 3 year old question sure showed them

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

fart_man_69 posted:

welp chardet thought one of my files was ISO-8859-2 (Eastern European) but its actually Windows-1252 with a bunch of Danish characters

require a specific encoding and throw an error back to the user if it isn't that

file encoding is like time handling: not even once

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

DONT THREAD ON ME posted:

amazing

you know if i had written my own scripting language i would probably clean up the interface a little before releasing it to the public but that's just me

e: i read a little bit more about its development and i think i'm being unfair. i can totally see developing this, releasing it for fun, and then seeing it grow unexpectedly.

although i'd still clean it up before releasing it because that's how i roll.

that's how you roll in tyool 2019 but pretend it's 1994 and nothing you know about writing or releasing code exists in any appreciable way

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
lol i just found out a team we worked with to architect a file encryption and decryption service is having issues encrypting files...that are 6+ gb

why no, the solution based on the spec that required reading ~5mb pdfs into memory and encrypting them won't scale with huge files why do you ask?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

gonadic io posted:

ctps:

at work we're doing a small go project on an rpi. seems like it's not the worst use case for the language, compiling to a single binary is kinda nice.

then i added a single utility library and now my pr is 200k lines jesus gently caress what a trash pile

plus when setting up my dockerfile it took me over an hour to find the right place to COPY the vendor files and the source files to. all the example go dockerfiles i saw just put it in /go but that doesn't loving work instead i need everything to be in /go/src/github.com/myapp/go or some bullshit to get the compiler to even turn on

gently caress i hate go. like the language feels deficient and dated but it's not the worst. but the tooling is just hostile

why not mirror your entire $GOPATH into your build container, build from the project directory, then copy the binary out to the next stage?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

gonadic io posted:

why copy all my other go projects when i only want to build one?

unless i'm misunderstanding your post

it's an intermediate container. there's no need to select a specific set of directories and worry about additional vendor directories when you ultimately have to recreate a part of your $GOPATH tree anyways

just either copy the whole $GOPATH or mount it as a volume and not worry about it

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Corla Plankun posted:

tests are documentation that is guaranteed to be correct (or at least overtly incorrect when it is incorrect)

code:
assert(true);

is a test guaranteed to be correct but has absolutely zero value and is one i would delete from a codebase in an instant if i found it

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Corla Plankun posted:

if you're commiting a list comprehension that is more complicated than something like
code:
[butt>0 for butt in butts] 
I strongly recommend that you rewrite it as a for loop

if you don't, you're gonna be real mad at yourself later for being so clever

my team is loving awful at this and i have to constantly remind them that "pythonic" means readable and comprehensible not code golf

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Powerful Two-Hander posted:

what the gently caress why does this method pass an instance of a class to itself as a parameter for its own save method :psyduck:

if i had to guess someone probably wrote a dal abstraction layer that uses the class type as an entity to pass into a factory that saves the right object type but then forgot what they were doing and gently caress you that's why

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Private Speech posted:

a dalal if you will

:thejoke:

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Powerful Two-Hander posted:

i added commit hooks to our main repos and now I keep getting asked why commits don't work because reading the output window in vs or the error message is apparently too hard

i wish github let you add hooks on their end. i bet gh enterprise does this, right?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
multi-tenancy is a hell of a drug

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

redleader posted:

nice. we can use one google doc then. headings are permissions. bullet points beneath each heading list the permitted users for that permission. strikethrough is used for revocation. this also allows other people to manage the permission lists, as well as history tracking, versioning, and rollback

i know you're being sarcastic but static acls are totally fine as long as the contents of the acl file is hashed and verified as the source of truth

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
i have a weird/dumb idea that i was hoping to get some thoughts on.

i wrote a task runner in python that takes user supplies code, generates a context, and executes the code in that context. the task running code is kind of janky and, because it's python and the gil exists i've had to resort to using multithreading to get semi-decent performance with the trade-off that the process boundary is extremely brittle.

i was thinking about rewriting the task runner code in go and somehow using ffi to execute the python code. from reading it looks like i'll have to use the c import and write a c bridge to handle the ffi but there's also a bit of the runner code that does some code validation and it'd be cool to port that to go as well

am i being stupid here? are there better options?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
i haven't written a line of c++ since high school

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
does rust have an aws sdk? cause that's the other piece of the puzzle

i'd love to use rust if i could

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
it's not performance critical but it is bottlenecked by python's gil if i use threads and lots of very specific data handling and sanitization when dealing with passing values across the process boundary if i use multiprocess

i'd love to work with something that's a) statically typed, b) performant, and c) doesn't have the same annoying considerations around parallelizing execution

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
also the rest of my lovely team only really knows python so it ended up being python but it takes loving forever to run these tasks

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

ratbert90 posted:

Modern C++ is quite good and meets all of one points.

i came in asking this question thinking i was the terrible programmer but maybe it's u?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Beamed posted:

who the hell's high school had programming courses

we had ap comp sci

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
god i hate writing boilerplate dtos

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

CRIP EATIN BREAD posted:

webdev is such a joke that it shouldn’t even be considered programming

idk the number of dumb poo poo problems that web devs keep having to solve because no one has solved them in meaningful ways is kind of astonishing

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
@Autowired ftw

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
but for real di frameworks own because i don't want to worry about what type is fulfilling the interface

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
the best di frameworks force you to declare your interface to impl mappings in code somewhere near the application entry point

the bad ones are xml all the way down

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

ratbert90 posted:

It's me, I like chef. I am a terrible person.

But god drat is it nice once it's all setup.

chef is miserable and, like all dsls, should be destroyed and all its creators rounded up and executed

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
it's fine to be wary of sql insofar as rdbms systems very quickly start to require a lot of very specific tweaks and nuanced approaches that aren't particularly intuitive and aren't immediately apparent from just knowing how to use the language

Adbot
ADBOT LOVES YOU

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

Fiedler posted:

some database systems are easier and more intuitive than others. for example, this little oopsie literally could not have happened if they had used azure sql database instead of some azure vms running postgresql.

i was referring to some of the more esoteric oddness that happens when you start working with huge tables and lots of operations

for example we run into this bug and this bug (which is in innodb so it hits us in mysql) every now and then

yeah we probably wouldn't run into these specific issues if we weren't using mysql or mariadb but postgres and mssql have their own complexities that the sql language belies

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