Domain: dpaste.com
Stories and comments across the archive that link to dpaste.com.
Comments · 6
-
More help needed
I would simply like if it explained how to cut and paste multiple lines of text at the same time. For that task I have to reach for the mouse (the block of text needs to fit on the screen) or use a graphical editor - that'd be pluma or leafpad, to be free of bullshit.
That was still easier in MS-DOS EDIT.
By the way : (shit, I put it in a pastebin because of the slashdot filter)It has qwerty-isms. That's perhaps one of my bigger peeves with Free software. The video games in linux are worst, they're likely to be playable with a qwerty keymap only. DOS/Windows games of the 90s at least just read the raw scan codes so the keyboard acted as if it was qwerty.
-
A challenge from linkfrom a link from TFA:
Crypted details about our next Hollywood celebrity victim:
Unp2Z25qY3Z4Znp5b3Z0Z2ptZ3Zwb2l6bW56aHZkZ3Z4eGpwaW9odml0ZGlvem16bm9kaWJ oem5udmJ6bmFtamhidnRodmd6YW1kaXlzcmNqaGN6bXpicGd2bWd0aHp6eW5ham14dm5 wdnFuenNyZGdnbXpnenZuenl2b3Zndm96bQ==
Props to the one who decrypts it first!Spaces added by me to get past slashdot filter. Any takers?
-
Re:Why Support Java At All?
Removing the randomness, it takes over 8 seconds for Python, while 1 second for Java's younger sister, Scala. And the Scala version isn't optimized.
I love Python's syntax like no other, but even disregarding how performance-challenged Python is, I would never choose it for anything over a couple thousand lines of code, because of its lack of static type checking. -
Re:Why Support Java At All?
Removing the randomness, it takes over 8 seconds for Python, while 1 second for Java's younger sister, Scala. And the Scala version isn't optimized.
I love Python's syntax like no other, but even disregarding how performance-challenged Python is, I would never choose it for anything over a couple thousand lines of code, because of its lack of static type checking. -
Re:Stupid question
There is little to nothing you can do to convince clueless executives who can't see beyond J2EE. That is besides the point.
Also, a 1 year lead on something as new and fresh as RoR is huge, I mean, really friggin' huge. Fact is, it's taken about three years for Rail's hype to die down enough for people to realize that, just maybe it isn't "all that". It is at this point that development decisions become less starry-eyed and more pragmatic.
So perhaps that explains why Django is on the upswing now. That, and it's used for such excellent sites as:
Revver
Dpaste
curse.com
SuggestionBox
Lefora
Mixin— all things that you can show a CEO/CIO to make clear that Django is a player. More are coming rapidly. As for business sites, there are a plethora of them that are beautiful and functional.
-
Waaay OT, but...
...isn't it interesting the lines that are most common?
I can tell that you're coding in C++ because of the private/public and the }/}; (that inconsistency has always bothered me: is it a statement or not?).
I ran this* on the Python files of the Django project, and got some interesting results:
11185:
2314: """
1205: else:
1063: try:
288: pass
269: ...
235: Traceback (most recent call last):
226: from django.conf import settings
185: }
164: )
148: def __str__(self):Interesting comments:
- Yes, that's right, 11,185 empty lines. We programmers sure like our whitespace.
- """ is the delimiter for Python-friendly documentation. (Think javadocs.) If they documented each method and class, you could grep for def and class and get an estimate of how documented the project is.
- pass basically marks an abstract/unimplemented method. I'm running straight from Subversion, so that may have something to do with it.
- While Python doesn't use {} for methods, it does use them for dictionaries. The convention for multi-line dictionaries is to have the closing bracket on its own line.
- __str__(self) is Python's analog to Java's toString or Ruby's to_s.
Interesting stuff. I wonder what it would look like in Haskell, or Lisp...
* I wrote a modified version in Python that walked the directory tree and stripped lines of whitespace, otherwise it was pretty much the same: Simple statistics. Yes, I know it's somewhat messy. I tried to clean it up a bit before putting it up. A few simple modifications would make it work with any extension.