1.
 
2 points by sebst 3 months, 2 weeks ago | 1 comment | on: Ask PN: does pythonic news index url for checking duplicate url
The github source of news.python.sc is up2date. I’d suggest to put an index on the url column in your database. That makes lookups pretty fast.
2.
 
2 points by sebst 7 months, 1 week ago | 1 comment | parent | on: Could Nim Replace Python?
No, I hope to add some features in the next time, but I’m a bit underwater with client projects at the moment
3.
 
2 points by sebst 7 months, 1 week ago | discuss | on: my faq
You can! Just put ‚ÄúAsk PN:‚ÄĚ in front of your submission and use the text field for whatever you like to ask!
4.
 
1 point by sebst 10 months ago | 5 comments | parent | on: Flutter open-source
I will implement a flag button soon
5.
 
-1 points by sebst 10 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!
6.
 
1 point by sebst 10 months, 4 weeks ago | discuss | parent | on: Ask PN: I want to get to know you
Is it also Python that you teach in class?
7.
 
3 points by sebst 10 months, 4 weeks ago | 1 comment | on: Ask PN: I want to get to know you
What a great idea! I'm Sebastian, living in Aachen, Germany. I also work with Python for about a decade now.
8.
 
1 point by sebst 11 months ago | discuss | parent | on: Ask PN: should i use instagram postgresql unique id generator technique for my project
Sure they could and the "you are not Facebook" claim is not meant to discourage anyone to work on ambitious projects. Technically speaking, most experience shows that there is such thing as premature optimization. Or, put in other words: Even if you expect enormous growth, start with a simple implementation. Even the biggest success stories did not come over night.
9.
 
1 point by sebst 11 months ago | discuss | parent | on: Ask PN: what is the database schema for Pythonic news?
Yes, I do. I'm a bit behind my time schedule.
10.
 
1 point by sebst 11 months ago | discuss | parent | on: Ask PN: what is the database schema for Pythonic news?
What have your experiences been with running a community like this?
11.
 
1 point by sebst 11 months ago | 1 comment | on: Show PN: StumbleUpon Clone built using Django, Sklearn, and Pytorch
That looks cool! Do you want to share some development insights?
12.
 
3 points by sebst 11 months ago | 7 comments | on: Ask PN: what is the database schema for Pythonic news?
It uses Model Inheritance: https://docs.djangoproject.com/en/2.1/topics/db/models/#model-inheritance This is generally not considered a best practice. I used it, however, because PN initially started as an idea for a Django course and I wanted this topic to be covered.
13.
 
2 points by sebst 11 months ago | 1 comment | parent | on: Show PN: Change Python code while it's running using a reloading loop
Python 2? This will be end-of-live by the end of the year.
14.
 
2 points by sebst 11 months ago | 2 comments | on: Ask PN: should i use instagram postgresql unique id generator technique for my project
For most projects: "You are not Facebook" (https://hackernoon.com/you-are-not-google-you-are-not-netflix-qf1v3sj5). While the approach of Instagram mentioned in this blog post is certainly interesting, for most project, you should be fine using just UUIDs or if you need monotonic increasing IDs, just AUTO_INCREMENT (MySQL) or Sequences (Postgres).
15.
 
1 point by sebst 11 months, 1 week ago | discuss | on: Ask PN:Why can't I edit or delete my post?
Just because we're in beta. Please file an issue here: https://github.com/sebst/pythonic-news/issues
16.
 
2 points by sebst 11 months, 1 week ago | discuss | parent | on: Ask PN:how does pythonic News generate unique slug for Url
Completely true. However, the primary goal of this site is about sharing links and fostering discussions about it. So I thought that sharing a link about a shared link is so uncommon that UUIDs might be good enough.
17.
 
2 points by sebst 11 months, 1 week ago | 2 comments | on: Ask PN:how does pythonic News generate unique slug for Url
It's using Django's UUIDField (https://docs.djangoproject.com/en/2.2/ref/models/fields/#uuidfield). Behind the scenes, UUID4 are generated with Python's builtin uuid module. The whole point of using UUIDs is that it does not require checking for uniqueness. See for example here: https://stackoverflow.com/questions/1155008/how-unique-is-uuid
18.
 
1 point by sebst 11 months, 1 week ago | 1 comment | on: Show PN: a colorscheme, wallpaper and template manager for *nix
Oh wow, this looks great! Will have a closer look! Congrats!
19.
 
1 point by sebst 11¬†months, 1¬†week ago | discuss | parent | on: Show ūüźć: Pythonic News on Product Hunt
Thanks!
20.
 
1 point by sebst 11 months, 1 week ago | discuss | parent | on: Ask PN: how do this site do nested comment pagination
I don't think the backend technology is important here. It's more about finding a way to improve frontend matters.
21.
 
1 point by sebst 11 months, 1 week ago | 3 comments | on: Ask PN: how do this site do nested comment pagination
To be honest, I asked myself the same question when I started. I haven't found a solution, yet. Will think about it when it happens ;-)
22.
 
3 points by sebst 11 months, 1 week ago | discuss | parent | on: Django 3.0 beta 1 released
Me too! The channels thing felt a bit like "batteries not included". So let's see how this will change…
23.
 
1 point by sebst 11 months, 1 week ago | discuss | parent | on: New features planned for Python 4.0
Not yet, but Guido said that it'll be jus the version after 3.9 - it will be less incompatible to 3 as 3 was to 2
24.
 
2 points by sebst 11 months, 1 week ago | discuss | on: Ask PN: Site questions
Good point. I'll link it more prominently.
More