1,119 reputation
813
bio website zlynx.org
location Greenwood Village, CO
age 40
visits member for 4 years, 1 month
seen yesterday

Nothing interesting about me. This is not the user you are looking for. Move along. Move along.


1d
comment Why is polling accepted in web programming?
+1 for long polling. Look up Comet en.wikipedia.org/wiki/Comet_%28programming%29
Nov
13
comment What did people do before templates in C++?
@IdeaHat: For generic functions look at qsort in the C library. It can sort anything because it takes a function pointer for the comparison function and passes a pair of void*'s.
Oct
11
awarded  Yearling
Oct
7
comment Move semantics in C++ - Move-return of local variables
A move must always leave the object in a destructible state.
Aug
6
comment Why is the complexity of fetching a value from an array be O(1)?
Your question seems to assume that you are searching the array for a particular value. But the question you actually asked is about fetching a value from an array from an already known array index.
Jul
4
awarded  Good Answer
May
20
answered Direct database manipulation an anti-pattern?
May
16
comment What is the responsibility or benefit of a Tokenizer?
Note that there are languages like Perl and C++ where the possible tokens are modified by where you are in the parsing. template<typename X<typename Y>> for example, changes the meaning of '>>' from '>>' to '>' '>'.
May
5
comment How can I hide my signature in a program?
Git allows the commit to set any timestamps that it wants. So I doubt you can rely on a git repo for any sort of evidence.
Apr
30
comment Why do C arrays not keep track of their length?
You have an statement in your question that isn't true. The heap manager does NOT have to track the length of each allocation. A slab allocator only has to know what slab the allocation is in. A 48 byte allocation goes in a 64 byte slab, but it could be 33 bytes or 51 bytes, the manager doesn't care.
Apr
13
answered Is byte stuffing required when using a packet field length
Apr
11
answered When should I *not* use Unicode?
Mar
11
comment How can you decompose a constructor?
I'd have to question if you ever intend to construct Enemy objects in code using literals. If you don't, and I don't see why you would, then build constructors that pull the data from a database interface, or a serialization string, or ...
Feb
27
awarded  Civic Duty
Feb
25
awarded  Editor
Jan
30
comment Why should passwords be encrypted if they are being stored in a secure database?
You also want to hash the answers to their password recovery questions. Otherwise those can be used to get into other sites also, just like passwords.
Nov
11
comment Confusion about inheritance
@SamuelAdam: This sounds like a problem with your data store. If SQL use a transaction to safely delete and reinsert the object. Or depending on how it works force it to load ID 1 into a Member object instead of the default Customer. And your in memory objects should allow making a copy. So copy construct a Member from a Customer then write that back to the data store.
Oct
11
awarded  Yearling
Sep
5
comment Utilizing a Java Concurrent Utility from a Web App
As an old hardened C/C++ programmer I have to wonder at Java people who import code which has function names longer than the math required to do it inline. ms/1000/60 isn't it?
Aug
28
comment Why do some programmers hate the UI part of the development?
Implementation is grunt work? No, it is puzzle solving. For example, I am currently doing a modification to the guts of a program that parses some data and I want to output a structure that shows where in the original the results came from. So I have to rearrange all of the guts because all the code flattens, whitespace removes, stems and then parses the text before getting results. Doing this in the prettiest way with the fewest layer violations is not exactly grunt work.