HNHacker News
TopNewBestAskShowJobs

lyudmil

522 karma · joined June 24, 2009

I'm building a platform to allow anyone to build interactive apps for web and mobile (still in alpha):

https://www.guidedtrack.com

Here are some random experiments: www.github.com/lyudmil

If you want to talk to me, feel free to get in touch:

lyudmil.i.angelov@gmail.com @lyudmilangelov

submissionscomments
lyudmil··on Portrait of a N00b
Should a team write for the least common denominator? And if so, exactly how compressed should they make the code? I think the question may be unanswerable.

I found this point quite interesting. It clearly matters whether the question has an answer and I suspect there's a way to determine that.

If we buy into the whole "good programmers are 10x more productive than average programmers", then we can build a mathematical model of team productivity. We have X number of great programmers, Y number of average programmers, and Z number of bad programmers, each of whose productivities are mathematically (in this case, linearly) related. At this point the question becomes an operations research problem which ought to have a clear answer, which might be different depending on your team's configuration. (Question: Are there published, peer-reviewed papers measuring programmer productivity in this manner?)

Suppose we don't believe we can actually reasonably compare one person's productivity to another. It then would seem reasonable to try to avoid the question altogether. The issue arises from different skill levels on a particular team, so if you could somehow guarantee people will have the same skill level (at least as it pertains to the specific project) then you no longer need to worry about how to write your code. I think this is what things like pair programming are trying to address - creating a team that is somehow aware of their average skill level and writes code in the appropriate style.

This would also explain the general frustration people have with pair programming - if you haven't internalized the team's style, you're likely to either be either way over your head or having to slow yourself down and teach instead of getting as much done as possible.

lyudmil··on "I've isolated the bug to a database query"
I'm not proposing anything. My point is that there are other options.

As to the rest of your response, I don't mean to be rude but you're simply rambling. Obviously with a legacy system you work with what you've got, but the point is what you would choose if you had a brand new system and needed to make the call today. Choice of language depends on system requirements as we all know.

I really feel uncomfortable about all this posturing. I'm all for discussion, but if you honestly consider me a moron for saying what I have, you shouldn't have any interest in responding. Participating in a discussion merely to dismiss (and disparage) the other party is pointless and boring. Down-vote and move on.

lyudmil··on "I've isolated the bug to a database query"
The ONLY way? I call bullshit on that too. Databases like the one you mentioned exist, but I still think if you have business rules you want to enforce across all applications connected to a database, you wrap that in a service and let the applications call the service. Clearly stored procedures aren't the ONLY way.
lyudmil··on "I've isolated the bug to a database query"
I have a slightly stupid question. How is it that we've come to a point where we think of application and database development as separate things? I think this sets the stage for a lot of the problems you're getting at.

On the one hand we make-believe that all you need to know is how to sling code and as long as you can somehow get your data into the database and out, then you've done your job as a developer. I think that's bullshit. No one would use your application without the data, so the database is as much of your responsibility as any other part of the system. You should know how to use it well and should take responsibility for its quality.

On the other hand, there are things that belong in application code, rather than, for example, in a stored procedure. Most things you could do with a stored procedure probably belong in application code. The app is where the business logic is, the database is where the data is. As a DBA you aren't doing your job right if you feel OK about implementing business rules in SQL. It's much poorer at expressing intent than an OO language would be, it's less readable, and doubles the number of places you need to look for domain logic.

The WTF's go both ways.

lyudmil··on There are many kinds of ugly
There's an implied assumption in this post that handling edge cases or one-off, extreme cases necessarily is done by writing ugly/dirty code. I think the whole point about writing clean code is avoiding the hacky stuff even if the problem is messy. We're in the business of articulating solutions to messy problems clearly enough so that they can be executed by a machine. The best professionals in our field do that, and also make it so that other people can read and understand their work. That's what clean code is to me.

