Start Writing More Classes: http://lucumr.pocoo.org/2013/2/13/moar-classes/
HN discussion: https://news.ycombinator.com/item?id=5204967
HN user
Start Writing More Classes: http://lucumr.pocoo.org/2013/2/13/moar-classes/
HN discussion: https://news.ycombinator.com/item?id=5204967
The biggest objection to switching to 3 has been that library support hasn't been there. It's pretty clear that despite reservations about 3, the support is there now. Getting major libraries in the scientific community to focus attention at three can only be good for improvements in support, performance, and adoption.
For more information, the current discussion about a new release is at https://github.com/mitsuhiko/flask/issues/1575#issuecomment-...
Even sub-communites don't solve the problem. There are certain subreddits notorious for dogpiling on posts in other subreddits. The article mentions this indirectly by observing that what starts out on one platform can easily migrate across communities, even to communities you're not aware of.
There's a mismatch in scale: the number and diversity of members on platforms like Twitter is huge, but the ability to moderate is tiny. It would be interesting to see if a system could detect the dogpile effect, by looking at common phrases, checking if many users messaging one user all follow a common user, etc. and offer some sort of temporary relief until a controversy dies down. On the other hand, that's not actually solving the root of the problem.
Although that way may not be obvious at first unless you're Dutch.
There is one obvious way: strings are encoded to bytes, bytes are decoded to strings.
It's not replaced, both are perfectly valid. And this addition also exists in Python 2.
Getting rid of timezones is not as good an idea as you might first imagine. http://qntm.org/abolish
HgFlow already exists and is actively developed: https://bitbucket.org/yujiewu/hgflow/wiki/Home. It even goes above and beyond GitFlow and adds generalized streams and sub-streams. I've never had to use those extra features, but the core model works well.
People walk away from a game of Cards Against Humanity thinking that they’re hilarious.
Which people? My friends and I walk away from a game of Cards Against Humanity thinking we had a fun time coming up with stupid combinations for an hour. I can also turn the author's previous sentence around and state that there are probably many people that get too invested in elves and orcs as well.
... this passes once you’re more familiar with the language and are using it for real things
... a large enough subset of the community never reaches that stage
This is true about pretty much every programming language (and probably generalizable to most non-programming things too). The author just happened to apply it to Ruby and Haskell for some reason.
If there's a message such as "programmers should be more aware of the language's strengths and weaknesses and shouldn't feel overconfident", it's lost in the paragraphs of vague complaints.
This is being talked about now with [PEP 411 - Provisional packages in the Python standard library][1].
Yes, if reusable/sharable queries are something you want, then you don't really have a choice but to expose an API for creating and retrieving them. Not sure if you're trying to make some other point related to the `Accept:` header the parent comment was about.
A fair point. I was referring to the api being separate from the frontend, not what the api is returning. But I could see someone designing their application the way you describe.
A GET query is always a URI. Anyone can link to it.
Except this isn't really useful outside of bookmarks in a browser. Who would bookmark an API endpoint returning JSON? In code, it's just as easy to make a request with query parameters as it is with a post body.
#!/usr/bin/env python
import requests
requests.get('http://example.com/', params={'key': 'value'})
requests.post('http://example.com/', data={'key': 'value'})We recognize that it's gotten a bit out of control lately, hence the topic during the meeting. I think we ended up with some good guidelines for managing it.
Then edit your question to acknowledge the "duplicate" and clearly explain why your question is different. It will automatically go into a Reopen Queue where users will evaluate it and vote to reopen. The system's not perfect, so if it still doesn't get reopened, open a discussion on meta.
Most comments should end up as an edit to the question or answer, clarifying some point, at which point they can be removed. The Question and Answer are the important things on Stack Overflow, not the communication that went into creating and tuning them.
The remaining comments are just fluff, such as "thanks", which can more appropriately (for the site) be expressed as an upvote or accept. Or they're asking a new question, in which case the parent's comment applies.
The answer was not closed, the question was. This is not a bad thing, as it funnels everything towards one canonical location.
They don't have much value to Stack Overflow, obviously, otherwise they would have remained opened and been voted up on Stack Overflow.
Honest mistake on my part, thanks for linking it.
That warning is old. Most popular Flask extensions work well with Python 3 now. I've recently written a large Flask application targeted at Python 3 with no issues. If you have problems with Python 3 compatibility, report the issue, the maintainers are good about fixing these things.
To solve this, I have a custom Celery instance that wraps each task in my flask app's context. So you can treat celery tasks as just another request.
Thanks for finding this. Calomel's website [1] gives much more information about how the scoring is done as well as security in general; very interesting.
His statement addresses your complaint.
> There is a social element to this bug report as well, of course. It served for many as a sort of declaration of intent. But it's better for us to focus our intent on excellence in our own right, rather than our impact on someone else's product.
So you're right, and he agrees, Ubuntu should be focused on being the best it can, rather than trying to "fight" the competition.
Six years ago, I felt similar to you coming out of high school. I had been programming for a long time, picking up whatever interested me. I was going to UCSD for Computer Science, and I already knew so much. There are a few points I'd like you to consider, though.
I didn't really know what to expect other than, "UCSD's CS program is ranked 6th in the nation." So I considered it an opportunity to learn even more, not just to prove what I already know. I looked forward to a fresh start in a new area, learning from people who obviously were very intelligent.
When I first took mandatory introductory classes, I thought, "This is so easy, I've been doing this forever." In high school though, few shared my interests at all. Here, I could make a study group and tutor others, and as some saying goes, "You can learn more by teaching."
When I finally got to upper-division classes, I saw yet another opportunity for growth. I knew what I wanted to focus on, but I also knew that I was smart enough to pick up something I was interested in without taking a class, if I put my mind to it. So I branched out, chose some classes that sounded interesting, even if they weren't directly related to my path. Machine vision, computer architecture, etc. Each one ended up teaching me new ways of looking at problems that I would never have considered if I hadn't taken that class.
University also provided me opportunities to branch out in another important area, social interaction. I joined the Ultimate Frisbee team, giving me a physical activity, new friends, and access to parties, things I never even tried in high school. I joined the student council (as the web designer) and gained insight into how bureaucracy worked.
My advice to you is this. Treat everything as an opportunity, perhaps a challenge to do something difficult, or something new, or something different. Working in the real world, I can say it would be much harder to find these opportunities with a full time job. University will prepare you for the real world in ways you would never expect, but only if you take an active role in that preparation.
Consider contributing your votes and comments to the Slant.co topic:
http://slant.co/topics/what-is-the-best-alternative-to-googl...
For those who missed out, Slant.co was posted on HN about a week ago and is for exactly this sort of thing.
The split second decision for me is, "Does it look really nice or does it look really plain/bad." If it's somewhere in between then it takes a bit longer to evaluate.
The "man on the street" has a kid, a potential scientist. But instead of fostering curiosity about the way things work, instead of promoting the use of logic to understand his surroundings, the parent teaches the child "the Bible says so, and that's enough." Now we have one less potential scientist.
Good point. I guess if order matters you can do everything as positional args, then order will be preserved.
Is the only difference from http://www.rainymood.com/ the lack of thunder?