201 reputation
18
bio website
location Porto Alegre, Brazil
age
visits member for 3 years, 7 months
seen 2 days ago

Apr
7
awarded  Yearling
Apr
7
comment Should I represent physical accessories of a system as classes in software?
I think this is what I am going to do (due either to your explanation and its acceptance measured by upvotes). It doesn't directly solve the extension problem ("what if a new sensor is released having additional properties?"), but that should be rare enough to deserve an actual update.
Apr
7
accepted Should I represent physical accessories of a system as classes in software?
Apr
6
comment Should I represent physical accessories of a system as classes in software?
@RobertHarvey typically the value of each of these four properties. I would not rule out that in the future some physical sensors might have yet additional properties, implying adding more properties for that specific subclass.
Apr
6
revised Should I represent physical accessories of a system as classes in software?
edited title
Apr
6
asked Should I represent physical accessories of a system as classes in software?
Aug
30
comment Is it possible to speed-read code well?
I work with C# in Visual Studio Ultimate and the Architecture -> Dependency Graph gives a very good high level view. In other languages, some manual dependency-graph generation is possible using Graphviz.
Aug
19
comment How do programmers handle several versions of a same program?
""Free-Trials" tend to be easier to crack/reverse-engineer." Do you have any hard data on that?
Aug
10
comment Best practices for geolocation
@DanPichelman good point. That would be actually looking for points inside a bounding box centered at the user location. But unlike latitude deltas, which have the same distance-to-degree ratio, longitude deltas correspond to smaller distances at larger latitudes. That might or not be a problem, depending on the level of desired precision (rough vs precise).
Aug
8
comment Best practices for geolocation
The calculation is trivial (look for "Great Circle Distance" algorithm). The problem, in my opinion, lies in the assumption that the closest airport is the most convenient. There are a lot of factors influencing airport choice that are more important than raw geographical distance, IMO.
Aug
2
comment What is a good way to structure my UI classes?
I don't have experience with Java/Swing, but have with C#/WPF/XAML. After some initial suffering, we started to get good results following a simple rule: use your GUI toolkit the way it is supposed to be used. That you can get from documentation, from books about the toolkit, and by taking a look at some opensource code, for example at GitHub. But I would prefer some tutorials or documentation.
Jul
31
comment Should the commit history be used to convey critical information to developers?
+1 Quoting Jeff Attwood (although he talks about, ugh, "users"): "The next time you're designing [X], consider [client] myopia. You might be surprised just how myopic your [clients] can be. Think long and hard about placing things directly in front of them, where they are not just visible, but unavoidable. Otherwise they might not be seen at all." blog.codinghorror.com/treating-user-myopia
Jul
25
comment Why would programmers ignore ISO standards?
Some argue that (some) ISO Standards are a perfect example of the "Design by Committee" anti-pattern...
Jul
25
comment Why would programmers ignore ISO standards?
It doesn't help that a lot of ISO standards are expensive and/or hard to obtain... Even if you badly want to!
Jul
25
comment Is it possible to avoid enormously big switch in that case?
Also a good reading regarding the "polymorphism" part: sourcemaking.com/refactoring/…
Jul
3
comment File exists vs. File does not exist. Is there a difference in performance?
The third case (early termination) is called "guard clause".
Jul
3
comment File exists vs. File does not exist. Is there a difference in performance?
The second form might be semantically used to denote a guard clause: refactoring.com/catalog/…
Jun
18
comment How to transition from “help vampire” to “developer”?
Agreed. From my small personal experience, I think we won't stop learning new technologies, as they come and go all the time, but the most important knowledge in my opinion has to do with architecture, dependency and complextity management, etc. These apply to every platform.
Jun
16
awarded  Critic
Jun
11
comment Continuing to code on large projects
+1. One possible way to get this middle approach is to think/design top-down, and code bottom-up. Then you can code deepest, more elementary components first (those without dependencies), and then going up taking advantage of encapsulation and higher-level interfaces to keep complexity tractable on each layer.