« first day (2125 days earlier)      last day (2821 days later) » 

3:00 PM
It talks to SO using autobahn.asyncio.websocket and asyncio contains the same letters as "aio" so I'm going to say "aio".
 
After vacation meeting or just a standard "middle of the week cause we're Agile" meeting @idjaw
 
Thing is, I'm using a Beaglebone Black, which has a quad core 900Mhz processor, so I really wanted to slip some stuff.
(Kevin did suggest to use the Multiprocessing module)
 
8 mins ago, by Kevin
@Kelthar I believe the typical approach is to use the multiprocessing module, which AFAIK supports multiple cores and interprocess communication. I don't know any details about the specifics, however.
 
I wish I could speak for everyone, but I don't.
 
Oh, all. Nevermind
 
3:01 PM
@JGreenwell daily stand up that morphed in to a non-daily discussion about things that could have been discussed outside of that meeting
 
I could put "lord high orator of rooms/6" on my business cards, then.
 
I wish I could speak for everyone, but I can't, so I do anyway.
 
:P
 
Anyway. I'm pretty sure threading doesn't use multiple cores because mumble Global Interpreter Lock mumble handwave.
 
"daily stand-up" always equates to coffee break to me - with donuts if one is lucky
 
3:02 PM
^^ yup pretty much that
 
otherwise they are just a waste of time
 
I'm right now balancing the overdose of coffee with water
so I can start my next round of coffee overdose after lunch
 
100% coffee is balance.
 
we had a sysadmin that we would judge the uselessness of the meeting by how many cups (those little Styrofoam ones) of coffee he had
anything over 12 was Fubar
 
If you have enough coffee, you can escape from a meeting by vibrating your molecules so that you pass through solid matter, like The Flash.
 
3:05 PM
People might say "How can 100% coffee : 0% blood be balanced Fizzy!?" but I say "Think of it as 50% coffee : 50% coffee..."
 
A balanced diet is one cup of coffee in each hand.
8
 
I really need to start a Python group here (too many beginners or non-developers).
 
I can never get my meatspace friends interested in learning programming. Which is weird because half of them are more tech-savvy than I am.
 
@Kelthar My two cents - if you're starting with python just use multiprocessing.
 
One possibility is that they already know how to program and thus have no interest in my offer of introductory tutoring. "You think I set up a CS server without picking up a thing or two about C?", they hypothetically think.
 
3:12 PM
I'm browsing other programming forums because SO doesn't have an answer for me. It's scary. Help.
 
Most of the meatspace friends that I see on a regular basis are not tech-savvy. All the ones that are moved away. So I only see them maybe once/twice a year at best.
 
... Or whatever you need to learn in order to set up a CS server.
 
@IntrepidBrit We, I'm taking a look at it, thanks
 
....there are other programming fora?
 
mine all do some form of JS or PHP for web or C# (really ASP for web, I wouldn't mind if they actually knew C# well - its kinda cool) so more students and peers
 
3:13 PM
*yes, I'm....
 
You can press 'up' to edit your old messages, fyi :)
 
That thread manages to have an impressive amount of messages for saying literally nothing.
 
woah.
 
@IntrepidBrit Well, within a certain time limit. I think it's 2 minutes :)
 
plus if I invited them, they would likely turn it into tabletop gaming group
 
3:14 PM
@WayneWerner You're not wrong :)
 
@Kelthar yes, multiprocessing does take advantage of multiple cores and it has roughly the same API as Threading. It is slower on the uptake, because it has to start processes, rather than just threads, but if your goal is just 100% CPU usage on all cores, then yeah, multiprocessing will fit the bill.
 
