Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sametmax
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
721.
▲
by
sametmax
8y ago
You do with type annotations. But type declaration may not be in the view port. Or you may read a script or snippet, which is a type or code that won't bother with typing.
722.
▲
by
sametmax
8y ago
It is very different than Python. In Lisp, they say "here is a tool that can do anything. Have fun". In Python they say: "here are many tools that are specific and limited to that purpose. Also you gona take bad decisions, so
723.
▲
by
sametmax
8y ago
I love dogs. My familly owned 4 of them, small ones, bigs ones, smart ones, dumb ones. All so cute. Yet, they have no place in an office. They actually have no place in a city. Animals need space. They need to be able to be dirty, make a me
724.
▲
by
sametmax
8y ago
And after it bites you, "it's strange because it's usually so nice".
725.
▲
by
sametmax
8y ago
Actually, a lot of Python users don't even know sets exist. Or they forgot, and use them randomly after they google "remove duplicates". Even among the sets users, a lot of them don't even know you can use ^, | and ~ wit
726.
▲
by
sametmax
8y ago
Latest discovery on my part, after the burnout, a heavy magnesium supplement helps a lot. Especially with the foggy brain, and the physical contact with others.
727.
▲
by
sametmax
8y ago
Besides, anytime somebody compare Python to Haskell, the battle is over. They have completly different use cases and philosophy. If you want something in Haskell, you probably want the opposite in Python.
728.
▲
by
sametmax
8y ago
Practically, what your wish would accomplish ? Will it make most people more productive ? Produce less bug ? Learn faster ? Most Python coders don't even use sets more than once a year. Hell, I use collections.deque more than sets. But
729.
▲
by
sametmax
8y ago
And a = 1 is not equality. Welcome to the world of programming, where we don't all try to match mathematical conventions because many of us suck at maths and are practical.
730.
▲
by
sametmax
8y ago
All my students disagree with you. They all try addition, and all expect a resulting dict with keys from both dicts. The fact the keys from the one side are prioritized is something they will learn once, just like with dict.update().
731.
▲
by
sametmax
8y ago
Teacher here. All my students eventually try {} + {}. I'll bet on it to be the most intuitive.
732.
▲
by
sametmax
8y ago
It does produce a new list/dict, etc. That's what you want to avoid side effects in many cases. Modifying is actually an exception. Handy to have, but not common. Even numpy arrays recreate everything every time.
733.
▲
by
sametmax
8y ago
No but Guido said yes https://bugs.python.org/issue36144#msg336848 and even if he is not BDFL anymore, it usually means it will be done.
734.
▲
by
sametmax
8y ago
It was also a huge source of bugs. I often give an exercice prompting a number with input(), then checking it to another number in the Python for beginers course. Most students don't call int() before comparing. In Python 3, they get a
735.
▲
by
sametmax
8y ago
It's consistent with [] + () not working, but [* * , * * ()] works.
736.
▲
by
sametmax
8y ago
One of the long awaited features, rejected by Guido many times, and finally accepted. Maybe we'll get list.get(), functools.partial() as a c written builtin, pathlib.Path() as a primitive or inline try/except, one day.
737.
▲
by
sametmax
8y ago
And of course it's limited to english, so far from "the internet". And indeed, Trump has been elected for getting the majority of votes, yet it represents it as a sad day, while I'm pretty sure most voters were happy.
738.
▲
by
sametmax
8y ago
I loved the book, but I know so many functional adults living their entire life underslept, that I think it must miss compensating mechanisms.
739.
▲
by
sametmax
8y ago
Most touristic places suffer from this. If you go to Nice after june, the streets are a terrible place to be. If you go to the Mont Saint michel in the summer, same. Venice in Italia is like that during the whole year. Living in those place
740.
▲
by
sametmax
8y ago
No I get those comments because linux users are driven by an ideology and wants to defend it. The thing is, even among all those comments authors, I know all of them are only talking at best about "that times where it worked for them&q
741.
▲
by
sametmax
8y ago
> So pick your hardware with doing some research first. The big linux fallacy. Firstly there is no hardware that can guaranty that everything will work. None. No dell. No system76. There are just some that have less problems than others.
742.
▲
by
sametmax
8y ago
Like the others, jumping around shooting "it's fine" is not going to help. I'm writting this from an Ubuntu 16.04 on an XPS 13. Sometime it wakes up from sleep modes with no wifi or bluetooth, and I have to force a reboo
743.
▲
by
sametmax
8y ago
Yeah, yeah, I know the song. I'm always in dual or triple boot. This month I had 5 laptops just in my home. The last time I had wifi problems on Windows was with XP, my friends with macs always have better battery, wifi and sleep than
744.
▲
by
sametmax
8y ago
There is always somebody to pop in to say "x works in my case". Like those "oh my zsh" users that never ever had their prompt broken or those vi lovers that "just sync their config file on github and that's it&
745.
▲
by
sametmax
8y ago
It's crazy how consistently I, and thousand of people launchpad.net, have been all unlucky for so long. We really should start to take this karma thing seriously, because I keep getting answer like yours saying I'm just not seen t
746.
▲
by
sametmax
8y ago
I've read the same comments since 2004. It doesn't help to solve the problem at all. At best, sometimes, it encourages you to spend a lot of time trying to find a solution that may work, or wreck your system (Exact result depends
747.
▲
by
sametmax
8y ago
s/font rendering/wifi s/font rendering/bluetooth s/font rendering/sleep mode s/font rendering/battery life I've been using Linux for 15 years now (started on Mandrake), but those issues haven
748.
▲
by
sametmax
8y ago
> You know I lately think that, ok, we're mostly past the age of empires physically conquering one another, we're in the age of economic ebbs and flows of established countries. Not sure. First, the US did invade a lot of place
749.
▲
by
sametmax
8y ago
It makes you wonder how much of the privacy features are a marketing act too.
750.
▲
by
sametmax
8y ago
If you wear synthetic.
More ›