Viewing profile — cessor
cessor
HN member- Joined
- Wed, Feb 12, 2014, 11:50 PM UTC
- HN karma
- 321
- Public activity
- 161 items
- HN profile
- View on Hacker News ↗
About cessor
No profile information was provided.
Recent public activity
-
comment
Comment #44032649
It's easy to make Django react to "Accept-Language" headers, I love how the LocaleMiddleware supports it out of the box [1]. I implemented automatic language detection to show eith…
-
comment
Comment #29837327
I agree 100%. Even if you don't need it, these lines don't hurt you, but most of the time, the additional model is put to good use. I usually add metadata, such as additional times…
-
comment
Comment #29837286
I'd love to hear your criticism of django, issues you encountered and problems you have solved :) > My real criticism of Django is that, at long last, I think it's starting to look…
-
comment
Comment #29837205
Your're right, I felt the same way in that the article is clickbaity. I found that django's naming scheme for migrations is good enough; here are some real ones that I pulled out o…
-
comment
Comment #29837109
The author names three 'harmful' defaults: 1. Relying on implicit SQL queries 2. Using the default User model 3. Using automatic migration names 4. Relying on automatic database ta…
-
comment
Comment #29066285
Does your employer pay for your technical skillset and your labor, or do they pay you for sacrificing your mental health? I don't think self-care is unprofessional, and deciding to…
-
comment
Comment #28849548
This is judging a fish on it's ability to fly. In other words, it is judging an object oriented program on its ability to resemble top-to-bottom sequential execution style programm…
-
comment
Comment #28503591
Yes, 40sec on firefox for "essential cookies only"; accept all is instantaneous.
-
comment
Comment #28270352
I don't use a debugger. When I have a problem that I need to narrow down I state my hypotyhesis of what is going on in some kind of unit test and narrow it down that way. I am curr…
-
story
Ask HN: Is “Hacker News” becoming “News”?
I value hacker news for the diverse range of articles that are posted every day. However, recently it feels like a lot of submissions go to the websites of major news outlets. Is t…
-
comment
Comment #23818523
you mean... like irc?
-
comment
Comment #23368923
When using it like this, the interpreter opens a new namespace where the variables are bound. The x is declared in the outer scope, so it can't find it. However, you can ask python…
-
comment
Comment #23348051
I feel the same way.
-
comment
Comment #23348044
True. But given that the difference in implementation appears to be arbitrary, the real differene between oop and fp must be evaluated in the domain of empirical research regarding…
-
comment
Comment #23348028
How do you model changes in state over time? (i.e. effects and processes?)
-
comment
Comment #23348022
How much great learning the student could have done if he had not been insulted and physically abused by an impatient "educator".
-
comment
Comment #23348018
True. Python taught me that.
-
comment
Comment #23347993
> Checking the validity of the data is only necessary once. Exactly, which is why a class is the perfect singular location to place it. The object itself is just a pointer, the met…
-
comment
Comment #23347894
I will admit that I don't know what "linear types" or "affine types" are. Your answer makes me feel like I am trying to convey an idea for which you have the perfect formalism / me…
-
comment
Comment #23347829
> What happens to your OpenConnection object then? It raises an exception. This interrupts the normal flow of things and asks you to deal with the problem asap. If necessary, the h…
-
comment
Comment #23347754
Members in Python are never private. Variables that are supposed to be used internally only are marked with and underscore, but that just conveys intent and isn't enforced by the i…
-
comment
Comment #23347650
The term information hiding used in this thread is very confusing (to me, at least). I believe David Parnas introduced it in 1971 to mean that a program's design was sliced along s…
-
comment
Comment #23342021
This circles back to my original argument. Here: def adder(x): def add(y): return x + y return add add_five = adder(5) add_five(10) How is that different from: class adder: def __i…
-
comment
Comment #23341815
It's not so much about "I need that later", but to start thinking about a program differently to begin with. If you think about the things that "are" rather than what should happen…
-
comment
Comment #23341479
If you limit the scope of usage, the old wallet should be garbage collected as soon as you have the new one. If you don't want to rely on that, or the point in time when gc happens…