Admittedly, there's room for interpretation and a degree of subjectivity here. However, this doesn't prevent us from knowing about what dirty code is and I don't see a compelling reason why we ought to tolerate it (e.g. long functions with a lot of branching are difficult for everyone to read, so you shouldn't have any of those; same goes for badly named variables/functions/classes).

lyudmil··on 2 is a code smell
I try to be very pedantic about having the most terse, yet readable code possible in my application. This probably means that if, for now, I only need to know how to add two vectors, I will only include a function that adds two vectors and no more. I do realize there's hidden structure there waiting to be exposed, but programming is largely about elaborating the useful structures. If the author's examples had been in Java instead of Clojure, a lot of us would've been complaining that he's over-designing.

I do think the author has a point, but to me the logical complexity progression for a piece of code is:

1. Make it work in the "1" case.

2. If necessary, make it work in the "2" case.

3. If necessary, make it work in the "n" case (n variable).

I find this particularly useful for larger decisions: I can make this work right now if I add this tiny little wart? No problem. Another thing came up and a similar wart is required? Ok, I guess. A third? Time to find the structure that my code is telling me about and refactor to expose it.

lyudmil··on I am a job creator who creates no jobs
The failure I was referring to is essentially having to close doors for financial reasons.
lyudmil··on I am a job creator who creates no jobs
To pour on the skepticism, even if a small business does create jobs, one of the time-tested laws of small businesses is that most of them fail, thus destroying the jobs they created. On the whole small businesses are much closer to a wash in terms of job creation than we're likely to admit.
lyudmil··on Richard Dawkins: A Knack for Bashing Orthodoxy
Yes, I understood your position to be that from your previous comment. I'll repeat that I think you're missing the point.

The offensive part about religious fundamentalism isn't stubbornness or denial of respect. These are corollaries to dogmatic thinking, but not its defining features. Positions rooted in science are by definition not dogmatic and therefore cannot be fundamentalist. Lack of respect for differences of opinion is indeed a shared trait between Richard Dawkins' views and those of fundamentalists, but that's a rather trivial similarity. At their core, they are philosophical and moral opposites.

Consider as an analogy what would happen if I had a difference of opinion with my doctor about what my illness is that was completely counter to the best information available through examinations and tests. My doctor wouldn't be stubborn or dogmatic for considering me an idiot in that instance. My opinion has no value and therefore is owed no respect.

lyudmil··on Richard Dawkins: A Knack for Bashing Orthodoxy
It is not just as bad. It is not worse.

As you concede, Professor Dawkins' views are backed (and, in fact, a product of) science. This means that to the extent that anyone can be right or wrong about anything, Richard Dawkins is correct in his arguments. Maybe he isn't civil in the way he confronts people who disagree. Maybe he's ineffective in convincing them. Those are things that are important to you personally, but you're letting that distract you from the fact that what he's saying is true, which ought to be the only thing that matters.

In a way, I think this is a major way you and people who share your attitude towards Richard Dawkins miss what is perhaps the most poignant part of his message. His crassness is actually a rebellion against the passivity and political correctness that he feels constrains non-believers socially and politically. The crux of his message is a call to arms to those people, encouraging them to deny religion the automatic respect it has enjoyed for centuries. To say that he isn't meek enough in delivering this message is undercutting it's core.

lyudmil··on Krugman on BitCoin
One could make a case that moderate inflation isn't a bad thing. Inflation generally happens when the economy is producing close to its capacity (think of a factory working overtime to meet a lot of demand - at some point they make the same amount of money in fewer hours simply by raising their prices). This means that you'd also expect pretty decent employment, etc. You certainly don't want runaway inflation, but a healthy economy would have some.
lyudmil··on Krugman on BitCoin
People kept spending because there were investments available (housing) which outperformed bank interest rates, 401k's, and pretty much everything else. There was no incentive to save because they were saving merely by owning their homes. This happens when there are bubbles. I don't see how the Bitcoin economy is immune to them, so you wouldn't have actually avoided what happened merely by using a different currency.
lyudmil··on Goodbye, shitty "Car extends Vehicle" object-orientation tutorial
The criticism being put forward isn't at all arrogant. A tutorial for beginners that teaches you the wrong thing is incredibly detrimental. It's good to point that out and fix it.
lyudmil··on Our Commitment to Trust & Safety
I'm not sure we agree on the definition of "ethics".

