1,224 reputation
721
bio website
location
age
visits member for 3 years, 1 month
seen Jul 18 at 11:42

May
3
comment How can I learn to effectively write Pythonic code?
@phresnel, I agree, reverse=True is much clearer. I just wanted to show the use of an arbitrary function to influence the sort order. As for the assignments, I find the compressed version much readable, of course, provided the number of vars assigned to does not exceed say, 3.
Sep
15
comment Is LISP still useful in today's world? Which version is most used?
Great question, but in today's world, it is called Lisp and not LISP :)
Aug
13
comment How to get started with this project?
There are good chances that the system will be protected against automated registrations via, say, a captcha. But if that is not the case, start reading up on how to program HTTP in your language. The registration will very likely be an HTML form, which you can simulate by sending an HTTP POST request with appropriate parameters (for that, you'll need to have a look at the actual HTML page that shows the registration form)
Jun
1
comment What algorithm(s) can be used to achieve reasonably good next word prediction?
Wow. But I think @sebastiangeiger's answer explains this for n=3.
May
18
comment How to specify a functional requirement?
IMHO the 1st one is cool. It should be clear, unambiguous that is it.
May
13
comment What algorithm(s) can be used to achieve reasonably good next word prediction?
Alright, and is there a optimal value of n that yields nice results? It doesn't always have to be the third word that is predicted, you see
Apr
27
comment Why would I learn C++11, having known C and C++?
@DavidStone No doubt. I am a big C++ fan, and am in love with lambdas. What I wanted to say in the comments was that C still has and will have its own place in the industry :)
Mar
15
comment Why are statements in many programming languages terminated by semicolons?
+1 - and LOL: "LISP didn't use anything, relying on parentheses for everything."
Mar
11
comment For what types of applications is Python a bad choice?
@S.Lott True, and PyPy may sometimes rival the JVM or even C/C++
Feb
10
comment Why are shortcuts like x += y considered good practice?
I upvoted the question after reading this answer. cheers.
Feb
7
comment How can I extract words from a sentence and determine what part of speech each is?
@StriplingWarrior I just wanted to contrast sufficiently between the two problems posed by the OP. Noted. Edit on its way
Feb
6
comment Real world implementation of functional programming?
+1 Korrecto! Also, I'd love to add, that for beginners in functional land, the "purest" functional language around would be Haskell :)
Jan
13
comment How is Python used in the real world?
+1 @karl I also think that it is mostly startups that tend to actually leverage the dynamic languages in production
Jan
10
comment Best Version Control Habits For Solo Developer?
+1 I have recently started using VCS myself, and GIT is the thing for me :)
Jan
5
comment Rate your programming language expertise by language concepts
Not language specific, but a very interesting and related read: yacoset.com/Home/signs-that-you-re-a-bad-programmer
Dec
27
comment What is the Best Style for Functions with Multiple Returns and If/Else Statements?
You don't need else if the previous if is used to return. Mozilla coding guidelines require you to omit those elses. Otherwise, you may use a variabl, say, ret which you set accordingly in the If-Else ladder, and finally return ret in the end. I like to use switch-case particularly with this.
Dec
25
comment Why do certain sites prevent spaces in passwords?
And what exactly are the "problems"? I have been emphasizing in the answer that spaces SHOULD BE allowed. "They'll get stripped both on setting and testing" - What's the point then? then " 1 4m 1337" and " 1 4am 1337 " both hash to the same value(actually, there are infinite number of possibilities in theory).
Dec
24
comment How to visualize code?
I have been in your situation, and have found UML vry useful - just because it explicitly states what you draw uml.org
Dec
24
comment A free game-development language?
Hahaa - I too learned my programming with BASIC, but couldn't help quoting Dijkstra here: "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. "
Dec
24
comment A free game-development language?
+1 for JavaScript - yes, the HTML(5) part is additional learning to do, but again, HTML is quite simple - I remember learning to make an HTML button and showing off when I was learning GWBasic :)