5,657 reputation
22128
bio website
location
age
visits member for 2 years, 7 months
seen 11 hours ago

Engineering Manager for Sony Network Entertainment who wishes he was doing Python but is instead managing a web development team.


Dec
19
comment Redundant ElseIf-Else Blocks
Note that these two code samples don't do the same thing. Example #2 will test variable == 1 even if the earlier test succeeds. This may cause different behavior if do_one() modifies variable. Also note that Example #2 will be slower by a likely trivial amount. In any case, to me, this looks like an obvious switch statement and so shouldn't use if/else at all.
Dec
18
comment Are all magic numbers created the same?
You mean the Y2K problem? I'm not sure it is relevant here. Yeah, there was a lot of code like 'date - 1900', but in that code, the trouble wasn't the magic number "1900".
Dec
17
comment Are all magic numbers created the same?
Personally, I use these two questions instead: "Will this value ever change in the lifetime of the program?" and "Would the developers I expect to be working on this software understand what this number is for?"
Dec
17
comment Are all magic numbers created the same?
Definitely use 1024, because otherwise your dev team will spend all it's time arguing about wether it is "kilobytes" or "kibibytes".
Dec
17
comment Is early binding legally constrained, while late binding is not?
@T.C. No, what I am saying is "The author of a software product may legally restrict that product in any way whatsoever." I think the basic trouble is that you are thinking of a couple of particular licenses and are trying to generalize to copyright law in general.
Dec
17
comment Is early binding legally constrained, while late binding is not?
Again, it entirely depends on the license, regardless of whether you are talking about use, creation, distribution. or sale. Copyright law itself says absolutely nothing at all on the subject.
Dec
17
comment Concept for dealing with recurring appointments
To give some perspective, my first job out of college was to work on a calendaring program that was a DOS pop-up. It managed to support recurring appointments in 100k RAM. (The user's entire appointment set was stored in RAM.)
Dec
16
comment Concept for dealing with recurring appointments
No. I'm suggesting that you have columns like "startdate" and "enddate". A recurring appointment would only have a single entry. Basically, look at the fields in the iCal spec itself, and make certain of those columns.
Dec
16
comment Concept for dealing with recurring appointments
That's my point. Crack the date ranges out of the iCal string when you store it in the DB. That way, you don't have to crack it to figure out if it is in the range. You just search the columns that were populated when you cracked the string on insert.
Dec
16
answered Concept for dealing with recurring appointments
Dec
16
comment Concept for dealing with recurring appointments
I'm a little confused. Is the user requesting all appointments in the system, or just the ones that apply to that user?
Dec
15
comment Storing 5000 elements on client side in a web application
I'd guess he was looking for html5 local storage, though it sounds like you mentioned it. It may just be the interviewer was a jerk, and/or misunderstood you.
Dec
15
comment PirateBrowser Licensing
It looks to me like they didn't modify Firefox Portable itself, but rather just bundle it with Tor and an add-on.
Dec
15
comment Is early binding legally constrained, while late binding is not?
A license can say anything. A license can say you have to paint yourself pink and recite the pledge of allegiance in order to use the software. Copyright law says that you can only use the software with the permission of the software. The author can use this to write a license that says "You may only use my software if it links to proprietary software using late binding".
Dec
15
comment What are technologies like XML, JSON, and YAML classified under?
I have no clue, because I have no idea how you are grouping things. If you are making groups of ways people format data, then yes, they belong together. If you are making groups based on the first letter of their name, then no, they shouldn't be grouped together.
Dec
15
comment can a closed source commercial software make system(3) calls to GPL applications (not libraries)?
In theory, one could write a bash clone under a different license, so it isn't strictly speaking true that bash scripts depend 100% on bash to run.
Dec
15
answered What are technologies like XML, JSON, and YAML classified under?
Dec
15
answered Is early binding legally constrained, while late binding is not?
Dec
13
comment Interface inherits from interface without specifying new member
What is the reason you "definitely must have the IByteStream and the IFloatStream interface"?
Dec
13
answered Include internal defects into the releasenotes?