@Kelthar (However, I would be personally tempted to create two entirely separate programs. One, the actual processing process which can run standalone sans GUI and then create a second program that can interrogate the first program to display pretty pictures. Just because it's more "linuxy" and plays nicely with cron)
 
There are queues and pipes and whatnot that you can use. Or, you could do something like that ^^^
if you're familiar with the reactor pattern, you could consider creating a server that has N workers (presumably 4, since that's the number of cores you have). The server just waits for tasks to come in and then distributes it to the workers. Or potentially a library like celery already does that
Confession: I've no clue what celery actually does, I've just read the words 'celery', and 'tasks', and 'queues', and 'workers' together, I haven't actually done anything with it.
 
@IntrepidBrit Right now I have two separate programs, the GUI, and a "Listener", which I used to interact with by sending terminal commands
 
Then again, I'm a huge fan of trying to make simple things that do what compl(ex|icated) things do that work for a very specific use-case, so I actually grok what the more complex things are doing
 
3:21 PM
Thing is I need to be able to send commands from the GUI, at a press of a button
 
@WayneWerner I quite like using dispy for that on my isolated machines. Although after farting around with RabbitMQ, I might be slowly converting...
 
e.g. Don't understand how http works yet? Create a socket server that listens on port 80 and returns b'HTTP/1.1 OK\nContent-Type: text/html\nContent-Length: 43\n\n<html><body><h1>Whaaaaat</h1></body></html>'
Now you do. And you've created the world's stupidest webserver (and also probably the least-compliant)
\o/
 
Well, I've never handled with "pipes", "queues" or multiprocessing/multithreading, so which of the mentioned solutions would you think that would be best/easiest to implement? (I was considering going with multiprocessing)
 
@Kelthar There's a number of ways you can achieve that. Depending on how the existing code works: you could just send a simple command to your existing command line process OR you could completely overkill and use an AMQP.
 
@IntrepidBrit have you considered zeromq? It depends on what your needs are, of course, but zmq is definitely faster (because it doesn't bother to implement a lot of the things that amq/rabbit mq is interested in)
 
3:24 PM
Disclaimer: many more options available to you than I specified above
@WayneWerner I've not. I just took a look at RabbitMQ and liked the cut of their jib.
 
Atm, I just need to send a command from the GUI to start a function in the other program
that's all, from the GUI, calling a function of the other program
 
@Kelthar It's really really easy to create a quick thing with multiprocessing (or threading, for that matter, but then there's the GIL, so you're only going to bypass IO limitations, not CPU limitations)
Is the other program separate? If so, why? Is the function long running?
 
@Kelthar multiprocessing is easiest, in my opinion.
 
Cause, my first choice would be to just use the event loop in whatever GUI library I was using
if it's a long running function, however, then I might not want to do that.
but if it's just calling a subprocess...
 
If it's not going to be the only interface to the program, then it makes sense to keep it separate.
 
3:29 PM
then I would do that, because you can Popen (or maybe run? That's fairly new since I've done any subprocessing) within your event loop, and later come back and check the progress (again, within the event loop)
Kevin is totally right about that, though.
 
I'm using a Beaglebone Black (which has a quadcore 900Mhz CPU, low freq per core), and I have a program (A) which will be checking the GPIO's, and the GUI. A will be writing stuff to a mysql database. the GUI will be reading from the database, plotting a graph and managing other functions. The low frequency per core is what makes me think I should split the efforts.
 
Out of curiosity, what Python-based GUIs have any of you made in a professional environment? I haven't come across a situation in my professional path so far where I was in a situation to make one. Just curious to know what kind of projects you guys worked one that required one?
 
I'm doing something for an internship, but I chose Qt (Pyqt) for it's widespread use, and OS compatibility
lot's of online resources for it
 
Most of the examples that I've come across for people have been scientific settings, where science guys need an interface to science tools
And GUIs are better than command lines if you don't want to remember invocations & what-not
 
If this command is just to start it, perhaps it should just be a subprocess to interface with the OS's service manager?
 
3:33 PM
@WayneWerner this is my case xD, I'm basically making a program to interact with a muon telescope
 
Nice ;)
Yeah, I think I would probably go with two processes. I suspect I'd do some sockets for IPC.
 
That's cool!
 