Ethics, the way I understand the term, isn't a set of rules enforced by law. It's true that some laws are informed by our shared moral values, but in general law and ethics are independent. There is no legal punishment for acting like an asshole, but in human society you more often than not pay a price for it. There is no such onus on corporations and in fact the "business ethics" we govern our corporations by can easily be put at odds with what you and I would consider ethical behavior (see Ford Pinto [1]). As you point out, companies are responsible to their shareholders, but their stakeholders are a different (perhaps partially overlapping) set of people to which the corporation doesn't have to answer. It is in that sense that I said companies aren't intrinsically moral.

[1] http://en.wikipedia.org/wiki/Ford_Pinto#Allegations_and_laws...

lyudmil··on Our Commitment to Trust & Safety
Giving credit where credit is due, I think Mr. Chesky and Airbnb have done a good job here. Corporations aren't intrinsically ethical (by law) but start-ups are small enough that they can (a) afford to act human and (b) be held accountable by their customers in meaningful ways. This is why people like Airbnb and why they (myself included) were disappointed in the way the situation was handled. I loved reading Mr. Chesky's response and although this clearly changes things for Airbnb as a business, they are now a company I care to see succeed.
lyudmil··on Airbnb Nightmare: No End In Sight
Absolutely and let's assume they don't. If the facts of the case are as stated, then Airbnb acted unethically in my opinion. Since their lack of ethics cannot be punished in a court of law, the author claims her right to smear the company publicly. That's all this post is meant to do and I think that's just.
lyudmil··on Airbnb Nightmare: No End In Sight
I'm sorry, but how could you be surprised? If the facts are as laid out in the post, he doesn't always care about his customers enough. That wouldn't be opinion, but objectively true. I don't see any room for surprise here, especially given that most people here don't personally know Mr. Chesky and are likely more even-handed in their assessment than you are.
lyudmil··on Why I will never pursue cheating again
Measuring the value of work is a hard problem and it's politically loaded, so I don't really have a good answer to the "how" question.

In my biased opinion, it is morally necessary to reward people for how hard they work at least partially when I consider what most work (jobs) consist of, which is economically disenfranchising hard manual labor. If I am younger and/or healthier and/or genetically stronger I'll be able to have higher throughput at those jobs, creating more value. However, I'm not sure that it's moral for people who are older, sicker, or not as genetically gifted to be rewarded less than me for doing essentially the same job. I'm not talking exclusively about monetary renumeration, just general "rewards".

I'm sure not everyone buys into this, but it's what I meant with my earlier comment.

