7,836 reputation
72944
bio website zopatista.com
location Cambridge, United Kingdom
age 41
visits member for 2 years, 8 months
seen 41 mins ago

Invisible framework coding ninja


Jan
17
comment How do I debug a python multiple-sentence generator?
And why did you post this here? You have a practical programming problem, off-topic for Programmers. You have an account on the site where this would have been on-topic (but take into account there are duplicates there).
Jan
17
comment How do I debug a python multiple-sentence generator?
nouns and verbs are not lists. They both are one string, and you are picking a random character, not a word. Your getRandomWord() function is generic, why repeat it 3 times? And yes, your functions are executed just once. You need to call them inside the loop, not outside, if you expect them to produce new values each time.
Jan
17
revised How do I debug a python multiple-sentence generator?
added 1316 characters in body
Jan
17
reviewed Reject How Does A Compiler Work?
Jan
17
reviewed Reviewed Database Handler and SQL injection prevention
Jan
17
revised Database Handler and SQL injection prevention
added 15 characters in body
Jan
15
reviewed No Action Needed Should I encourage junior developers to use explicit or implicit typing?
Jan
14
reviewed Reviewed In ASP.NET MVC, should the view models have an ID?
Jan
14
comment In ASP.NET MVC, should the view models have an ID?
This directly contradicts the other answer though, without addressing why you should have an id anyway.
Jan
13
reviewed Approve Questions for Architecture with Ruby and Java
Jan
13
reviewed Edit How to prove that this while loop calculates n^2
Jan
13
revised How to prove that this while loop calculates n^2
Remove salutation
Jan
12
reviewed Reviewed When writing object-oriented code, should I always be following a design pattern?
Jan
12
comment When writing object-oriented code, should I always be following a design pattern?
That article was written just yesterday; are you affiliated with the blog at all? If so, please do disclose that affiliation.
Jan
12
reviewed Approve What are the differences between server-side and client-side programming?
Jan
11
reviewed No Action Needed Are there open-source JavaScript libraries addressing multiple browser tabs and client state for newer browsers?
Jan
11
awarded  Guru
Jan
11
reviewed Approve Techniques for fitting multi language labels on forms
Jan
8
reviewed No Action Needed How to preserve order of incoming requests on a multithreaded server
Jan
8
comment 'import module' vs. 'from module import function'
Note that I directly address that difference in my answer; there will be a difference between using import sys then using sys.argv thousands of time in a loop vs. from sys import argv then using just argv. But you don't. For things you do just once at the global level of your module, you really should optimise for readability, not microscopic differences in timings.