@WayneWerner you mean start it/kill it, according to my needs? I would rather not, because the library I'm using for (A) requires sudo
 
I run into more web-based GUIs which I just need to interface with in Python to do actual calculations/report results or the use of C#/Java for GUI and same for Python - but I could see someone making a quick Python based GUI for some lab or experiment
 
@WayneWerner so multiprocessing, you say?
 
3:36 PM
why would it require sudo for a library - that can be some bad ju-ju later
 
GPIO
GPIO libs typically require root privileges AFAIK
 
Low level ports?
 
I didn't say there weren't reasons, was actually asking why he needed
I see a lot of overkill in academic programming that bites people later so I just have a habit of cautioning people whenever I hear certain phrases
 
I'm using this "Adafruit" library to interact the GPIO... It has an "interrupt" function that runs whenever a rising-edge is caught on the GPIO
 
One way around the sudo requirement is to have a gpio daemon running all the time, and you execute bash commands to get it to bitbang
 
3:40 PM
@Kelthar I would certainly echo @JGreenwell's caution - actually, I would probably write a small wrapper around the GPIO portion of the code that runs exclusively as root and publishes the events - maybe over zmq or some other pub/sub method
So you have something like this (user:root (gpio program --)--)-- 1-way* sockets --> (user: anyone (program that does some DB writing))
 
thanks, I will probably look for a solution in the future, but not now (I won't have to change much though). This Adafruit library (python) is a set of bindings for a C library from the board publisher. From what I saw, it's the implementation in the Adafruit library that caused this root access need. I might try to iron out this issue in the future, but I really don't want to delve in all the more technical aspects of the C library and C-python bindings (never worked with language interfaces)
 
FWIW, I use pigpio for the Pi
 
wim
damn, I just got schooled by a 400 rep user
 
@wim :D
 
3:56 PM
hrmph :| guys serious question. What do you do if you have some devs on your teams who do not exclusively work on your project, nor do they "favor" working on it? Eg, they might be working on three different code bases, and prioritize every other one over the issues in yours
 
@wim I reckon we should close that question as non-repro until / unless we get a response from the OP. FWIW, Karin's been a member longer that I have, but she hasn't been very active.
 
bribe them with candy (or coffee and snacks)
 
@corvid Fix the code myself?
make the code awesome so they do want to work on it?
failing that, @JGreenwell's idea ^^^
 
It's cheaper than hookers & blow. :)
 
Half day rbrb for all!
 
4:02 PM
@corvid, all depends on how the office runs/team mindset. If it were me, I'd do the pizza/beer thing and get people in and then do some pair programming with them. If there's a problem, people luuuuurve having a whinge when they pair program.
 
Have fun with the kitty cat Morgan.
 
that is seriously how I've handled it before - eventually discovered two of the devs were huge Whovians so switched to that common interest to get them to work on my stuff but coffee + snacks allowed me to find that out
 
@IntrepidBrit We always had a laugh fest. It helped that none of us actually worked on the original product, so there was always a, "LOLWUT" reaction when we came across any of the very, very, very many strange design decisions
 
can't reproduce & OP not responding stackoverflow.com/questions/38877777/…
 
I can imagine that also being effective
 
DSM
4:10 PM
@Ffisegydd: got a drive-by ping from you. 'sup?
Lunchtime cabbage for all.
 
@DSM Check or Cheque for the bits of paper that you give people to transfer money?
We were having another UK vs NA language discussion
 
DSM
Cheque. A check is a verification or a hard shove on the ice.
 
Agreed.
 
Definitely check. :P
 
Anyone know of a good dupe for stackoverflow.com/q/38878274/344286 ?
 
4:14 PM
Yesterday was the 16 year anniversary of the Joel Test
 
user559633
@idjaw End-user/non-technical client desktop application for simulating network traffic from an appliance device
 
Yesterday me and my boss and two of my coworkers got an email scheduling a phone meeting today with our boss' boss' boss. This morning we each individually discovered that what we originally read as "August 10" was actually "September 7". This seems like an odd mistake for four people to make independently of one another.
Theories:
- Hyperboss Prime has the power to edit emails that have already been delivered.
- Us email recipients have latent reality-bending powers and our distaste for phone meetings caused it to be pushed it back a month
 
@WayneWerner thing that annoys me is they say they're working on something. Then they later switch to something else without finishing it. Then never tell me.
 
user559633
@Kevin Outlook/Exchange?
 
Less fun theory: our boss came in yesterday and said "did you see the email about our phone meeting with boss^3 tomorrow?" and we just took their word for it that that was the proper date without actually reading the message all the way through.
@tristan Yeah.
 
user559633
4:28 PM
Yeah, you can recall/edit.
 
Is there any way to detect that this has occurred from the recipient's point of view?
 
user559633
As long as you stay inside the Microsoft ecosystem, assume Big Brother Party rules.
 
user559633
@Kevin did you save the original message and its headers?
 
Nope.
 
user559633
The meeting is on Sept 7 and has always been on Sept 7.
 
4:32 PM
Just like we've always been at war with Eurasia. nods sagely
Anyway, this is good news because now "configure $NEW_HIRE's computer so it's exactly like yours" is no longer a pressing priority. I will enjoy not doing that for the next couple of weeks.
 
what's the technical term for the way different programming languages choose to do certain things? For example, javascript might favor .forEach with a callback, where python prefers for i in iterator
 
We were mostly doing it to impress Great Grandboss, so now we've got breathing room
@corvid Functional vs, uh, Pythonal.
 
My theory: Boss^3 uses the Julian calendar, and scheduled the meeting for August 24 Julian, but originally accidentally subtracted 14 days instead of adding 14 days to convert to Gregorian. :)
 
