« first day (4541 days earlier)      last day (390 days later) » 

7:43 AM
@roganjosh pours two fingers worth of booze So lemme tell ya...
We've basically got two problems: A) We're not a software shop, we're domain support; all the devops and software dev and research we do is incidental. B) Our environment is LTS aka, like, really ancient; it's not just Python that is old here, the JVM we run is bloodless edge, libc is Arthurian, and so on.
As a result, much of our software is rather brittle with many worst-practices and dependency management is next to impossible. In many cases only the author is qualified to say how a piece of software works, and if any dependency gets updated it has a huge ripple effect because we go from '89 Zombie Edition straight to '95 Romero Style.
Python works so well for us because dependencies come directly via pypi, not an LTS yum vault maintained by etheral spirits of yore.
FWIW, I think Rust with Cargo does have some niche here to fill but we don't have the training capacities yet. Python still wins there simply because it is so much easier to grok.
 
7:58 AM
That's super-interesting insight
I deleted my original response about microservices because now I realise they basically become the problem. "Oh, how wonderful that you can have collaborators from different countries all building their own, self-contained systems". I guess I drank more than two fingers when I was imagining how that plays out in a single unit
It sounds, though, like the ideal case for docker?
Although, don't ever let Snyk get onto an out-of-date image if you're pinning things. That's enough to give you a heart attack
 
Hm, I'm 50/50 for containers. Very nice for self-contained apps, so-so for services that need to quack with each other and share dependencies.
We do look into putting more services into containers, but it's some infrastructure investment that needs to happen and often VMs just work well enough.
 
I see the conundrum. I went RESTful for my services built in other languages, and then I ended up having to make them throw a 418 error because different libraries moved at different speeds and nothing can talk to each other. Then it ended up being to distribute an executable JAR with each release because nothing lined up
 
 
2 hours later…
9:52 AM
@MisterMiyagi two fingers like = or like ||?
 
Let me quickly try both...
 
 
7 hours later…
4:35 PM
Hi guys
I know this is a weird requirement, but I need a string that when passed to ast.literal_eval will throw an Synatx or ValueError, but when calling .split(",") on that string will give a list. I'm not sure it can be done and god don't ask me why I need this, it's a mess but I do need it and there is no time to do XY analysis
ah nvm got it "'500,500'"
puh
 
4:56 PM
That doesn't throw any error for me. It becomes a string literal. If I remove the single quotes it becomes a tuple, as I would expect
 
Don't question it, just accept the problem as solved
 
5:12 PM
@roganjosh yeah, that is what should happen. A tuple would be bad
@Aran-Fey Yeah, last minute deadlines no time to do things right
@roganjosh it was error or become a string I forgot to mention that :D
 
5:36 PM
any elegant way to write something that would behave like: if 'a' or 'b' in string1 or string2:?
the only way I've gotten it to work is if ("a" in str1 or "b" in str1) or ("a" in str2 or "b" in str2):, but it doesn't look very nice
 
@shintuku if any(c in s for c in ['a', 'b'] for s in [s1, s2])
 
5:51 PM
that's shorter, thanks!
 
6:11 PM
am really starting to appreciate that formulation, it's nice for bigger lists
 
 
1 hour later…
7:27 PM
lst = [[card["cardId"], target, container, count_handler(card, target, container)]
       for card in detail_res["result"]
       for target in ["\(", "\)"]
       for container in ["Front", "Back", "Text", "Extra"]
       if count_handler(card, target, container) > 0]
any way to avoid calling count_handler twice?
 
Walrus operator or rewrite it as a loop with append()
 
7:43 PM
didn't know about the walrus operator, cool thanks!
 

« first day (4541 days earlier)      last day (390 days later) »