Symbolic Butt posted:you gotta float like a butterfly with returns man, don't let variables weigh on you (imo) *with thick latvian accent* idgi, unless this is another way of saying "dont let it run too long". nothing against it, but will need some time to think how to better do this when i have all the loving branches of potentially broken things
|
|
# ? Nov 13, 2017 12:27 |
|
|
# ? Jun 9, 2024 02:57 |
|
c tp s: i'm currently using firacode, going to switch to gnu unifont to see if it's a problem with the text library im using or the font simply lacking the characters
|
# ? Nov 13, 2017 12:47 |
gonadic io posted:c tp s: getting caught up in some ancient font thing sounds terrifying
|
|
# ? Nov 13, 2017 12:49 |
|
cinci zoo sniper posted:getting caught up in some ancient font thing sounds terrifying to be fair, im trying to render weird symbols. i could very easily switch to ascii letters, or even just draw the symbols myself if i give up gonadic io posted:terrible hobby programmer status:
|
# ? Nov 13, 2017 12:51 |
gonadic io posted:to be fair, im trying to render weird symbols. i could very easily switch to ascii letters, or even just draw the symbols myself if i give up just channel your inner luigi and find some dusty manual that says your ram stick doesn't support venus symbol as string so you have to draw it with tiny lines instead
|
|
# ? Nov 13, 2017 13:07 |
|
python raises exceptions internally for everything, I wouldn't worry about the performance too much & the hit only comes when you hit the except portion of the block. premature optimisation is no one's pal.
|
# ? Nov 13, 2017 16:47 |
|
i'm the terrible python programmer using locals() and isinstance() and concerned about if vs elif performance
|
# ? Nov 13, 2017 16:54 |
|
InfrastructureWeek posted:i'm the terrible python programmer using locals() and isinstance() and concerned about if vs elif performance
|
# ? Nov 13, 2017 17:00 |
|
lmao one of our servers just threw oom and crashed the app because somebody was ssh'd into it and looking at logs to investigate a previous crash. `less` was one of the processes using the most memory when it oom'd
|
# ? Nov 13, 2017 17:00 |
|
also ctps: > 5 failed tests me: oh I see what the problem is, let me just fix that > 6 failed tests
|
# ? Nov 13, 2017 17:12 |
|
Progress!
|
# ? Nov 13, 2017 17:16 |
|
less needs more!
|
# ? Nov 13, 2017 17:16 |
|
i don't understand why people ask questions and then argue with every answer but maybe it's cause i'm a tp
|
# ? Nov 13, 2017 17:35 |
InfrastructureWeek posted:i'm the terrible python programmer using locals() and isinstance() and concerned about if vs elif performance are you stupid, since when a genuine "by the way i wonder if" is a concern? in terrible programmer of all places? did you break out of your containment greythreads?
|
|
# ? Nov 13, 2017 17:40 |
|
carry on then posted:i don't understand why people ask questions and then argue with every answer but maybe it's cause i'm a tp because they are asking the question as a vehicle for you to validate them, not because they want the answer. bonus points if they ask the question, then say the answer, and then say something like "is this correct"
|
# ? Nov 13, 2017 17:40 |
|
cinci zoo sniper posted:are you stupid, since when a genuine "by the way i wonder if" is a concern? in terrible programmer of all places? did you break out of your containment greythreads? the secret is that ctps turned into a greythread a long time ago
|
# ? Nov 13, 2017 17:44 |
|
gonadic io posted:terrible hobby programmer status: Does anybody else tend to flip stuff like this around so it's all "SYMBOL_*" instead of "*_SYMBOL"?
|
# ? Nov 13, 2017 17:44 |
carry on then posted:i don't understand why people ask questions and then argue with every answer but maybe it's cause i'm a tp i just have a weird rear end situations at work and asking specifically about them is not possible whereas asking generally end up meeting "just read xml from sql" with "im sorry it's actually a malformed json on mongo", im sorry. besides i did agree with a fair share of things, just wasn't convinced instantly, in general and because i actually have reasons to post here unlike half of the people with impostor syndrome
|
|
# ? Nov 13, 2017 17:46 |
|
CPColin posted:Does anybody else tend to flip stuff like this around so it's all "SYMBOL_*" instead of "*_SYMBOL"? it is slightly more pleasing to the tisims i guess. but then you'd have to line up the rest of the line so that everything after that lines up too
|
# ? Nov 13, 2017 17:46 |
|
cinci zoo sniper posted:i actually have reasons to post here unlike half of the people with impostor syndrome Are you suggesting that we're not all terrible programmers here!?
|
# ? Nov 13, 2017 17:53 |
|
cinci zoo sniper posted:i actually have reasons to post here unlike half of the people with impostor syndrome new thread title please
|
# ? Nov 13, 2017 17:55 |
|
InfrastructureWeek posted:i'm the terrible python programmer using locals() and isinstance() and concerned about if vs elif performance e: isinstance is ok tho Mr SuperAwesome fucked around with this message at 18:05 on Nov 13, 2017 |
# ? Nov 13, 2017 18:02 |
|
ultravoices posted:python raises exceptions internally for everything, I wouldn't worry about the performance too much & the hit only comes when you hit the except portion of the block. agreedo, dont bother optimizing until a) you know you need it and b) you can prove you need it with real data from prod if you can't be bothered to get the data to prove you need it, you don't need it and are just speculating i run into this a bunch with people saying "let's use flashy new service and write a new bunch of poo poo because postgres is slow!!!" and they have no proof at all, invariably gently caress things up and write terrible code and its pretty dumb. (and postgres isn't slow according to the people i asked about the numbers, not me because i am lazy)
|
# ? Nov 13, 2017 18:04 |
|
CPColin posted:Are you suggesting that we're not all terrible programmers here!? Mr SuperAwesome posted:(and postgres isn't slow according to the people i asked about the numbers, not me because i am lazy)
|
# ? Nov 13, 2017 18:05 |
|
according to our numbers guy postgres is actually faster than redis which is kinda surprising but w/e
|
# ? Nov 13, 2017 18:08 |
im sorry my unamerican curiosity without being balls deep into the subject matter has stirred such controversy in thread about asking questions, i should have known better than doing just that
|
|
# ? Nov 13, 2017 18:08 |
Mr SuperAwesome posted:according to our numbers guy postgres is actually faster than redis which is kinda surprising but w/e last job postgres ran our bi for 50+ financial "markets" and it was ok. it only couldn't do real time (duh, not at that config), and becoming friends with power bi (which crashed instantly on connection attempt, invariably)
|
|
# ? Nov 13, 2017 18:11 |
|
cinci zoo sniper posted:im sorry my unamerican curiosity without being balls deep into the subject matter has stirred such controversy in thread about asking questions, i should have known better than doing just that
|
# ? Nov 13, 2017 18:13 |
|
cinci zoo sniper posted:i just have a weird rear end situations at work and asking specifically about them is not possible whereas asking generally end up meeting "just read xml from sql" with "im sorry it's actually a malformed json on mongo", im sorry. besides i did agree with a fair share of things, just wasn't convinced instantly, in general and because i actually have reasons to post here unlike half of the people with impostor syndrome i wasn't referring to you it's just something i've noticed lately
|
# ? Nov 13, 2017 18:22 |
|
carry on then posted:i wasn't referring to you it's just something i've noticed lately yeah me neither, sorry. i presumed we were talking about some stack overflow question. honestly i haven't even been reading this python poo poo because i could not care less.
|
# ? Nov 13, 2017 18:24 |
|
"An incorrect but fast program is infinitely slow"
|
# ? Nov 13, 2017 18:28 |
|
Mr SuperAwesome posted:according to our numbers guy postgres is actually faster than redis which is kinda surprising but w/e that is surprising, I'm curious what ops it's faster on
|
# ? Nov 13, 2017 18:37 |
|
SQL code:
|
# ? Nov 13, 2017 18:42 |
|
daylight savings time is not a thing
|
# ? Nov 13, 2017 18:51 |
|
wait why is "created by" using MAX?
|
# ? Nov 13, 2017 18:52 |
|
if you store timestamps in anything other than utc then u hosed up son
|
# ? Nov 13, 2017 18:54 |
|
they are UTC, but he's calculating the returned local time based off a timezone offset, instead of using timezones
|
# ? Nov 13, 2017 19:01 |
|
cinci zoo sniper posted:the problems is i have hundreds of thousands of multi-megabyte jsons as a result of broken xml-to-json conversion by our idiot it that ends up spitting lists for multiple arrays, dictionaries for single arrays, and empty or missing elements for when there is no data. i would very much like to do like you say, but that does not appear to be possible within reason btw the usual "convention" to work with json that you don't have much control over is to wrap non-lists into a list. Python code:
it's stuff like this that shows that json is not a very good format.
|
# ? Nov 13, 2017 19:26 |
|
json is absolutely terrible for every use case and the fact that it's popular just goes to show how terrible programmers really are
|
# ? Nov 13, 2017 19:27 |
|
|
# ? Jun 9, 2024 02:57 |
Symbolic Butt posted:btw the usual "convention" to work with json that you don't have much control over is to wrap non-lists into a list.
|
|
# ? Nov 13, 2017 19:32 |