385 reputation
1316
bio website
location Southern California
age 17
visits member for 2 years, 5 months
seen yesterday

Hi, I'm Cole. Here's my Twitter. I'm the creator of iDecryptIt, and the founder of Hexware.

profile for Cole Johnson on Stack Exchange, a network of free, community-driven Q&A sites" title="profile for Cole Johnson on Stack Exchange, a network of free, community-driven Q&A sites


1d
comment Decide the type of an object during runtime
Your example at the very end won't compile. You use one equals sign in the if statement
Sep
24
awarded  Autobiographer
Sep
5
comment Why are the <b> and <i> tags deprecated?
@MichaelT I remember when I first began using LaTeX, I was confused about all the different ways text could be italicized and bolded on when beginning on a blank document (with no style packages).
Sep
5
comment Is it a bad practice to use empty node with value attribute in XML?
@DanPichelman I'd prefer it to go the other way. This one is a much better written question. Sure that one's closed, but a mod can reopen and insta-close as a duplicate.
Sep
2
comment Beginning a sentence with a function name?
@Ellesedil In that case, I'll usually suffix it with () or (...) to indicate it's a function. But that doesn't always work, especially when dealing with variables and such. What I do then is wrap the name with ` (tick character) to indicate it's code.
Aug
22
comment How do operating systems… run… without having an OS to run in?
"ninterpreted"? I've never heard that term before.
Aug
18
comment Should I use nested matrices or dictionaries?
This answer. The best way to represent chemicals is as linked list of atoms or ions like how SMILES does.
Aug
18
comment Should I use nested matrices or dictionaries?
Disregarding the question. I must say that that is a very inefficient way to store chemical representations. I personally would recommend you store them similar to how SMILES does. Use a new object for each atom (ion, etc.) and have each object contain an array for its bonds where each item in the array is a reference to the object it bonds with (if that makes sense). Something like a linked list that works both ways and each "item" is either an array of separate lists or an atom (ion, etc.)
Jul
26
comment Are there any Phone Interview equivalents to FizzBuzz?
Everyone should know that Regex is the best way to validate an E-Mail address! Especially when the Regex for it is only 6,343 characters long!
Jul
10
comment Why do operating systems do low level stuff in C and C++? Why not just C++?
A 32-bit C++ compiler for ARM? If you wanted, you could compile LLVM from the source yourself after a few modifications to get a C++ compiler for iOS.
Jul
8
comment Is it okay if we use an arbitrary string as UUID?
Except that GUIDs aren't universally unique ;)
Jul
2
awarded  Curious
Jun
19
awarded  Popular Question
Jun
11
comment Can I, as author and copyright holder, relicense my code under a more liberal license after it has been published under a more restrictive license?
Something you may want to consider is the LGPL.
Jun
11
comment Can I, as author and copyright holder, relicense my code under a more liberal license after it has been published under a more restrictive license?
However, if that GPL project is required to either have a basic functioning program, or it's distributed with their program, their program must be under GPL. That's where the LGPL comes in.
Jun
11
comment Can I, as author and copyright holder, relicense my code under a more liberal license after it has been published under a more restrictive license?
A nice example of relicensing for commercial use while still providing an open-source version is Qt.
May
25
comment First ATMs programming language
Could it be that they weren't actually programmed, but just complex circuitry designed for the task? The same kind of stuff that caused Intel to create the MOS-4 series which included the 4004.
May
9
comment Can a function be too short?
If we're dealing with C here, we could just abuse #define ;)
May
8
comment Method vs Function vs Procedure
You don't know me. I might just put that into production ;)
Nov
25
awarded  Popular Question