859 reputation
1410
bio website
location
age
visits member for 2 years, 5 months
seen May 10 at 18:54

May
10
comment What have my fellow Delphi programmers done to make Eclipse/Java more like Delphi?
-1 Though I can identify with your concerns, none of this is helpful.
Apr
6
comment Algorithm for inserting into sorted subset
I think the being a subset is of little value if you have no guarantee that B is a congruent part of A; in other words that the distances between common elements are equal. Doing a binary search on both seems plenty efficient to me with the additional advantage of simplicity.
Feb
10
comment Binary Search seems superior, why did the committee of C++ still have Find in the algorithm library?
@U2EF1 Only under certain conditions (e.g. random distribution of the elements). Anyway, such details are not very important for the theoretical argument I wanted to make. :)
Feb
9
answered Binary Search seems superior, why did the committee of C++ still have Find in the algorithm library?
Jan
22
awarded  Yearling
Jan
8
comment Why do C++ and Java both use the notion of “reference” but not in the same sense?
From the name it would sound much more logical to dereference a reference than to dereference something that isn't a reference. :p
Nov
14
comment How to configure these REST API Resources
/reservations/{reservation_id} would be nice to have for URIs. Then, users is something you wouldn't expect in a collection of ids. In REST it is very acceptable to have multiple URLs to access the same resource. So why not have /users/{user_id}/reservations in addition, so we keep the endpoints "pure"? It can then be used for cases in which the user is central (making, showing, canceling reservations for a user). Say we add invoices later, there'll be /users/{user_id}/reservations and /users/{user_id}/invoices, so /users/{user_id} can be an "index" to help discovery in HATEOAS.
Oct
22
comment Factory for arrays of objects in python
@GlenH7 I think he means that rather than giving in a bunch of parameters for the Window to construct the Widgets, the interface would become a lot cleaner if you would pass in a set of ready-made Widgets instead. Then those parameters end up in the Widget constructor, which is a better place for them. You might define different specialized kinds of Widgets with their own parameters, and refactor sets of parameters into grouping objects (x and y could constitute a Point) to clean the constructors even further.
Oct
7
comment The dreaded C# programming interview test - any advice?
When will you add the answers? ;)
Oct
3
comment use areFoo or isFoo?
Good point; reason to use IsAny and IsEvery...
Sep
10
comment Is Python Cookbook for python 2.4 applicable to python 2.7.5?
Python 2.7.x and 3 are indeed quite different in some respects. However, you could use this as an opportunity to get to know both ways of doing things. That is, read how to do it in 3 and if it doesn't work in 2.7.x, figure out why. It will give you a much better understanding and help you remember as well as prepare for the near future, because 3 is gaining ground.
Aug
23
comment Is SQLite a sensible option for data logging?
As you wish. :)
Aug
23
answered Is SQLite a sensible option for data logging?
Jul
24
comment How to format this line according to PEP 8?
Interesting to answer a language-specific style question in a language-agnostic way. ;)
Jul
24
comment How to format this line according to PEP 8?
No such thing as const in Python.
Jul
8
revised Why is Scheme my first language in university?
made title clearer
Jul
8
suggested suggested edit on Why is Scheme my first language in university?
May
25
revised In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
deleted 6 characters in body
May
25
comment In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
@jk. Good point, thanks.
May
25
revised In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
edited body