user559633
@PM2Ring This is the most likely scenario.
 
I meant more in terms of, if you were saying "the [word here] of these two languages are different". Design Patterns?
 
user559633
4:37 PM
shittiness!
 
It's not impossible that he's been sustaining himself through underling life force since Roman times.
 
user559633
('approaches' is probably fine for general conversation)
 
hi guys
 
@corvid Try "paradigm"
The notion of programming paradigms is a way to classify programming languages according to the style of computer programming. Features of various programming languages determine which paradigms they belong to; as a result, some languages fall into only one paradigm, while others fall into multiple paradigms. Some paradigms are concerned primarily with implications for the execution model of the language, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Other paradigms are concerned primarily with the way that code is organized, such as grouping...
 
4:40 PM
@tristan you can send a recall request, but it doesn't do much other than tell the recipient that they would like to recall the email
 
user559633
@RobertGrant sing song tone not if you have the right permissions
 
Ah okay, well I've never seen those permissions :)
Generally I see it when it's HR staff making laughably obvious mistakes
 
@corvid I like tristan's answer. "Approach" is a pretty broad term, but you can add extra detail if you need it.What you're talking about is at a higher level than syntax, but at a lower level than design patterns.
 
user559633
And it's the user's choice to do with a for loop vs map
 
wim
@PM2Ring oh you are right, member for 4 years - and 0 questions
lurker
 
user559633
4:47 PM
love the "corrective" votes on this question: stackoverflow.com/questions/38877777/…
 
user559633
crap question with no context and +4
 
wim
shrugs user is active, edited post to mention they will add context as soon as they have the opportunity
whats the problem
 
user559633
...that it's a low quality question rocking +4 because other people gave it the thumbs down
 
user559633
<a class="vote-up-off" title="This question shows research effort; it is useful and clear">up vote</a>
 
wim
@PM2Ring you in Australia? where?
I'm from Melbourne
 
4:56 PM
@Kevin You receive a notification when an email is recalled
 
@wim The problem is that 3 people (so far) have posted wrong answers & the OP wasn't responding. So I figured it was better to put it on hold until we got some info to let us reproduce her problem.
I don't use PyCharm, but I had a feeling that the problem was IDE-related. If PyCharm reckons that code's erroneous then PyCharm needs fixing...
 
