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
mystes
May 31, 2006

lord funk posted:

i hate using other people's code. the initial productivity boost of "oh nice! someone has done this already!" inevitably becomes 5 years of fixing poo poo until you write your own implementation

see also: being tied to framework update cycles instead of your own, having to learn their convoluted system of functions anyway, and being tricked into thinking CocoaPods was ever a loving good idea
Agreed, throw out all of your coworkers code and write your own.

Adbot
ADBOT LOVES YOU

FlapYoJacks
Feb 12, 2009

mystes posted:

Agreed, throw out all of your coworkers code and write your own.

Re: terrible programming: throw out all of your coworkers code and write your own.

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man

mystes posted:

Agreed, throw out all of your code from more than two months ago and write your own.

FlapYoJacks
Feb 12, 2009
BRB porting all my python to java on this cortex A8

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man

DoomTrainPhD posted:

BRB porting all my python to java on this cortex A8

we get it, you vape

FlapYoJacks
Feb 12, 2009

Phobeste posted:

we get it, you vape

Well yeah. Weed is good

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.
you misspelled javascript there op, you want to port to javascript

FlapYoJacks
Feb 12, 2009

pokeyman posted:

you misspelled javascript there op, you want to port to javascript

Rewriting my ccs charger from Python to node.

animist
Aug 28, 2018
i just had an interview where they gave me a tricky algorithm question... then told me to take it home to work on it overnight, googling allowed

and it turned out the algorithms topic was actually pertinent to the software they develop

and this was the only coding question they gave me. the rest was just chatting about stuff.

was this the legendary "reasonable interview"??

CPColin
Sep 9, 2003

Big ol' smile.
If I'm ever tasked with interviewing my own replacement, I'm going to have to come up with the softest lob of a question, because basically anybody could do my job. Like, "Have you ever used a computer?" and then pass them regardless of the answer.

Bloody
Mar 3, 2013

Xarn posted:

That's actually pretty close to my experience tho. Sooner or later you find out that the library doesn't cover your corner cases, and then one of two things happen

1) The library hasn't been maintained in 5 years, so you fix the bug in your local fork. To fix the bug, you run into the fact that the internals are an insane mess held together with string and prayers, and end up rewriting sizeable portion of the library to work properly for your use cases.
2) The library is actively maintained, so you try to get the bug fixed in upstream. Upstream drags their legs, and then implement a half-measure fix that exposes new and interesting issues, because the internals are an insane mess held together with string and prayers. You end up fixing the bug in your local fork and dread the day you need to update the dep.


The third possibility, where the library is still maintained, the internals are nice and getting your bug fixed is easy, is in my experience rare enough that it isn't worth thinking about :v:

I made my first open source contribution last week and it was possibility 3 but I think the maintainer is a Microsoft employee whose job duties includes maintaining the library so idk

epitaph
Dec 31, 2008

DoomTrainPhD posted:

I love working for a small division in a large company. I get to play with fun things, make a cool product, and also take random afternoons off without anybody caring.

I thought this was going to be dope but it ended up sucking big time. All the problems of a bigco with the constraints around people resourcing of a smallco.

I’d avoid working for bigcos for the rest of my career if comp at smaller places was within 85%. Alas, it tends not to be.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



animist posted:

i just had an interview where they gave me a tricky algorithm question... then told me to take it home to work on it overnight, googling allowed

and it turned out the algorithms topic was actually pertinent to the software they develop

and this was the only coding question they gave me. the rest was just chatting about stuff.

was this the legendary "reasonable interview"??

i didnt do any coding when i interviewed for my current job. i guess they assumed i knew what i was talking about (tho maybe they checked my github idk)

Xarn
Jun 26, 2015

Bloody posted:

I made my first open source contribution last week and it was possibility 3 but I think the maintainer is a Microsoft employee whose job duties includes maintaining the library so idk

I like to think that my project is 3, but in reality I am burnt out on it and it has close to 10 years of legacy, so :v:

Funk In Shoe
Apr 20, 2008

Waiting in line, Mr. Haydon told me it is a wheel not meant for lovers but for infants, lifting people and letting them swing, putting the world on display from up high

Xarn posted:

I like to think that my project is 3, but in reality I am burnt out on it and it has close to 10 years of legacy, so :v:

same but 15 and the project is my freaking marriage :xd:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



what the hell

suddenly pyodbc is giving me Rows that just say "Null" for some of the columns if i access them as properties (row.colname) even tho if i print the row i can tell theyre there, and i can get the values by index (row[0])

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



arghhh and a tiny test script i wrote works fine with either method

goddamn i hate debugging

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



oh my god

its because its a select w a left join with no matching rows in the right table, so it overwrites the columns from the left table with the empty ones from the right table

jesus christ

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



i need a drink

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


nice

I've had more runin with Vue testing and typescript. If you have a typed Map const in a getter in a component the testing apparatus will look at it and go "no can't have that, wrong lenght!", but if you take the same function and put it somewhere else and put a wrap and a bow on it, everything is fine!

