1,085 reputation
613
bio website zlynx.org
location Greenwood Village, CO
age 39
visits member for 3 years, 6 months
seen 16 hours ago

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


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 ...
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.
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.
Aug
28
comment What are CPU registers?
CPU level-1 cache is often made of the same type of silicon stuff as registers. It is not quite as fast because it needs extra lookups to associate cached addresses with cache locations. But registers and cache are definitely different places on the chips.
Apr
25
comment How to reject a code review that you believe is unnecessary?
@EuroMicelli: Really? You file an issue/ticket for every change? This amount of process leads to large extensions of estimate times. A test case should be sufficient. Or maybe I misunderstand and a ticket is just a quick entry of "bug on line 17: will fix"
Apr
25
comment How to reject a code review that you believe is unnecessary?
I agree with ZJR. By refusing to review code you are agreeing with it, in my view. If I refused to use code that hadn't been sufficiently reviewed nothing would get done. What am I going to do, hold busy people down and MAKE them look at it? That would be popular wouldn't it? So silence is assent.
Sep
7
comment What are the most known arbitrary precision arithmetic implementation approaches?
@keykeeper: BigDecimal is a BigInteger with an offset.
Sep
5
comment Best Method of function parameter validation
I agree with Glen. Try Java. It isn't bad, really. It may be quite a change from PHP, but better in almost every way.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
@Oleksi: If you invested the same time in learning vim you can use it to edit any text file. With the IDE you can edit, oooh, C++ or C#. Or maybe Java. If you want to edit Ruby, Python, Haskell, Ocaml or Apache config files you are out of luck.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
The IDEs are SOOOOO sophisticated that you can get lost in trying to figure out why the indentation settings are different in the editor window for resolving SVN conflicts than the window for editing C++ code. After five minutes you could have spent coding you finally figure out there's no way to do it an then spend extra time replacing tabs with spaces manually.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
This is an excellent point. Your IDE may be good at one, maybe even two things. I have yet to meet the IDE that is worth configuring for every type of file I edit. When I take a quick whack at a PHP file I am not going to waste time configuring an IDE for PHP.
Jun
15
comment Setters or constructor for many variables?
@JarrodRoberson: Then it needs a GUI binding. Or it needs a HTML POST binding. Seriously, what would it use a constructor for?
Jun
14
comment C# foreach improvements?
@FabricioAraujo: Surely C# for loops don't require a count. As far as I know they are just the same as C's for loops, which means you can use any boolean value to end the loop. Such as a check for the end of the enumeration when MoveNext returns false.
Jun
11
comment Is it ok to replace optimized code with readable code?
@DaveE: I think I agree more with the guy you work with than you. If I'm not allowed to fix stuff that is slow for absolutely no good reason I will go insane. If I see a line of C++ that repeatedly uses the + operator to assemble a string, or code that opens and reads /dev/urandom every time through the loop just because someone forgot to set a flag, then I fix it. By being fanatical about this I have managed to keep speeds up, when other people would have let it slide one microsecond at a time.
May
24
comment Dependency injection: How to sell it
So much agreement! I really really hate DI configuration files and the effect it has on tracking program flow. The entire thing turns into "spooky action at a distance" with no apparent connections between pieces. When it becomes easier to read code in a debugger than in source files, something is truly wrong.
May
22
comment Should we avoid object creation in Java?
"Free JVM heap memory doesn't give you anything just sitting there anyway." -- Not to your program, no. The rest of the system hates your program and wishes it would die so it can stop swapping.
May
4
comment Refactoring Switch Statements and is there any real use for Switch Statements at all?
And really, if you unrolled the factory and the dictionary and the lookup, it would turn out to be basically a switch statement: if array[hash(search)] then call array[hash(search)]. Although it would be runtime-extendable which compiled switches are not.
May
2
comment When to use C over C++, and C++ over C?
@sbi: Do programmers use threads? Yes. Do some versions of the libstdc++ implementation contain std::string reference counting bugs? Yes. Does std::auto_ptr call destructors of forward declared classes properly? It depends on the implementation. Do some programmers need to support C++ applications running on those platforms? Yes. Therefore, DeadMG's claim that a programmer does not need to know anything about the implementation is false, because no such thing as a perfect C++ library exists. Is the knowledge needed to find bugs in the implementation? No, it is needed to work around the bugs.