@wim I lived most of my life in Sydney (apart from 18 month in Darwin when I was young) but I've been living just north of Coffs Harbour for the last 6 years.
 
@corvid Sounds like your management/leadership has a problem with encouraging team communication
 
wim
I got tired of the govt trashing plans to improve the internet back home. Moved to chicago
Aus is not a great place to be if you want a career in the tech industry
 
5:06 PM
To be fair, there's significant overhead in flipping every byte upside down every time it enters or leaves the continent.
 
wim
Where are all the tech startups? Why, with so many bright people in OSS from oz, is Atlassian the only real success story ? it's sad
 
user559633
@corvid depends what you need from your coworkers and how it impacts your project. if it's a blocker for you, just communicate when you're stuck and don't worry about it too much
 
@tristan Makes sense. I tend to always resort to web-based GUIs. I never think Python-first when it comes to UI solutions.
 
I still boggle at execs and board members who demand web based UIs for stuff that will only be used in-house (even only within one or two lab locations)
...especially when the next think they start talking about is how information will be keep secure and confidential
 
@wim The current govt's attitude to internet modernisation is embarrassing. :( FWIW, I could get NBN if I moved into town, but out here it's hard enough to just get a decent ADSL line. And I don't even have one of them any more: I'm now on wireless. :)
 
5:15 PM
I worked on a C++ based GUI who's UI was driven web-based tools e.g. js, html...Actually to be precise, it used webkit.
Is a C++ based UI comparative to Python-based UI?
s/C++ based GUI/C++ desktop client/
 
yeah, with same caveats as always when comparing the two (Python can be easier where C++ can be faster, etc)
 
user559633
@idjaw I don't either (meaning thinking python-first for gui). I prefer web-based GUI because straightforward and not having to talk about local installs/deps
 
personally for desktop GUI I use C# 80%, Java 15%, Python 5% of the time - cause that's what I'm told to use :)
 
@idjaw I'd expect the C++ UI to be virtually the same performance-wise, since all the Python GUI frameworks are wrappers around compiled code. And of course Python tends to be much faster to develop & maintain.
 
user559633
user image
6
 
5:21 PM
But yeah, I must admit that doing Web-based UI stuff does have its benefits of portability & user familiarity. But you do have to deal with JS & CSS...
 
@tristan "why not just eat that third cake over there? It doesn't look too bad" "but if I eat that one, I won't get one of these cakes!"
 
no...the problem is, if you eat the third one, you will still end up getting one of those two cakes.
 
recbg
 
heh...too true tristan
 
did I miss the kitty cat?
 
5:25 PM
But even if you choose the third cake and get one of the first two, the chefs will be made aware of your preference and you'll push the Overton Window by some small amount, hopefully improving the quality of cake when they change the menu four years from now.
 
@PM2Ring True....but maybe it's my familiarity with the js & css pains (the devil you know :)) that I'm willing to deal with those than to deep dive in to Python for my UI. Especially considering how much of a niche use-case using Python-UI it might be.
 
must balance that against the risk of ending up with the second cake Kevin
 
plus you also might end up with one of those cakes AGAIN, and then have to wait another four years. It's happened before.
 
ofc there's an argument that the restaurant will go bankrupt and not even be in business four years from now if the Worst Cake is consistently served between then and now
 
user559633
@idjaw yeah the webkit html+js+css thing is mostly because interfaces are simple or just tables and easier for someone else to step in to maintain
 
5:27 PM
We must not allow the Worst Cake to get the nuclear launch codes. Sorry, I mean "to get reviewed by the famous food critic". This is a tricky extended metaphor.
4
 
user559633
Aww yeah, two slots on the starboard are taken up by
- me fixing a comic
- me hotlinking a comic
 
