Recent submissions

Comment · 10 years ago
Thanks for the excellent explanation and your great work on Python.
Comment · 10 years ago
Thanks for pointing this out along with some folks over in the comments on GitHub. I've updated the Gist.
Comment · 10 years ago
I like the replace method. It's a great way of doing the same thing.

I considered using the [::-1] syntax to reverse the list, but decided that there was enough "cute" stuff in the examples already.

Comment · 10 years ago
Comment · 10 years ago
Nice bonus info. I didn't know about this (haven't spent much time with Python 2.x).
Comment · 10 years ago
Author here. Thanks for this brilliant comment. May the force be with you.
Comment · 10 years ago
Defining authorisation rules as part of your application sounds fine to me. Aim for making compilation and deployment of your application trivial.

Sounds like you want a linear hierarchy of roles. Attaching a number to each role and making rules based on that number might be all you need. For example:

  Superadmin : 100
  Admin      : 90
  Manager    : 80

  if (a.number > b.number) a can delete b
Comment · 10 years ago
Comment · 10 years ago
Comment · 11 years ago
Comment · 11 years ago
First and foremost, "light" and "shocking" are references to the word which Litenin imitates: Lightning. I see a mysterious moderator has changed the title – I do not mind, but find it pretty curious.

When I started building Litenin I often found myself waiting several seconds for Feedly to load. My colleagues at work had desktop readers that were equally sluggish. In that perspective it seems rather fast.

I find that Feedly has improved significantly recently. I just loaded my feeds in ~1 second which isn't terrible considering it has a wealth of features that Litenin lacks.

Comment · 11 years ago
Update: I have implemented teaser texts. I will push it to production in ~24 hours. Right now there are very few teaser texts in the database, but in 24 hours Nimbus (the back-end for Litenin) will have updated all feeds at least once. Thanks once again.
Comment · 11 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton