1.
 
1 point by hoistbypetard 3 days, 21 hours ago | discuss | on: Ultimate Setup for Your Next Python Project
You might be interested in adapting this template into a cookiecutter template[1]. That's my favorite way to start a new project, by far. This[2] is my current favorite one for new python projects. [1](https://cookiecutter.readthedocs.io/en/latest/) [2](https://github.com/wemake-services/wemake-python-package)
2.
 
-1 points by admin123 1 week, 4 days ago | discuss | on: Programming language of 2019? Python beaten by trusty old C
231
3.
 
1 point by kas 2 weeks ago | discuss | parent | on: How to Read a File in Python, Write to, plus Append, to a File
(It didn't, damn!)
4.
 
1 point by kas 2 weeks ago | 1 comment | on: How to Read a File in Python, Write to, plus Append, to a File
In an article that talks about handling files, I feel that `pathlib` should have been mentioned: import pathlib path = pathlib.Path('/path/to/file') with path.open('w') as fptr: print('oh, hai!', file=fptr) (I wonder if identing the block above renders the block as a code block…)
5.
 
2 points by twillin 3 weeks ago | discuss | on: Social Networks
Possible, yes. However you may decide that adding more technologies for specific parts of the application result in better usage of resources (time, money, etc). ex1: You could build your frontend using Django's rendering framework, but you may decide that it would be better to use a different rendering framework or even an api and separate frontend. ex2: You could store all your user-uploaded files on disk with Django, or you may opt to use an external service like AWS S3 or GCP GSB for those files.
6.
 
2 points by mumi 3 weeks, 2 days ago | discuss | on: Social Networks
I think there's a need for other technologies as well.
7.
 
2 points by epicserve 1 month ago | discuss | on: Kite, Now for Spyder IDE
So what is the catch? Why is it free? How are they able to pay for all their developers? https://kite.com/careers/ It does say, "Kite runs locally. Your code is private." However, I'm still left wondering how they are paying for their developers. My guess is that they're selling analytics or they just have a bunch of investors and are trying to build a team to pivot eventually and do something else that makes money eventually.
8.
 
2 points by kas 1 month, 2 weeks ago | discuss | parent | on: A powerful modal editor written in python.
Thanks! I didn't look in the source code, but I _did_ look in the documentation and I didn't find anything (I can't be absolutely sure I didn't overlook it, though). (Shift|Ctrl)-Esc is not exactly intuitive. Neither is my current editor's (jed) exit combo, ^X^C, but at least it's documented.
9.
 
3 points by rjmorris 1 month, 2 weeks ago | 1 comment | parent | on: A powerful modal editor written in python.
LOL. If you're still stuck inside your vy window, I found the key combo in the source code: Shift-Esc to quit or Ctrl-Esc to save and quit.
10.
 
1 point by kas 1 month, 2 weeks ago | 2 comments | on: A powerful modal editor written in python.
So, how do you exit this thing? Asking for a friend.
11.
 
1 point by intrepidhero 1¬†month, 2¬†weeks ago | discuss | on: uuid ‚ÄĒ UUID objects according to RFC 4122 ‚ÄĒ Python 3.8.0 documentation
Here's a question (maybe a dumb one) for the python crowd: why should I use a dedicated uuid algorithm versus `id(myObj)`?
12.
 
1 point by kas 1 month, 3 weeks ago | discuss | on: Thermal testing Raspberry Pi 4
Excuse me, but how is this relevant for Pythonic News? The word ‚Äėpython‚Äô does not appear even once in the entire article and the package `stress-ng` does not list python as a dependency. If you want positive karma, please post at Lobsters or HN instead.
13.
 
1 point by abrookins 1 month, 3 weeks ago | discuss | parent | on: New Book: The Temple of Django Database Performance
3.8 months - that's a fresh baby! :) Ours just turned six months and decided to get up at 4 am today, as usual. Thanks for buying the book! Agreed on there not being much written on the topic -- and in general, most programming books I read seem to be either too basic, or else just contain high-level overviews of advanced topics. There must be a good reason this happens to books, but whatever it is, I'd like to address it by writing focused books on advanced topics. Anyway, thank you for the feedback! I questioned putting the section on New Relic in the book, and I'm sure you aren't alone in being put off by it, as it's literally the first thing in the book. In the future I'd like to at least add some comparisons with a similar third-party service (DataDog). And maybe someone will point me at a secure method of doing this kind of low-level tracing/performance monitoring in production that is self-hosted. I hope you do check out the indexing section. If you haven't done much indexing with your models, then there's some great stuff in the chapter.
14.
 
1 point by bithive 1 month, 3 weeks ago | 1 comment | parent | on: New Book: The Temple of Django Database Performance
I bought your book yesterday, thanks for the coupon! There is not much written about the topic, at least I hadn't found much I understood. Our baby was born 3.8 Month ago and decided that this night no one would get much sleep. Writing a book in this time well I imagen it challenging. The section about new relic put me off a bit. But maybe it's worth a look. I don't like 3rd party services. But that's just me. I hope I find some time at work to read the next chapter. Sounds promising. Never indexed any of my models...
15.
 
3 points by abrookins 1 month, 3 weeks ago | 2 comments | parent | on: New Book: The Temple of Django Database Performance
Harder than I anticipated! At the same time, I was able to set my own writing schedule. I originally planned to publish the book during the summer, but decided to take three months off after our baby was born, which ended up moving the publication date later in the year. The entire project would have been a lot less stressful if I had simply told no one that I was working on it. However, as soon as I began writing I told everyone I knew about the book and the date that I anticipated publishing it. Then I took pre-orders based on that date. Next time, I will probably keep the project private longer. Or at the very least, avoid taking pre-orders and instead sell ‚Äúbeta‚ÄĚ access with a very loose publication date estimate.
16.
 
1 point by bithive 1 month, 3 weeks ago | 3 comments | parent | on: New Book: The Temple of Django Database Performance
Hi, I hope your family is well! How was writing a book under this circumstances.
17.
 
2 points by abrookins 1 month, 3 weeks ago | 4 comments | on: New Book: The Temple of Django Database Performance
Happy to answer any questions about the book, or about the process of writing a technical book! Summary version: it's a slog. And if cost is an issue for you, take 40% off with this coupon: 4pythonsc
18.
 
2 points by intrepidhero 1 month, 4 weeks ago | discuss | on: Raise Better Exceptions in Python
Good point and well made. Does anyone have a good reference for best practices for using exceptions? I feel like usage in the wild, at least in my code base, is kind of all over the map. Sometimes they mean the program dies, sometimes they are more like a glorified return code. Sometimes they are base classes and sometimes subclasses. You can certainly do lots of cool things with them. I'd love to see a well reasoned treatment of how they *should* be used.
19.
 
-1 points by huynh 2 months ago | discuss | parent | on: Flutter open-source
hi you
20.
 
-1 points by huynh 2 months ago | 1 comment | parent | on: Flutter open-source
dumoa
21.
 
-1 points by huynh 2 months ago | discuss | parent | on: Flutter open-source
dumoa
22.
 
-1 points by huynh 2 months ago | discuss | parent | on: Flutter open-source
dumoa
23.
 
2 points by kas 2 months ago | 3 comments | parent | on: Flutter open-source
ūüĎć
24.
 
1 point by sebst 2 months ago | 5 comments | parent | on: Flutter open-source
I will implement a flag button soon
25.
 
-1 points by kas 2 months ago | 6 comments | parent | on: Flutter open-source
Fair enough, but how do we flag stories that are off-topic or spam (like the Flutter thing that started this thread), then?
26.
 
-1 points by sebst 2 months ago | 7 comments | parent | on: Flutter open-source
The down-voting arrows appear on comments only, not on stories. I need to implement a flagging mechanism to mark spammy or otherwise irrelevant submissions. So far, you all played fair pretty much all of the time. Thank you so much for that!
27.
 
4 points by kas 2 months ago | 8 comments | parent | on: Flutter open-source
And just as important: How can we report spammy or off-topic links here? Does it take a certain amount of karma before a down-voting arrow appears?
28.
 
4 points by kas 2 months ago | 9 comments | on: Flutter open-source
As one who doesn't know what Flutter is, I have to ask: How is this relevant to the Python community? When I visit the MS Github repo, upwards of 99% of the codebase is Dart. How does Python get into it, if at all?
29.
 
1 point by epicserve 2 months ago | discuss | on: Seeking Developers for Paid Contract Improving Pip
I'm guessing this is to add pipenv type functionality. I for one would welcome a fast and stable competitor to pipenv!
30.
 
1 point by kas 2 months ago | discuss | on: Kore4 and Python
I can't wait to try this out. I tried building Kore3 from AUR, but didn't succeed ‚Äď perhaps because of ArchLinux' recent transition from Python v3.7 to 3.8? Has anyone else tried building it on Arch?
More