I would use Python UI more - once you get a solid set of templates for basic design all UI programming is influenced by what you are comfortable with for the backend - and besides that my GUIs are usually not that complicated on graphic-wise (actually most complicated part is graph creation which I always do with Python or C# from Python processed data)
I just need to convince the board to invest more in Python and Linux
grumble grumble save money in long run grumble grumble
 
user559633
Convince them to get VxWorks so you can business in real time
 
I always found it interesting that we have come this far without there ever (unless there was an attempt I'd like to read about it) being a competing language to js.
 
vbscript & perlscript
Flash
there are more
 
5:32 PM
kevinscript
 
user559633
activex, webassembly, dart...
 
brainfuck
 
user559633
fuckbrains aka js
 
I might have lost the thread of the discussion
 
user559633
yeah i just sort of spitball
 
5:33 PM
but activex is exclusive to IE browsers, no? and Flash requires a third party install. I was more referring to something that is native to all browsers.
like js
 
user559633
class X extends Y yay export hold on now export default X oh no :(
 
Flash was native during certain points - shockwave Flash games of the 90s
then Apple happened
 
put it in a reservation?
 
wim
 
5:35 PM
The delightful irony - when I hit the phrase "popup ads that you really didn't want to see anyway", wired popped up their anti-anti popup blocker
 
user559633
irony: there's a technology magazine named "wired" on the internet
 
user559633
irony: a thousand spoons when all you need is a fife
 
user559633
irony: it's whatever i want it to be during the course of conversation
 
> pay $1 per week for an ad-free version of WIRED.
 
I also remember Java applets vs. JS being a big debate (or flame war) at one point
 
5:37 PM
I guarantee that I do not bring $52/yr into your ad revenue, Wired
 
wim
java applets. yech...
 
I can find a better article if you want :P ;)
 
Also, I can just use Lynx and read your article ad free anyway, idiots >.<
 
granted that may be because I was working in Java at that point and so have a biased perspective
 
user559633
or just highlight the modal in devtools and X it
 
wim
5:38 PM
A: knock knock
B: who's there?
(...long pause..)
A: ....java
 
^^ You're missing a few prompts for an install because the version is out of date
 
user559633
A: knock knock
B: who's there?
(...long pause..)
A: p
B: ....next
A: y
 
The idea of Java applets isn't bad, we just didn't need that in the 90's.
 
user559633
at least now in the mid 2010s, we've learned that clients want multi megabyte payloads of javascript that then have to make a roundtrip to the server to get content
 
Flash was still "Good enough"
 
5:41 PM
Hey, HTTP 2 has PUSH_PROMISE...
 
If by "client" you mean "person funding your website", yes, advertisers do want it to take forever for everything but the ads to load so the sheep spend more time looking at the ads.
 
user559633
"but you can render it on the server AND deliver multi-megabyte"
 
I'm trying to think of a really good use case for 99% of the reasons we had flash and java applets
 
user559633
ben and jerry's ice cream flash games, my dude
 
have you guys seen "The Lobster"? It's bretty gud.
 
5:42 PM
@WayneWerner Videos on the internet.
 
I already said games
 
@QuestionC We downloaded ours. And if you don't want to keep them on your machine, just put them in a temporary folder
 
@WayneWerner Strongbad Email!
 
the only reason that's not good is if you believe that as creator of a thing, you're Sonny Bono god, and nobody should be allowed to use it in a way that you dislike
or the company that owns your soul the copyright, for the next 4 billion years (that's limited time, right?)
 
but almost everything like java applets, activeX, still required you to dev in javascript as well
or am I off my rocker? or more off than usual.
 
user559633
5:44 PM
user image
3
 
@QuestionC Arguably it wasn't that Flash or Java themselves were necessary. If you had some other tool that let people easily build interactive animations that people could then play on their computer, that would also suffice. I put that into the same category as internet videos...
 
wim
are y'all forgetting that flash was for vector drawings
 
I mean, Steam has kind of shown us that that's not (strictly speaking) necessary.
 
wim
that anyone tried to use it for video (youtube??) or even full blown websites is an abomination
 
user559633
for vector drawings and storing user metadata outside of a place that most users knew how to clear, and/or if you had users with flash that didn't support web video and you didn't want to allow downloading the video in an obvious way
 
5:48 PM
Flash and Java applets just happened to be useful mechanisms to do what we actually wanted to do
 
@idjaw applets just required a plug-in but had horrible support so sometimes JS was included to check if IE was used or support didn't exist for some other reason
 
@tristan Who else read that in a Strongbad voice?
 
user559633
at least questionC
 
user559633
I want the mail carrier to show up and drop off my video game so I can stop pretending to be productive today
 
@JGreenwell Yeah. So, that was the thing I found interesting. That there was nothing at the level of js that actually was able to compete. For example, look at ruby vs python to throw a simple example up there. Unless, again, I'm forgetting something very fundamental here where those mentioned were actually doing everything js could.
 
5:51 PM
`sys.exit('Message')` vs `raise SystemExit('Message')` vs `raise RuntimeError('Message')`
Context: Something went wrong, I want to exit.
Thoughts?
 
most of the time I used applets was when developing company intranets so I could make certain assumptions and thereby not use JS - for instance. Even then we switch pretty quick to Flash/JS (with mod_perl and Template::Toolkit)
 
user559633
@HEADLESS_0NE os.system('sudo shutdown now')
 
@tristan ha. ha. ha.
 
Disregard, didn't realize sys.exit raises
 
wim
there was an article about the most amazing remote code exec hack in flash that was a great read
but I'm lacking the google-fu to find it again
 
5:53 PM
@HEADLESS_0NE use the first one
 
wim
because flash has had literally hundreds of security vulnerabilities. but this one was particularly interesting
 
user559633
@HEADLESS_0NE SystemExit is the most in-Python option and gives you a chance to catch it later if you want.
 
@HEADLESS_0NE aren't the first two basically aliases? The latter I would only do if something unrecoverable happened in a bad way
 
user559633
e.g. if you're writing tests to make sure that's the outcome
 
Someone was reviewing my code and suggested RuntimeError, which I'm not sure why.
 
user559633
5:54 PM
RuntimeError doesn't exit.
 
Perhaps it won't always be an exitable error-- could your code be reused in a context where they'd just catch it and handle it differently?
 
@tristan Since when?
 
Well, I guess you could do that with either.
 
user559633
@HEADLESS_0NE Since at least 2.7
 
wim
>>> import sys
>>> try:
...     sys.exit(1)
... except SystemExit:
...     print("oh no you don't...")
...
oh no you don't...
 
5:56 PM
Err, doesn't any unhandled exception exit?
 
user559633
It will bubble up and the interpreter can decide to sink if it wants.
 
@corvid somebody mentioned it the other day
 
user559633
raising the system exit gives you a pythonic way to get the exit reason if it's not just an int
 
In general I always raise in my code. I hardly ever use sys.exit.
 
yesterday, by Peter Varo
@Kevin's list.append(The Lobster) # I gave it a solid 6.9/10
@idjaw you must be a great role model for them
 
5:57 PM
@wim as an aside - also why you want to avoid except: pass, cause that also picks up fun things like KeyboardInterrupt
 
sorry, I read "I always raise my code" :(
 
@AndrasDeak I was just about to ask you to let me in on the joke. haha
 
@idjaw I don't get the ruby vs python reference btw. (esp. with web as RoR is used by a number of websites) :)
 
@AndrasDeak I always raze my code.
or -
I always braise my code
 
user559633
I don't always raise in my code, but when I do, it's because I know I'm not as smart as I sometimes trick myself into believing me am.
 
5:59 PM
@JGreenwell Oh....my usage of python and ruby is that you can pretty much say that both those languages can solve the same problems on the web, and ultimately either language can get you to where you want to go. I don't think you can do everything js can on a browser using jave applets, for example?
 

« first day (2125 days earlier)      last day (2821 days later) »