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
champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Finster Dexter posted:

cjs: what's the solution for a CTO that works 16-20 hour days but does nothing but work on features/bugs that are all low-medium priority when everyone else is crunching to get high-priority bugs fixed because we were supposed to launch this terrible russian platform months ago.

note: this is a startup dev team of me, a junior dev, and CTO.

someone might get fired

it's probably not the CTO

Adbot
ADBOT LOVES YOU

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Osmosisch posted:

Protip: also start doing this if you aren't.

pros of not leaving on time: nothing

cons: all of the cons

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Sapozhnik posted:

It's OK to be whitespace?





Yeah I got nothing

what’s next? all plangs matter??

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Jabor posted:

it should be like nans where any operation that isn't explicitly checking for it just produces undefined

what you’re saying is js should be better

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Kevin Mitnick P.E. posted:

one nice thing about aws is they never turn stuff off. simpledb is still there for example. I’m fuckin tired of companies deciding that maintaining their poo poo isn’t strategic so you get to migrate or else

one terrible thing about azure is that if you don’t like c# you’re often stuck doing poo poo the hard way

I say as a person who’s had to deploy python products in azure. also the documentation is all over the place but I don’t know if any place has actual good documentation

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Finster Dexter posted:

c# rules python drools

not when your boss has mandated python for all future projects and azure because and I quote “active directory is neat”


:v: :v: :suicide:

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


what if classes were a mistake?

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Krankenstyle posted:

there was a script missing, so i wrote to ask them about it and i was told "oh that one is still in progress, here follows a manual procedure that i did some weeks ago" and its a page of words but i tried to suss it out & wrote a script that did it in like 30 lines of python and it works with the next script

so im like, that cant be it? youve been doing that poo poo manually for weeks?!

we're too busy to change this manual process into an automatic one, no matter how long the transition might take

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


most terrible site I’ve seen so far had one page and a huge JavaScript that waited on the user clicking. depending on what text your cursor was over when you click decided how the page changed.

there were no buttons so back sent you back usually to the blank page your browser opens with

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


GWBBQ posted:

is there a definition of unsigned integer that i'm not aware of?



I’m the unsigned integer scientific notation 4.29497 * 10^9

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


do americans dream of opiate sleep?

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


fritz posted:

they're the bad kind of moral degenerate

less weird art and drugged up parties and more mods (who knew?)

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Sagacity posted:

code:
select * from children c where c.id in (select p.child1, p.child2, p.child3, p.child4, p.child5 from parent p where p.id = parent_id)
~declarative~

for my next trick i will make this sql database performance .. disappear!

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


redleader posted:

nah, any half decent query planner will optimise this to an inner join (that is, of course, if this code actually worked like it looks like it should)

i think we have firmly established this is not the case

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


DELETE CASCADE posted:

For that 12 column join I would just create a view that does the union all into a single column like it should be and then just do all my queries on that view forever. Until someday seven years later that becomes a performance problem and it takes some sucker hours to figure out :getin:

why not make it a view dependent on a view dependent on even more views?

a viewchain if you will

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


I have a terrible casting story: In my last job I noticed the ingress website would take numbers and cast them to floats and then decimals in sql. Most of the numbers where things like age, phone number and drivers license id numbers which meant a phone number like 123-4213-333 would get cast to 1234213333.0000000000001 and then recast as a decimal with very high precision but also 0 numbers are the decimal point.


its :psyduck: all the way down

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Xarn posted:

Real talk, I actually use Python a lot for scripting and when I don't care for efficiency, and I am completely ok with the fact that my scripts need orders of magnitude more cycles than a proper code would.

At the same time, I make my living by writing software that needs high-throughput and already needs 70+ gigs of ram when using strongly typed ints that need only 4 bytes of memory, so yes, I am kinda sceptical of the "just 16 bytes overhead, who cares" approach.

Performance is nice. Until you enter into an environment where sending off your bits and bytes takes magnitudes longer than any code ever would.

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Illusive gently caress Man posted:

because my brain is broken and I enjoy writing c++ for regular everyday tasks

:therapy:

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Phobeste posted:

I mean yeah matlab is great and a big part of that is the ide and the way it strikes a nice balance between being an ide and a repl and everything and plots are nice and the math works and is good but at this point I’d rather jump through several annoying hoops to get python

Matlab is amazing if you're an academic and things need to be janitored and babied to work (and also when you don't have to pay for their nickel and dime operation)

when you're in an industrial setting ehhhh

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


CRIP EATIN BREAD posted:

I wor


I once worked on a project for a third party that had an algorithm designed in matlab, and wanted us to port it to a C library. when they learned it would take a whole week, they spent a week trying to embed matlab on the target platform.

