Hacker Newsnew | past | comments | ask | show | jobs | submit | 2011-09-03login
Stories from September 3, 2011
Go back a day, month, or year. Go forward a day, month, or year.
1.Make things (caterina.net)
243 points by razin on Sept 3, 2011 | 31 comments
2.The Sugary Secret of Self-Control (nytimes.com)
236 points by gruseom on Sept 3, 2011 | 57 comments
3.A new locker system from Amazon sends your deliveries to 7-Eleven (thedaily.com)
179 points by aaronbrethorst on Sept 3, 2011 | 96 comments
4.Asking for accessibility gets you nothing but grief. (lightgetsin.dreamwidth.org)
154 points by ColinWright on Sept 3, 2011 | 136 comments
5.DigiNotar root CA trust removal follow-up (blog.mozilla.com)
147 points by lawnchair_larry on Sept 3, 2011 | 53 comments
6.If TV Companies Released Authorized Torrents With Ads, Would You Download Them? (techdirt.com)
144 points by jsherry on Sept 3, 2011 | 114 comments
7.Ask HN: I think My code isn't Good enough
140 points by mabid on Sept 3, 2011 | 91 comments
8.NSA built a NoSQL database (apache.org)
139 points by rschildmeijer on Sept 3, 2011 | 55 comments
9.Android Tricorder Killed By CBS (code.google.com)
110 points by bane on Sept 3, 2011 | 48 comments
10.How to Design Programs, Second Edition (neu.edu)
101 points by byproxy on Sept 3, 2011 | 18 comments
11.How to See a Supernova This Weekend From Your Backyard (wired.com)
90 points by wicknicks on Sept 3, 2011 | 32 comments
12.Gondor.io Django hosting is now publicly available (gondor.io)
87 points by SeanOC on Sept 3, 2011 | 29 comments
13.Police Assisted Apple Investigators in Search of SF Man's Home (sfweekly.com)
86 points by scarmig on Sept 3, 2011 | 59 comments

Facebook better wake up and realize that especially thanks to companies like them and their failure to self-regulate and respect privacy values outside the US, using Like-buttons for tracking is likely to become illegal in the EU and many other places in the next five years.

Technically, one could argue that they already violate existing laws, but incidents like these will make absolutely sure that these practices will be explicitly outlawed very soon.

It keeps surprising me how companies like Facebook and Google seem to be oblivious to the way privacy is perceived elsewhere, and are actively provoking stricter legislation than would be the case if they showed some respect. There is absolutely no question about these tracking practices being perceived as ethically unacceptable in many countries, so why provoke both negative publicity and legislation that is likely to handicap less intrusive solutions as well?

15.An accesible & intuitive layman's explanation of Bayes' Theorem (oscarbonilla.com)
81 points by lobo_tuerto on Sept 3, 2011 | 8 comments
16.Assembly tutorial for linux (cin.ufpe.br)
78 points by ConceitedCode on Sept 3, 2011 | 6 comments
17.A Tweet is Worth (at Least) 140 Words With this Compression Algorithm (thevirtuosi.blogspot.com)
67 points by Umalu on Sept 3, 2011 | 38 comments
18.Cockpit mounted camera in model F-16 (autoblog.com)
65 points by alexholehouse on Sept 3, 2011 | 12 comments
19.'We won and we didn't notice' - a conversation with Jeremy Allison of Samba (h-online.com)
65 points by rabelaisian on Sept 3, 2011 | 30 comments
20.HP 15c Scientific Calculator to be Re-issued (hp.com)
62 points by mechnik on Sept 3, 2011 | 59 comments

I know my code isn't good enough, and I've been programming for about 30 years! Not only that, my code isn't good enough, but I'm a great programmer.

I might be making some wrong assumptions, but I think the people whose code is really bad are the ones who think their code is good enough, or the ones who just code quickly without thinking. (I tend to think quite a bit and then code. In fact for the particular project I'm on right now, I'm doing a lot of thinking because I know the current architecture is not good enough. IT would be pointless to start writing code and then try to bash into shape- like building a stone bridge and then realizing you need a 57 chevy. No matter how much you take a hammer to that bridge it is never going to look like a 57 chevy.)

