earthboundkid

- friends
19,613 link karma
8,578 comment karma
send messageredditor for
what's this?

TROPHY CASE

PEP 420 is accepted... and __init__.py won't be required in future Pythons by pjein Python

[–]earthboundkid -2 points-1 points ago

Yeah, I think I've explained it to my wife on at least two separate occasions (this year's 4/20 and some year in the past). I think most people aren't really aware of it.

Sliding Under the Iron Curtain - Tengen Tetris by Greg4crin gaming

[–]earthboundkid 0 points1 point ago

GB Tetris is my President.

Microsoft pulling free development tools for Windows 8 desktop apps, only lets you ride the Metro for free by linucsin programming

[–]earthboundkid 13 points14 points ago

Xcode itself is free. You have to pay $100 for the right to submit apps to the App Store though.

The Go Programming Language Has Exceptions by efarrerin golang

[–]earthboundkid 0 points1 point ago

As I see it, there's not much practical difference between returning an error value and having a checked exception in Java. In both cases, the caller is made explicitly aware that "Hey, this thing you're calling can very easily screw up in this particular way!" Then you can either deal with it, semi-manually pass the error up the chain, or just ignore it with an empty catch (Java) or setting it to _ (Go).

Panics are basically like unchecked exceptions. They can happen deep in the call stack at any time and destroy your whole program, so it's the job of library writers to try to keep them from happening if at all possible.

The advantage of the Go-system over the Java-system is that the two kinds of exceptions are syntactically different enough that users are made aware that the first kind are normal and the second kind are not. Also Go probably gets better performance with return values, although I'm not sure if that's true.

Go on GoDaddy Hosting by ChainSmokingPandain golang

[–]earthboundkid 2 points3 points ago

Ugh, don't use GoDaddy for anything ever.

Python built-in functions are awesome. Use them ! by BaltoRouberolin Python

[–]earthboundkid 0 points1 point ago

Second order? You can use quantifiers in first, my friend.

Besides, in Aristotelian logic people debated for centuries about whether or not all unicorns have horns. So, it's fair to ask why Python chooses to side with modern logic.

3rd Degree Black Belts in Python, what are the most common mistakes and stylistic faux-pas you see? by omginternetsin Python

[–]earthboundkid 1 point2 points ago

Using a list expression where you should use a genexp is a common error for things written in the 2.4 days when Python was first getting big.

3rd Degree Black Belts in Python, what are the most common mistakes and stylistic faux-pas you see? by omginternetsin Python

[–]earthboundkid 6 points7 points ago

There's a big argument in the philosophy of language about whether "p is true" has any meaning over and above just "p." If not, then maybe the word true doesn't have any specific content. This is called the deflationary account of truth.

3rd Degree Black Belts in Python, what are the most common mistakes and stylistic faux-pas you see? by omginternetsin Python

[–]earthboundkid 2 points3 points ago

It's not a big deal. In Python 2 some little things like properties go wonky if you don't inherit from object. It's just a glitch in Python 2 more than a deep philosophical difference unless you're a deep Python internals ninja.

3rd Degree Black Belts in Python, what are the most common mistakes and stylistic faux-pas you see? by omginternetsin Python

[–]earthboundkid 2 points3 points ago

If your class is going to be a singleton, what's the advantage over a module level global?

Perl 5.16 Released by mr_chromaticin programming

[–]earthboundkid 3 points4 points ago

Perl 6 has always been at war with Eastasia!

Perl 5.16 Released by mr_chromaticin programming

[–]earthboundkid 2 points3 points ago

The genius of your comment is that anyone old enough to program in Perl is old enough to know about Endless September.

The Python Method Resolution Order by gthankin Python

[–]earthboundkid 0 points1 point ago

It creates more problems than it solves though. Code reuse through encapsulation works much more simply and without crazy MRO diagrams.

The Python Method Resolution Order by gthankin Python

[–]earthboundkid 0 points1 point ago

Moral of the story: never use multiple inheritance.

My Wordpress Blog migrated to Pelican by haridasin Python

[–]earthboundkid 1 point2 points ago

Seemed fine to me.

Lazy Evaluation of Function Arguments in D by steschin programming

[–]earthboundkid -5 points-4 points ago

C++ is an octopus made by nailing four legs onto a dog. D looked at that octopus and said, "I know how to make a millipede!"

Is there a point to paginating articles online? - User Experience by yannisrizosin programming

[–]earthboundkid 1 point2 points ago

If they don't finish they won't return. You plan to have a site for longer than one day.

ReFs, the successor to NTFS in Windows 8 by c0balt279in programming

[–]earthboundkid 0 points1 point ago

The one on video game controllers never actually ended, they just stopped broadcasting it in this universe.

Why I Taught My Daughter To Code (A Little) by jongallowayin programming

[–]earthboundkid 13 points14 points ago

Child abuse.

Google's Code Editor by sidcool1234in programming

[–]earthboundkid 0 points1 point ago

Different regions label the key differently. In the US, it's labeled alt and option, no symbol.

Are go binaries really entirely statically linked? by sublimepuain golang

[–]earthboundkid 4 points5 points ago

My understanding is that the Go dev team strongly prefers static linking. I don't think it will every change to dynamic linking under their watch, but maybe someone will start a fork that will do what you want.

view more: next