licensing for matlab being what they are it would be way way more expensive. but then again corporate never made sense.

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


floatman posted:

Eh I don't know what to think already. I do agree with the points you said about what the purpose of queues should be, but nowadays after $JOB I'm just so jaded.
Like I'm starting to think that it's all fine and dandy to keep in mind "best practices" or theoretical good design and all that, but sometimes an anti pattern is necessary because if you leave the clowns to their own devices, you get poo poo like recursive CTE SQL queries for bad queue implementation or wrapping csvs in Json to be sent as XML strings.
It's not even good enough to reach the standard of bad. And most Devs here have Stockholm and they actually think everything is fine.

To put it this way I would have rather had a badly managed rabbitmq implementation to fix and debug rather than some idiot bespoke MSSQL server queue that one guy was so loving proud he did but didn't stay in the company long enough to see first hand the destruction it wrought

at this point i'm not even sure recursive anything should be allowed in sql. Just write out what you're attempting so the next person in line doesn't have to guess and guess

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


ThePeavstenator posted:

BORN TO DEPLOY

REPO IS A gently caress

PUSH EM ALL 1989

I AM DEVOPS MAN

410,757,864,530 MERGE CONFLICTS

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Stringent posted:

basically you can suck it up and do it apple's way and suffer

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


gonadic io posted:

Anybody used goog's "container os"? It seems weird, basic only has kubectl and docker installed and with pretty much anything else you have to do "docker run busybox -- my-linux-util"

is it a full vm with limited tools installed or can nothing else be installed?

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


AWWNAW posted:

I cannot imagine what it must be like to work somewhere that forces you to use JavaScript and you just have to make the best of a bad situation. nobody should have to live like that

a lot of people chose to live like that

learn to love your chains and all that

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Beamed posted:

:psyduck: I don't think I've ever seen this particular defense of dynamic typing before but here we are.

i can understand duck typing being ok as long as your project doesn't touch important things, but dynamic typing is just so out there

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Chalks posted:

i too struggle to understand where modern websites come from

they come straight from hell

next!

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


fritz posted:

i write c, and while i can assure you that yes its nearly as bad as my posts, i dont ever want to touch the javascript again

at least c is pretty clear on the types and where you put them

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Finster Dexter posted:

this whole discussion is moot because in 12-18 months webassm and Blazor will be taking over everything and all the js devs will be making GBS threads themselves at having to learn c# (which won't actually be that bad because c# is super easy to learn)

*this is my headcanon don't ruin it*

there'll be a JS library for this don't you worry

actually lets have three equal but subtly different libraries for it

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


DELETE CASCADE posted:

C# would be cool except lol if you develop on Windows or deploy to windows or have to work with people who willingly do either

C# is cool and good when deploying to azure in one form or another

any deviations from the path of ms is uhh.. not encouraged

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Symbolic Butt posted:

cjs: I hate c++ exceptions

writing assembly i wouldn't mind something like it. alas i've done this to myself

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER



:yikes:

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Slurps Mad Rips posted:

“look in video game development we don’t have time for unit tests. if it looks like it works then it works”, my manager said as he hit “run” in visual studio 2010 and then refused to make eye contact with me as it immediately crashed from a pure virtual function exception.

this is amazing

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Krankenstyle 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

UnicodeDammit to the rescue

code:
from bs4 import UnicodeDammit

def get_encoding(file):
	with open(file, 'rb') as f:
		dammit = UnicodeDammit(f.read(1024*500), ['utf-8', 'Windows-1252'])
		return dammit.original_encoding

question: can't you ask a file what encoding it uses without reading the content?

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


mystes posted:

Do you mean "is there a python function to detect the encoding without explicitly calling read" or literally "is it possible to determine the encoding of a file without reading it"?

either really

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


Blinkz0rz posted:

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

unicode or get out seems like a very reasonable request

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


fart_man_69 posted:

You may be right but I don't actually drink coffee so the situation is even worse than I made it seem at first. Just boulders (metaphorical) and agile meetings (real things that people insist on)

i take it you don't mean standups

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


redleader posted:

c++ may be alright if you have a team of extremely competent 10x programmers, but it is certainly not a tool for the masses

i have a friend who does fpga stuff who basically said to only ever use c++ when you absolutely have to

Adbot
ADBOT LOVES YOU

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


gonadic io posted:

Ctpa: manually editing a few dozen cosmos entries to change some fields to lowercase because somebody thought that our system make sense and was case insensitive. It does not and is not.

cosmos db is just hilariously overprized json store yes?

if so, why?

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