801 reputation
515
bio website
location
age
visits member for 4 years, 3 months
seen Dec 19 at 11:59

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


Dec
19
comment Why aren't there other programming languages that compile to Python bytecode?
Stand it on its head - why doesn't Python compile to an existing byte code, such as JVM ?
Dec
19
comment How to write freelancing in resume for programmers job
I have been freelance for 35 years, on 4 continents, in several industries & this is the first that I have heard of that. As the mathematicians say, "for small values of most".
Dec
19
comment Is using multiple static classes with maximum one public method is a good idea
Ick!! Yup, you should be "like" concerned. You need to learn more about en.wikipedia.org/wiki/… It sounds like everything is public to everyone :-(
Dec
18
comment Is every number in the code considered a “magic number”?
Everything except 0,1 and 42 is magic
Dec
18
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
Dec
18
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 :-)
Dec
17
comment Is it good practice to inherit from generic types?
If you don't inherit from generic types, then why are they there?
Dec
17
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 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
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
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?
Dec
9
comment Concepts used for cross platform development
Most (popular) programming languages will compile to run on most (popular) platforms. Your main problem is probably going to be the GUI, if you have one. If you know C++, or are willing to learn qt.io /qt-quick/ then take a look at qt-project.org
Dec
9
comment Why using string[] args in all main methods?
See publications.gbdirect.co.uk/c_book/chapter10/…