When I go back and look at code I did in the past, without having looked at it awhile, I see that it is really quite brilliant. I bet you'll see this in your code to. The thing is, the other person-- other's code, or your past code- is written when they have the full context of whats' being written in mind at the time they're writing it, and in the process of understanding their code you're going to see how their solution is more elegant than the naive solution you might have tried if you tried to write it just now.

Code takes thinking and refinement... and doing either will make code look better, and may be the source of your insecurity.

But, if your code really isn't "good enough", then maybe the issue is that your idea of "good enough" is too good. If its never going to be re-used, does it need to be reusable? If its not going to need constant maintenance, does it need to be beautiful? I have some code that I look at very, very rarely. Its in production, being used by customers every day, lots of customers. I know it is junk because at the time I wrote it, I was attempting to pull off a massive effort to get a product done. But the code isn't' throwing exceptions, it doesn't have bugs, and the customers are asking for new features, not fixes. So, I know its is ugly, I remember how ugly it was at the time, and every time I do have to go in I clean up bits and pieces of it. But it is working great... it is doing everything it should be.

And so, that code really shouldn't be good enough... because the time making it "good enough" is wasted time. If I wasn't the solo programmer on that project, then other programmers would likely work with me to clean it up... that's natural... but in startup land, sometimes ugly code that is solid is going to remain ugly code, because the point here is building a company.

Do you want a cathedral of very pretty code? Or do you want to build a startup?

I don't mean to denigrate your feelings... I think that your desire to improve is a good thing. I think the best thing you could do is to learn another language. (I'm just guessing that at 4-5 years you've probably really used one language a lot and 1-2 others a little bit.) Learning something radically different can improve you a lot. I'd recommend erlang (but I always recommend erlang.. it is the manly language that will make you a man (or woman))... or maybe you could use some scripting chops or whatever. Pick something out of your comfort zone, even if your'e going to be writing in your main language for a long time coming.

Knowing that other language will help you write better in your current language, and I think it will make you appreciate what you're writing in your current language better as well. I could be completely wrong here, but the best bang for the buck for me has been when I went outside my comfort zone and learned a very different language.

Finally, humans are bred, via natural selection, to have a certain amount of insecurity. We're supposed to fear that we're inadequate as it produces a wariness that helped keep us from being eaten by predators in the past.

Use it to keep you motivated to do better, but always make sure you're focusing on the right "Better". EG: IF you're in a startup, better is faster growth for the startup, not pretty code, though the latter can help the former.

Worse is when you worry too much about not being good enough and really end up not being good enough.

22.The Freelance Surge Is the Industrial Revolution of Our Time (theatlantic.com)
58 points by aarghh on Sept 3, 2011 | 42 comments
23.Groupon's PR Boss Suddenly Quit After Just Two Months On The Job - Here's Why (sfgate.com)
58 points by felipemnoa on Sept 3, 2011 | 31 comments
24.Ask HN: What do you use to test Frontend code?
56 points by outside1234 on Sept 3, 2011 | 46 comments
25. A religion to get foreign entrepreneurs into Silicon Valley? (sprovoost.nl)
54 points by sprovoost on Sept 3, 2011 | 30 comments
26.Microsoft Shifting To ODBC for SQL Server (redmondmag.com)
52 points by xradionut on Sept 3, 2011 | 11 comments
27.Erik Meijer: The World According to LINQ (acm.org)
51 points by mattpodwysocki on Sept 3, 2011 | 19 comments
28.How To Sell Your Company (techcrunch.com)
50 points by ramxpa on Sept 3, 2011 | 6 comments
29.Leaks show U.S. swayed Canada on copyright bill (thestar.com)
50 points by comatose_kid on Sept 3, 2011 | 7 comments
30.Binary bomb - a playful introduction to assembly language (stevebirstok.com)
48 points by vog on Sept 3, 2011 | 8 comments

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: