Reputation
1,315
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 10
Newest
 Yearling
Impact
~24k people reached

  • 0 posts edited
  • 0 helpful flags
  • 146 votes cast
Jan
4
comment Best way to deal with two independent booleans
I really hate translating boolean conditions to integers.
Nov
30
comment What is the difference between size and length?
I suppose that size is definitely more appropiate if the data is not continuous. Also note that sometimes count is used to denote exactly the same. In many cases the usage is subjective.
Mar
10
comment Why does the US government disallow dynamic languages for secure projects?
@miraculixx True, there is a reason why Java/C# and similar languages are being used a lot more than Ruby. They are defensive - they check everything. In C/C++ the defensiveness can be enforced by using a good coding standards. You can also enforce checks for everything. But can you imagine writing a sensitive application in ruby or javascript? The possibility for hidden bugs is great.
Feb
26
awarded  Yearling
Sep
24
awarded  Autobiographer
Jul
18
awarded  Nice Answer
Apr
30
comment alternatives to nested try-catches for fallbacks
In this context, method would be a better word than function.
Feb
26
awarded  Yearling
Feb
18
comment Private apps for iOS and Android
Google - developer.apple.com/programs/volume/b2b
Feb
18
answered Private apps for iOS and Android
Jan
26
awarded  Nice Answer
Jan
5
comment Two months in my new job, still having trouble learning a new codebase. How can I improve?
To "Purpose" I would add "terminology". Very important to know what a thing means because classes/methods usually use the same terms.
Dec
9
comment Is a senior programmers advice about always using books a good idea?
Reading - I haven't read a programming book in several years and I don't think I am mediocre. Everybody learns differently and there are other learning sources besides books. And good programming books for advanced programmers are rare.
Dec
6
comment Should I write an interface API before an implementation?
In my personal experience - it's good to design the architecture first - the responsibility of each class. You don't have to write it down, just think about it or sketch it on a paper. Then it's about personal preference but I recommend to write doc comments first for every method you start to implement. Writing docs really makes you to think about the functionality before you start writing code.
Nov
26
comment Should a class know about its subclasses?
No, no and no. This is not useful and never a good solution.
Nov
6
comment How would you know if you've written readable and easily maintainable code?
Of course, there are also style guidelines and some metrics that are very helpful to keep readable code, e.g. cyclomatic complexity.
Oct
15
comment Is garbage collection necessary?
@Ben GC based on reference counting is inefficient only if you have only strong references. ARC is automatic but you have to comply with a lot of rules - break cycles by using weak references, use defined method naming rules (method names starting by "init", "create", "copy" are special). Basically, the programmer needs to decide who owns an object. And it's pretty efficient. Don't mix it with a reference-counting based GC. With ARC the runtime doesn't search object graph for unused objects.
Jul
31
answered Why does the US government disallow dynamic languages for secure projects?
Jul
29
comment How do I deal with a difficult programmmer joining an open source project?
If the leader is not active, it's a reason to replace him.
Jul
8
comment A client wants us to screen work machines for pornography. Is it possible?
@BartSilverstrim smartphones? We have tablets!