190 reputation
8
bio website campderros.com
location
age
visits member for 3 years, 4 months
seen 8 hours ago

Feb
19
comment How to manage accidental complexity in software projects
JeffO pdr that's exactly the point of rubber duck debugging
Nov
12
comment Understanding exceptional cases
somehow related: programmers.stackexchange.com/questions/201299/…
Oct
1
comment Is POST for an element generally not exposed or invalid in REST APIs?
I do the reverse: PUT for creation and POST for update.
Oct
1
answered Multiple arguments in function call vs single array
Jul
26
comment Will SQL Server autonumber reuse a value if a record is deleted?
For MySQL's myisam databases if I recall correctly the last autoincrement was stored on disk, so no problems there even if you restart MySQL.
Jul
26
comment Will SQL Server autonumber reuse a value if a record is deleted?
Withy mysql and innodb databases, the last autoincrement is stored on memory (not on disk). So if you create a record and it gives you ID=1234, you delete it, and then create another record, it will get ID=1235. Because it had the last one in memory. But if you were to restart the server between the deletion of 1234 and the insertion of another record, the new record would get ID=MAX(ID)+1, so repeating 1234 (assuming 1233 was still there)
Jul
23
comment Is PHP “list()” language construct a bad convention?
Also good for exploding dates: list($year, $month, $day) = explode('-', $isodate); or the matches of preg_match: if (preg_match('/(.).(.)/', $text, $matches)) { list (, $first, $second) = $matches; } (notice the first comma to avoid $matches[0]. As list is a language construct and not a function, you can do that).
Jul
23
comment What parts of my configuration and my code should I not post?
some times blurring is done to prevent others knowing the company/product the asker is working for
Jul
19
comment Make shareware program free in some countries
@Heng-CheongLeong so for having a free license I should put my CC number? Very few people will do that, seems a scam.
Jul
19
comment Make shareware program free in some countries
Maybe you could, instead of using the IP to give away free licenses or not (and that may have a lot of problems or be easy to deceive your checks), use the power of the computer? If your program is running in a high-end computer, then charge a license fee. If it's running in some Pentium III or older, then it's free.
Jul
19
comment Make shareware program free in some countries
what happens when a user has no internet connection? It's free or not then? Also, when is this check performed? At installation-time? every start-up? When checking/performing updates?
Jul
5
comment Is fewer lines of code always better?
your semi-colon => butt relation made me remember this: bash.org/?925050
Jul
3
comment Best way to convert existing project to be open source in GitHub
You maybe could use the trick explained in stackoverflow.com/questions/2719579/… to a LICENSE file in the initial commit of the repo (not tested by me)
Jul
3
comment Best way to convert existing project to be open source in GitHub
remember to not commit/publish config files with users/passwords/sensitive information. I would not use license headers in any file, but rather have a LICENSE file in the root of the project.
Jul
3
comment When to use HTTP status code 404 in an API
Great, now the discussion has shifted from your work to the internets! It is unstoppable now!
Jul
1
comment How does the ? make a quantifier lazy in regex
They are two separate operators, and the ? has 2 meanings, depending on its context, same as with ^ that may mean beginning-of-line or negation if it is the first char inside a [] pair.
Jun
21
comment Is cloudera hadoop certification worth the investment
If I were a responsible of hiring in my company (I'm not), I wouldn't contract someone who has a certification on X technology but no experience with it. But non-technical HR drones would probably select your résumé only based on the fact that you have a certification on X technology that they employ (even if it was a w3schools "certification"). So probably you might get an interview, but going to it will be a waste of time both for you and the employer.
Jun
13
accepted If the model is validating the data, shouldn't it throw exceptions on bad input?
Jun
12
awarded  Citizen Patrol
Jun
12
comment If the model is validating the data, shouldn't it throw exceptions on bad input?
@BartvanIngenSchenau good catch. My applications always have been single-language, but it's good to think in localization problems that may arise in any implementation.