and by fine, I mean typescript and vue is crap

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



solution for future reference:

code:
for row in cursor:
  row.doc_id = row[0]
  # now doc_id is no longer None
  do_stuff(row.doc_id, row.doc_contents)
:shepface:

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Funk In Shoe posted:

same but 15 and the project is my freaking marriage :xd:

open source marriage lol

jesus WEP
Oct 17, 2004


brb gonna fork your wife

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



brb doing a push request

FlapYoJacks
Feb 12, 2009

Carthag Tuek posted:

brb doing a push request

These push requests keep getting smaller and smaller.

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

jesus WEP posted:

brb gonna fork your wife
she's gpl licensed so better do it publicly

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

Captain Foo posted:

open source marriage lol

there is a 100% chance this is the title of a medium dot com post

(probably sans the lol)

shoeberto
Jun 13, 2020

which way to the MACHINES?

pokeyman posted:

there is a 100% chance this is the title of a medium dot com post

(probably sans the lol)

submitted to hackernews; the thread has 5k+ comments; over the next few weeks, there are a dozen+ follow-up response blog posts discussing it

a year later, a VICE article comes out following up, interviewing everyone who attempted it and detailing their divorce proceedings

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



shoeberto posted:

submitted to hackernews; the thread has 5k+ comments; over the next few weeks, there are a dozen+ follow-up response blog posts discussing it

a year later, a VICE article comes out following up, interviewing everyone who attempted it and detailing their divorce proceedings

do it

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


Carthag Tuek posted:

arghhh and a tiny test script i wrote works fine with either method

goddamn i hate debugging

this is like my serilog test app that won't actually serialise a basic test class object for a hello world example ( a struct with one string, one int) using the exact syntax in their docs and the closest answer I can find is someone saying something like "there's a hidden version conflict between serilog and the actual log formatter, I updated nuget 3 times and now it works but I don't know why"

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Powerful Two-Hander posted:

this is like my serilog test app that won't actually serialise a basic test class object for a hello world example ( a struct with one string, one int) using the exact syntax in their docs and the closest answer I can find is someone saying something like "there's a hidden version conflict between serilog and the actual log formatter, I updated nuget 3 times and now it works but I don't know why"

:yosnice:

cool av
Mar 2, 2013

hm i recently implemented serilog in a project and it was pretty painless but as I was doing so I noted the only useful thing it has is a standard configuration for enabling different log levels for differently named logs.

(wow it can json serialize the arguments to my log function what a world lol)

is it going to bite me later on?

Powerful Two-Hander
Mar 10, 2004

Mods please change my name to "Tooter Skeleton" TIA.


cool av posted:

hm i recently implemented serilog in a project and it was pretty painless but as I was doing so I noted the only useful thing it has is a standard configuration for enabling different log levels for differently named logs.

(wow it can json serialize the arguments to my log function what a world lol)

is it going to bite me later on?

the enricher config is quite nice and it is possible to inject enrichers into your init so you can have different enrichers in different calling components if, like me, you're putting a wrapper around the basic config that will be reused across multiple applications and different app components (which use a common config library so the whole environment aware log setup can be done using app config) . So for example on the Web component I can add an enricher that will pull the current user id from the session which wouldn't apply to a service component, but the wrapped calls and setup are otherwise identical.

for elastic as a log sink it abstracts away a load of janitoring index name patterns etc. away from you but otoh I have not yet used it in production to see how badly this will bite me.

but yeah otherwise it's a bit like "don't format strings like that, format them like this".also the serialisation seems broken for me for some reason (probably the nuget version thing I haven't tried fixing yet) which is kind of a flaw.

MrMoo
Sep 14, 2000

Another reason to :lol: at webdev. This case I logged appears to make me the first person to notice web animation is 💩.

https://github.com/mrdoob/three.js/issues/21088

tldr; on anything but a $1,200+ GPU any animation in almost any browser will see jank every 10-20s.

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
web pages shouldnt have animation

xtal
Jan 9, 2011

by Fluffdaddy
They should only have animated gifs and marquee tags. I'm serious.

FlapYoJacks
Feb 12, 2009
The internet was a mistake.

MrMoo
Sep 14, 2000

CRIP EATIN BREAD posted:

web pages shouldnt have animation

On conventional pages I agree, but as the web is frequently the display language for signage and IoT appliances it makes sense there.

:chome: had enough problems with animated GIFs, so I guess it should be of no surprise to anyone.

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
running a web browser on signage and IoT is a huge waste of resources and should be illegal imho

Adbot
ADBOT LOVES YOU

Cybernetic Vermin
Apr 18, 2005

agreed. buddy worked as lead tech at a signage company like 15 years ago, and drove the decision that the only thing the actual signs were to do was play h264 files in the order presented (by a small script), and despite it seeming a waste to render stuff like a static weather webpage into a h264 clip the simplicity at the client has made them (and profits) incredibly reliable

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