lyudmil··on Why I will never pursue cheating again
From the article: "my yearly salary increase was the lowest ever, and significantly lower than inflation"
lyudmil··on Why I will never pursue cheating again
You commit a fallacy here because your comment (as well as the one it's in reply to) assumes that work is rewarded proportionally to its value. It isn't. If you have the bargaining power to get paid more, you get paid more regardless of your contributions.

The assumption you're referring to I think has to do with the question of whether it's moral to reward people for working hard (even if inefficiently). I think there are clear situations where it is moral and necessary to do so. Perhaps not always, but at least sometimes.

lyudmil··on Why I will never pursue cheating again
Getting a raise less than the rate of inflation is losing money. His purchasing power declined.
lyudmil··on Once Greece goes...
Agreed. If I had taken time to edit my comment I would've probably taken it out.
lyudmil··on Once Greece goes...
You shouldn't look to real estate to evaluate demand. The housing bubble is the primary cause of the crisis. By most estimates prices have to dip another 10% in order for the market to return to its historical trend (which is to grow at the rate of inflation). There is no demand now because everyone knows housing is overpriced. That's a good thing.
lyudmil··on Once Greece goes...
Your thesis is surprising, so I'll have to look more into your data.

For now I will say that (1) because of the tight correlation between employment and demand, you'd need a very solid argument that demand has recovered but employment hasn't and why and (2) the data you have in your comment doesn't show that conclusively. The only measure of demand you site is Manufacturer's New Orders, which does show an increase. However, most of it is due to airplanes, which are volatile by nature (and is partly fueled by public defense spending). Also, the best predictor of future growth in that category (Core capital goods), while growing, isn't back to 2007 levels yet. [1]

I think it's too early to say demand is back, and it's lack also explains unemployment well.

[1] http://www.economicpopulist.org/content/durable-goods-new-or...

lyudmil··on Once Greece goes...
The first sentence could either be parsed two ways which yield opposite meanings or is grammatically incorrect. I can't decide which, but in any case you have a point. The first sentence was supposed to mean that the Greek economy was in bad shape and everyone knew.
lyudmil··on Once Greece goes...
To your first point - point taken. A better reference would have been the fact that the World Economic Outlook Database reported Greece had entered a recession in 2009.

I'm Bulgarian and none of the Bulgarian banks had any problems, but the Bulgarian economy has definitely suffered, for the same reasons as Greece. Both are relatively small European economies, so any dip in the European market has a pronounced effect (easiest to see in tourism). So, you're not proving anything by saying your banks had no problems.

lyudmil··on Once Greece goes...
Point taken. I agree that there is a lot of waste of EU funds. I could tell you stories about my native Bulgaria that would surely make you very angry.

I still think this is a separate problem. I think right now it would be more efficient to stimulate the Greek economy than it would be to just bail it out with austerity provisions. The analogy would be to finance your friend to go to school for a year or two and earn a degree to get a better job and pay you back - he wins (gets money in both the short and long-term) and you win (get your money back and a functional friend).

lyudmil··on Once Greece goes...
It's silly to say it had little to do with the global economic crisis. Economic production following the initial global downturn went down 8% [1], construction 73% [2], and retail 9% [3].

What's interesting to me is why you think what you think about the Greek economy or the reasons for its collapse? (A sincere question)

References (PDF, sorry):

[1] http://www.statistics.gr/portal/page/portal/ESYE/BUCKET/A050...

[2] http://www.statistics.gr/portal/page/portal/ESYE/BUCKET/A130...

[3] http://www.statistics.gr/portal/page/portal/ESYE/BUCKET/A050...

lyudmil··on Once Greece goes...
It would take too much work to transform your hypothesis into something analogous to what's happening with Greece, so I'll just point out the major leak in the abstraction.

In your example my friend and I are two economically independent entities. Yes, I care about him on an emotional level, but not lending him money will not affect my income. This isn't so when you talk about Greece and the EU. Also, as any developed economy, Greece has a large economic capacity - it has advanced industry, technology, tourism, education, etc. In short, it has a lot of assets, so lending money to it would be more like lending money to my gambling friend who just happens to be an immortal Stu Ungar - yes, he's wildly dysfunctional, but the potential ROI is almost always worth it.

lyudmil··on Once Greece goes...
You're right about what I'm arguing and you're right in your analysis.

I think the political situation is very unfortunate and that the large European economies which effectively control the ECB are screwing up. Partly I think the problem is that the media analysis has ignored the possibility the austerity measures could be the cause the complications. The facts of this article at least seem to lend credence to the "stimulus hypothesis" and to take credibility away from austerity. It is the media's job to point that out in order to inform public opinion so that the political problems you mentioned are overcome.

← PreviousPage 2 of 5Next →