802 reputation
515
bio website
location
age
visits member for 4 years, 3 months
seen 10 hours ago

Donate a cup of food for free: Click to Give @ The Hunger Site


12h
comment Is every number in the code considered a “magic number”?
Everything except 0,1 and 42 is magic
12h
comment Are all magic numbers created the same?
I once worked on a project where processes passed 8 byte messages (several, if more than 8 bytes needed to be passed). The first of these contained the number of messages blocks needed to contain the entire message. Someone had thought it a good idea to #define ONE 1 #define TWO 2, etc. When this was changed to total number of bytes I took great pleasure in changing the code to read #define ONE 8 #define TWO 16, etc
12h
comment How can I encrypt or remove readability of source code before publishing it?
I also like to use long names with visually similar characters. E.g, lots of letter L, but lower case, and digit 1, to get variable names like l1l1l1l1l1lll (maybe mix in a few upper or lower I too) Ditto zero & letter O. It effectiveness is somewhat dependant on font, but it throws another blocker in the way & slows the attacker a little. liI1liI1 :-)
1d
comment Is it good practice to inherit from generic types?
If you don't inherit from generic types, then why are they there?
1d
comment why do some job posts say “high pressure environment”?
So, Agile or Scrum or Kanban is the solution to high pressure? (!)
Dec
12
comment What is the best way to remember a successful execution over several program calls?
"I only want to check if the files I want to "put into" the .iso file were aggregated completely" - I never yet met a CD burning or ISO creating program that did not have a "verify" option. I am still not 100% sure of what you are doing ... multiple files --> ISO ---> verify (several times)? Why not use existing s/w? check this I only want to check if the files I want to "put into" the .iso file were aggregated completely or google for something like linux create iso command line verify
Dec
11
comment What's the scariest piece of Other People's Code you've ever had to maintain?
When faced with this, I always do a "mini-refactor". Not that I would dare to restructure the code initially, but every time I found out what variable AC3251 did, I would globally rename it. After a time that pays off to the extent that you might actually consider reorganizing the code.
Dec
11
comment Querying all data vs required data
Query for a single user's data. Or do you intend to read the whole table into RAM once and make a copy of it? If so, would your searching be more efficient than SQL's?
Dec
11
comment What is the best way to remember a successful execution over several program calls?
OIC, sorry (go ahead & reinvent the wheel, then ;-) Can you elaborate - will you only ever want to to remember success/fail, or might there be more data in future? Which o/s? And what if several builds are run in parallel?
Dec
11
comment What is the best way to remember a successful execution over several program calls?
Have you considered using a Continuous Integration tool like jenkins-ci.org
Dec
11
comment Looking for a simple BackOffice data management solution in .Net
You might get some help at softwarerecs.stackexchange.com It is mostly for people looking for applications, but I have seen a few questions like this answered there
Dec
11
comment Should I accept a job if pair programming is required?
Wow! Posted exactly one year to the day after the question.
Dec
11
comment Should I accept a job if pair programming is required?
From what you said, I think that you did the right thing. However, I imagine that you are also now looking for what you really wanted - "I'm looking for a job where formal design and development are used, as I hate my current job where we are "coding in the wild".".
Dec
11
comment .net or HTML5 or QT?
"4) Either Windows or Linux will do" BUT "3) It will be used for many years 10+ years". Look at the market share in tablets/smart-phones even today. I think you should be looking at those. Of course, browser based would make cross-platform no problem, but then there's that touch sensitivity request
Dec
11
comment .net or HTML5 or QT?
I think you are going to have difficulty with touch sensitive browser based apps
Dec
10
awarded  Civic Duty
Dec
10
comment Is catching general exceptions really a bad thing?
I upvoted both of you, but I think that you are thinking like developers, not users. A user generally does not care whether logging is happening, so long as the application is useable.
Dec
10
comment Concepts used for cross platform development
Well, both Lazarus & Qt have sockets support, so you wouldn't have to worry about that (wiki.lazarus.freepascal.org/Sockets and qt-project.org/doc/qt-4.8/network-programming.html). If you want to know more about how this works, look at the Lazarus wiki and its source code, or maybe also ask at the Lazarus forums)
Dec
9
awarded  Suffrage
Dec
9
comment Concepts used for cross platform development
If you know any Pascal then look at lazarus.freepascal.org But maybe you prefer to know how, rather than to do? Is your question about understanding in detail how frameworks do it, or do you just want to write some cross-platform code?