8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 14y ago · link · parent
But where CSS really falls apart is in layouts. What is just a simple equation in a native application ends up being a myriad of hacks to get things flowing right in CSS. Javascript comes with the missing pieces, but introduces its own set of problems if you try to rely on it.
> the difficult of writing core graphics methods for every bevel, rounded corner, gradient etc has a lot of developers just using cut images for everything.
On iOS, the QuartzCore framework provides declarative methods for those common style choices (rounded corners, gradients, etc.).
comment 14y ago · link · parent
I guess if the codebase is a mess of spaghetti, that is another matter. I do always try to get the interfaces right from the beginning.
comment 14y ago · link · parent
If they actually refuse to go back and implement a better algorithm once the characteristics of the application are known, that is another matter. Do these people actually hold the same beliefs once they start to see the performance of their application rapidly degrade?
comment 14y ago · link · parent
I don't really know much about the farm on that end before that though. I should do some asking around.
comment 14y ago · link · parent
comment 14y ago · link · parent
Of course there is danger in that as well, but I see so many lament that they wish it was like it was in the "good old days", where good old days equals the approximate time in which they joined. The way to do that is to let them have the member base just as it was back then, while still letting the site naturally evolve for the rest.
comment 14y ago · link · parent
Actually, I would say your intent there was quite clear, which is where I came to realize that the code did nothing. Without that context, one could assume the method was used for its return value where the code could very well have had purpose as written.
What wasn't clear was how the count attribute was intended to be used throughout the rest of application. In the real world I would start to build a mental model around the uses of count, which was not available from your example. In terms of self-documenting code, I liken a short code snippet like your example to a sentence fragment in english. The entire sentence, or statement if you will, encompasses much more of the codebase.
This is definitely an fascinating topic, but unfortunately one that is very difficult to discuss for many reasons. I wonder how we can dig into the physiology aspects that you raise without the prevalent "my way is the only true way" attitude?
comment 14y ago · link · parent
If it takes person A five weeks to learn the study and it takes person B 10,000 hours to learn the study, after the next 10,000 hours of working in the industry, can we consider both individuals masters? Or are you suggesting that mastery is somehow proportional to time to original training completion?
comment 14y ago · link · parent
Anyone can learn how to play golf in just a few minutes, but what does it take to become a PGA-level player? The theory is that it only takes 10,000 hours of focused practice and it is currently being put to the test: http://thedanplan.com/
comment 14y ago · link · parent
Though, I think your example turned out to be a great one because it highlights that not everyone reads code the same way. Personally, I load large segments of code into memory and then mentally step through. You left me wanting more to see the context in which the method was to be executed, but I didn't really feel the need for comments.
However, with just the one method that you wrote in your example, that seems to indicate that you read just one function at a time. If you are not observing the code as whole, I guess a comment would help. I often find them taxing though, as they have to be read into memory as well.
I think that discrepancy is why the comments vs. self-documenting code debate exists.
comment 14y ago · link · parent
I would argue that in this case, it is far better to just understand the code and then fix it appropriately. A comment would leave you second guessing.
def auto_increment
self.count += 1
end
(though, for the purposes of self documenting code, count probably is not a great variable name either)comment 14y ago · link · parent
comment 14y ago · link · parent
I feel it is also important to note that the college educated gains made in this study were by people aged 25 or above. Those below that age are actually more employed with just a high school education for the first time. We can surmise from that data that experience is what has become important in the recession, which is also backed by my anecdotal experience. It is just that a degree actually did matter a decade ago, which left those without a degree lacking in the necessary experience today.
comment 14y ago · link · parent
comment 14y ago · link · parent
That seems like a silly statement. The jobs that most college graduates are fighting for were once, and often still are, done quite successfully by high school educated people. It is not that education matters in the workplace, it is just that the demand for those jobs has kept people trying to increasingly outdo everyone else in order to get the job. Education has been an easy way to do that.
Education doubly serves as an easy filter. You have probably heard your parents say something like "in my day you only needed high school." That is because there were less high school graduates during that time. If you threw away the resumes without high school, you could pare them down to manageable levels. In the meantime there was a big push to see more high school educated people. Suddenly, filtering by high school yielded too many results. Degrees were still relatively rare, so applying that logic allowed the filter to work again. But then the big push for college education started...
53% of recent college graduates are underemployed or jobless[1]. This seems to indicate that having a bachelors is not even enough anymore. "Everyone" has a bachelors degree these days, so why hire one of them when you can hire someone who has a masters degree?
The economy would do just fine if we had more high school (or less) educated people, but we would have to find some other filter, like gender, race, or religion and we have already decided that no company may filter based on those attributes. That leaves the infinite arms race of education where it is still socially acceptable to consider those without said education "stupid" and unfit to do the job.
[1] http://blog.fora.tv/2012/04/the-new-53-unemployed-college-gr...
comment 14y ago · link · parent
> The right metric is to look at percentage unemployment in each of these segments
I would take it even further and break up the high school or less demographic. Someone who could obtain a degree, but chose not to/was unable to attend college is not at all like someone who has no chance of graduating no matter what the circumstances. They really shouldn't be lumped together if we are trying to promote the business benefits of attending college.
If you have the opportunity to go to college, you have already demonstrated characteristics that are appealing to employers that are not present in the rest of the demographic. Due to the presentation, it is not clear in any way if college actually add any additional value or if those people would have achieved the same results regardless.
comment 14y ago · link · parent
comment 14y ago · link · parent
Anyone who has this mentality is not following their dreams, they are following the crowd. Crowd-followers rarely do find success. That is what stood out to me in the article. The people who are being written about are not really doing what they want to do, they are doing what is expected of them (go to college and then get a good job).
I wonder if the results would be different if these people struck their own path?
comment 14y ago · link · parent
comment 14y ago · link · parent
Programming is design, but programmers are routinely taught that they do not need to care about design. The de-facto training facility for the industry, a CS degree, rarely goes into artistic endeavours (naturally, but students rarely take it upon themselves to fill their skill gaps after graduation). In fact, it is the status quo for programmers to joke about how poor their design skills are.
Good programmers go over and above and study not only the theory behind programming, but also design. Until we start promoting that programmers must be good designers, the problem will continue.
comment 14y ago · link · parent
As a result, I feel that is a different matter to commenting for the purposes of code maintainability, which is what the parent poster is speaking to.
comment 14y ago · link · parent
Is that a problem? Even in code that has good comments, I always skip the comments and go straight for the code. Comments are okay if the code needed to employ hacks for some good reason, but otherwise I've never met a function that I wish had them.
I often wonder if people come from different backgrounds, which leads to completely different points of view on the matter. Personally, I find code easier to read than natural languages, but that doesn't mean everyone is the same and I respect that you might find comments useful. But why then assume that everyone needs comments?