Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nitroll
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
nitroll
4y ago
The trackpoint on Thinkpads is fantastic once you get used to it.
2.
▲
by
nitroll
4y ago
But isn't that pretty much the distinction between value and reference types?
3.
▲
by
nitroll
4y ago
https://fr.wikipedia.org/wiki/Grave_(titre) somewhat equivalent of count or earl
4.
▲
by
nitroll
4y ago
My solution was to close the tab...
5.
▲
by
nitroll
5y ago
In Python you could do something like: class Base: def func(self): print("In Base.func:", self.name) class Child: def __init__(self, name): self.name = name func = Base.func c = Child
6.
▲
by
nitroll
5y ago
Most alarms wake you at a certain time, not a certain location.
7.
▲
by
nitroll
5y ago
Actually it seems sum is special cased to fail for strings, but otherwise you are correct
8.
▲
by
nitroll
6y ago
One big reason is that ubuntu splits out venv into its own package basically "breaking" python. People then don't know about the venv module and continues using the virtualenv, both due to this preceding venv, and because tha
9.
▲
by
nitroll
6y ago
Like which nu | xargs dirname
10.
▲
by
nitroll
6y ago
No, you need an editor that abstracts away the indentation and uses the existing style of the file. I use the tab key to indent code, my editor (Emacs) is configured to just cycle through sane choices.
11.
▲
by
nitroll
6y ago
Because you can see their usage as a series of "points" linked to exactly one other point, that forms a "line", as opposed to other systems where you could have more of a graph or tree.
12.
▲
by
nitroll
6y ago
Yeah, because it's not like we don't appropriate words all over the place anyway, and reuse words for all kinds of similar and dissimilar purposes. Using "breakpoints" to describe the /points/ where the layout
13.
▲
by
nitroll
6y ago
And is that so bad? So often i did stuff like that, then finding I actually need the result of x.calculate_weight() inside the condition, or to debug it or log it in some way. Then it has to be extracted anyway.
14.
▲
by
nitroll
6y ago
It does make sense to evaluate the default value for the parameter at the point of definition for serveral reasons. First of all, the default value does not have to be a literal value, and if you wanted it to be evaluated at call time the f
15.
▲
by
nitroll
6y ago
What difference would it make whether the change had been called 3.8 or 4.0?
16.
▲
by
nitroll
6y ago
I would rather just use google translate to do it automatically on the entire page, and yes I do that quite regularly from German.
17.
▲
by
nitroll
7y ago
Distributing a container, virtual machine or something similar.
18.
▲
by
nitroll
7y ago
I think the importance is the orthogonality of the features. Eg. having so many ways to do string formatting or now multiple ways of doing assigments are not ortogonal and thus can be seen as cluttering.
19.
▲
by
nitroll
8y ago
python3 -m pip install foo It also works for python2. I try to avoid using python tools that installs their own scripts and go for calling the module through python. This also works for python3/2 -m venv venv
20.
▲
by
nitroll
8y ago
https://blog.newtonhq.com/goodbye-newton-ae6b506fd94f
21.
▲
by
nitroll
9y ago
Portals main mechanic is movement, portals are created to enable new venues of movement. If portals were simply point at somewhere and click to teleport there the game would hardly be portal anymore and probably not fun at all.
22.
▲
by
nitroll
9y ago
Both map and filter returns an iterator, so you only iterate once when creating the list.
23.
▲
by
nitroll
9y ago
I hate when I code python and refactor stuff, moving stuff around and such, that I cant just copy/clip around and then do a final 'indent all my work correctly' like I can in a language like lisp. I am kind of developing a gr
24.
▲
by
nitroll
10y ago
One of the problems of being the sole developer...
25.
▲
by
nitroll
10y ago
Having higher order functions is not really what makes a language functional.
26.
▲
by
nitroll
10y ago
https://en.wikipedia.org/wiki/Marine_sandglass
27.
▲
by
nitroll
10y ago
It is, especially if these checks are done at compile time, not at runtime.
28.
▲
by
nitroll
10y ago
I totally agree. When you release bi-annually anyway, dont really care about how much breakage a Major release introduces, totally ignore minor versions and with patch versions being more or less insignificant, why not just go with $year.$
29.
▲
by
nitroll
10y ago
Or use the zoom feature of your browser...
30.
▲
by
nitroll
10y ago
true
More ›