HNHacker News
TopNewBestAskShowJobs

hakaaaaak

219 karma · joined January 20, 2013

submissionscomments
hakaaaaak··on Soviet College Admission — My Dad's Story (1970)
Thanks to the OP for posting this. I want to read it to my kids, so they understand how lucky and spoiled we are.

I think the persecution of the Jews in any culture is wrong.

And so is the persecution of any religion.

I think the freedom of religion, including the right to pray in schools, on T.V. and radio, in government, etc. is a freedom that the U.S. was not only founded on, but what people have died for, and I am grateful for that.

I'm glad that things have changed in the former Soviet countries. I wish that things weren't changing for the worse here.

I have to put up with people telling me about "separation of church and state", which was never meant to be interpreted as it is today. If you can have atheism practiced in schools and taught by teachers, I should be able to have prayer in schools and religion taught by teachers. That is separation of church and state. No one should tell me what I can or cannot do as long as I'm not impeding others' freedoms and pursuit of happiness.

And I put up with my government that:

* attempts to restrict our freedoms in the name of protection

* tries to act in our best interest, but never actively asks what our best interests are

But, we are spoiled. I'll take my every phone call and Google search being scanned by the U.S. over the crap people had to put up with in the Soviet Union before.

hakaaaaak··on Introducing Roku 3
Since the 3 is coming out, here are some ideas for the 4:

* Voice recognition from a mic on the box and/or in the remote with commands that are natural to speak in each language it supports

* Cheap subscribe per channel model for each channel currently provided via Cable, etc. with month-by-month contracts (for HBO, etc. so you can quit when the season is over)

* More quality control over the channels. Don't shut out the channels that can't hack it, but instead help them not fuck it up so much. Watch their content regularly

* Parental control via something other than having to type in a pin (maybe a "safe word" if doing voice recognition)

* Streaming games, with some free

* More streaming channels that don't require as much interaction but with cloud-powered DVR rewind, etc. and commercial skipping, maybe even as a paid feature per channel

* Optionally completely wireless except for power (the box is so small that it flops around with the HDMI cable)

* Make Pandora stream music videos :)

hakaaaaak··on How to screw up your life by getting promoted
I swear that I've read this before on HN.
hakaaaaak··on Where TDD Fails
I should have considered Haskell. :) In other languages, it is true, so it isn't absolutely false.
hakaaaaak··on Where TDD Fails
> 100% doesn't mean you have good tests

That's true, but if you are really doing TDD the way some understand it (small methods, readily testable), then 100% test complete TDD means you didn't write any code you didn't test intentionally. By 100% coverage, I don't mean a code metric result from a tool, I mean that you followed TDD to a T and didn't write code that you didn't test carefully and intentionally.

The loose form of TDD you mention is not TDD by others' standards. Strict TDD never says, "those tests you wrote to test the app in the browser- those are enough; you don't need to unit test that, because you're testing all the important and edge cases we care about, even without unit tests." Yet, that may result in fewer, less brittle tests that can survive an upgrade or other massive changes in the implementation.

hakaaaaak··on Where TDD Fails
:) Kent Beck doesn't promote it anymore, but in the early 2000's that was what was understood.

From "Test Driven Development" by Kent Beck, published 2002: http://www.amazon.com/Test-Driven-Development-Kent-Beck/dp/0...

Here are some excerpts:

"What test do we need first? Looking at the list, the first test looks complicated. Start small or not at all. Multiplication, how hard could that be? We'll work on that one first."

The examples like this that were provided were of trivial methods. Trivial can be subjective, but, to me, methods whose bodies are almost always 2-5 lines long, not counting calls to other trivial methods, which may account for maybe another 2-3 additional lines, are basically trivial. It's one thing when you really don't need that much code, but it's another when you have classes upon classes upon classes upon classes, etc. to do something that could be OO and be in two classes with 1/2 as many lines and still be clear.

"Do these steps seem small to you? Remember TDD is not about taking teeny-tiny steps, it's about being able to take teeny-tiny steps. Would I code day-to-day with steps this small? No. But when things get the least bit wierd, I'm glad I can."

This is what Kent meant, but few of us picked up on it, per the first comment to his answer in your example from S.O. and per my experience.

I'm not blaming Kent, Ron, etc. or even saying that they are or were wrong. But, the commonly understood epitome of TDD used to be 100% test coverage and methods for just about everything. Those in the know said more like 60% was better overall but that was not really "true TDD". The implication of 100% "trivial" methods is more overhead for method calls (minor cost, depending, but can be cumulative, increase/decrease call stack size more quickly, which is inefficient), a large number of entry points (more stuff can be null/nil, cause NPE's or need checks if you don't know what is going to call it later, though that can be mitigated somewhat), and just generally too many LOC.

hakaaaaak··on Where TDD Fails
I will start doing TDD all the time when:

1. It is faster than developing without it.

2. It doesn't result in a ton of brittle tests that can't survive an upgrade or massive change in the API that is already enough trouble to manage on the implementation-side- even though there may be no functional changes!

Some other thoughts:

Unit tests that test trivial methods are evil because the LOC count goes up (maintenance anyone?) and the number of entry points and NPE possibilities or checks goes up (bugs anyone?) -> TDD promotes testing trivial methods -> TDD promotes evil

TDD increases the chance that more people will mock, and mocking can lead to brittle tests -> TDD increases the chance many of these brittle tests will be written -> Lots of brittle tests means that you throw them away later or rewrite the whole app (with more tests!)

TDD promotes 100% test coverage of the code you write -> Very, very few successful companies have 100% test coverage -> Code with 100% test coverage has brittle tests (period) -> TDD promotes things that are not best-of-breed practices in a quest for the false god of 100% test coverage.

I was a firm believer in what Kent Beck, Ron Jeffries, et al were pushing in the early part of the last decade. But since then I think most of the rest of the world already knows that TDD practiced religiously will lead to huge amounts of code that slow... down... development... and... make... it... easier... to... buffer... estimates... because when absolutely required you can stop TDD and just hack a spike into production. And... when the application needs to be rewritten because it is too crazy complicated to change all of those tests- you just rewrite it, and we all love greenfield development!

hakaaaaak··on Where TDD Fails
LDD - Love Driven Development sounds awesome
hakaaaaak··on How I spend my first 5 minutes on a server
> The safest code has to be open source.

This is a commonly held belief that is not true. I've been doing open source development quite a bit over the last several years and have seen plenty of insecure open source projects that were even less secure than I would see in the private repository of every place I worked. Here's why:

* Open source code gets more eyes on it, when it is well-used. But there are loads and loads of projects that are hardly looked at, and they have a greater chance to be used before they are thoroughly vetted.

* Those projects were most likely thrown up there by a developer like me who just hacked something up quickly to solve a problem. Once done with the problem, the code stays up there and I just let it atrophy. That consists of 95% of my projects, at least.

hakaaaaak··on Are You Living in a Fourth Amendment Exclusion Zone?
It isn't just the everglades. Most of the area covered is rural, swampland, farmland, etc. and would not be under suspicion, ever. It is a ridiculous map. It would be one thing if waterways and major cities were highlighted, but it is just over the top, completely. Highlighting all of it makes people in those areas worry unnecessarily when they need not. Finally, Homeland Security does not have the resources to implement searches in all of these places, nor will they knock on the door of every random apartment in Washington, D.C.

This is a sideshow to real privacy problems and a waste of my time and yours. The ACLU should be focused on the fact that our communications are being monitored, because that is something that is much more worrisome.

hakaaaaak··on Gravitational Lensing to Observe Ancient Earth
Posting obligitory link to:

http://en.wikipedia.org/wiki/Time_viewer

Of course someone should mention Father François Brune and his Chronovisor: http://en.wikipedia.org/wiki/Chronovisor

But none of that is real.

hakaaaaak··on How I spend my first 5 minutes on a server
The problem I had with the article was that it said what user accounts he set up, how their security was based, etc. Why!? Don't give away that info in a blog post! Even if it is something a hacker could easily find out if they wanted, by doing that, you paint a target on your back.

If you are walking past a dark alley in a big city, you don't say, "I am a blue-belt in karate, and I have a wallet with $300 in it." They have a gun, and they'll take that wallet, thank you.

I totally appreciate you putting all those links together, but I would hope that others remember that loose lips sink ships when it comes to security. And from a hacker's perspective, what's the fun in social engineering if someone just blabs it all in a post?

hakaaaaak··on JS roguelike game: The Royal Wedding
Can't find the murderer. :(
hakaaaaak··on White House Response to “Make Unlocking Cell Phones Legal”
> B. that the executive branch has any position to change laws.

I am so glad that someone actually said this! We used to understand that the president's primary job was command-in-chief of the armed services and to represent the strength of our nation, in a diplomatic way of course. More recently people think that the president is the commander-in-chief of the legislature. WTF. That is not his primary job. He can veto and try to enforce law, but not legislate.

hakaaaaak··on Are You Living in a Fourth Amendment Exclusion Zone?
I am in support of privacy and therefore I'm in support of the ACLU in theory on this one, but...

That map is fucking ridiculous. There is no way they would search in the middle of a rural area without access from waterway, etc., and yet that is what much of this map highlights. Even if it is "factually correct", it isn't realistic, even for the most nutcase DHS employee. The everglades? Give me a fucking break.

http://cdn.storyleak.com/wp-content/uploads/2013/02/fourth-a...

hakaaaaak··on A comet headed for Mars
I hope it misses. It will mess up our equipment on Mars if dust is flying everywhere.

But if it does get hit, I hope that the people of our planet can start focusing more on technology development for energy, propulsion, protection, insulation, and terraforming. As for everything else (other than praying), those can be extracurriculars. The main obstacle to this would be the lack of immediate incentive. The asteroid mining companies try to provide future incentive by saying there are resources to be mined. However, to completely change our culture, education, and occupations to gear towards space colonization, we'll need a lot more than that.

hakaaaaak··on Adderall Addiction: The Last All-Nighter
To others in similar situation, either considering it or on it, or just taking some other stimulant like caffeine, or are just tired all the time:

* If you have ADD and it is working for you and you are happy, ignore this shit and do what you need to do.

* If you have ADD and take it, but you don't like how you feel while you are on it, talk to your doc and have him/her help wean you off of it or find a different dose or med.

* If you are fat or not but don't get enough exercise, please get exercise and stop eating fast food and drinking any kind of soda (diet is just as bad). I am overweight now and have been normal weight before when I've exercised regularly and it made a big difference both cognitively and with energy, etc. I need to do that again. I learned the hard way not to diet though. It worked but it is true what they say; you gain it back +10 lbs (or more).

* Replace soda with coffee or tea, even if you hate them. I really hated them. I feel much better not drinking diet sodas constantly. Try to eliminate caffeine if you can.

* Try eliminating/limiting aluminum (drinking from cans, using hair products with aluminum, etc.). (May be unnecessary, but lower your Alzheimer's risk.)

* Try taking daily vitamins (Centrum, etc.), Fish/cod oil pills. Consider taking a baby aspirin each day if you are 40+. Don't overdose on daily recommended intake, even when sick! Some things can be really bad. Don't overdose on ginko, etc. either!

* There is nothing wrong with wanting to be your best, but you'll be your best when you aren't cheating and hurting yourself, and that is as good as you need to be. Even if you think you will get shot or people will die if you don't take stimulants, you can stop and it will be better- for everyone.

* Talk to an ENT about sleep apnea. Losing weight is key no matter what, maybe stop drinking water and eating before bedtime, and no blue light or monitors or T.V. for a few hours before your 8-9 hours sleep. But after you do all that, if you snore or don't dream regularly and feel like crap and hate your job, get help.

If you are like me, you have done a lot of this because you think you deserve it. I feel on a regular basis like I don't deserve to have what I have and that I'm a failure. In many ways, I am a failure; but mostly because I'm doing it to myself. I eat too much. I don't exercise. I hate my job. I think I should die. I feel like I need the food so my brain won't get distracted by being hungry. I feel like I don't have time to exercise. I feel like it is my fault that I hate my job. But, all that is crap. I need to take care of myself, and so do you! Just go on a short walk tomorrow, and the next day, and the next. Eat 1/2 as much as normal if you eat too much. Drink less caffeine. Talk to your doc about changing your meds or anything at all that you're worried about. Get a hobby and get outside more. Make friends that do healthy things. Get a job where you can live healthier and work a normal workweek.

hakaaaaak··on HIV-Infected Infant Cured With Early Use of AIDS Drugs
Thanks! So basically what you are saying is that if the virus isn't replicating, then no cells are carrying the virus and the patient is cured? Are you absolutely sure that conclusion is definite? For example, some cells could have HIV and that HIV has not entered the bloodstream and show up in tests. The brain could be an example of an organ that might continue to have HIV, because of the blood brain barrier, unless HIV could pass through it: http://en.wikipedia.org/wiki/Blood%E2%80%93brain_barrier
hakaaaaak··on A Practical Guide to Using Signed Ruby Gems - Part 1: Bundler
imo, the only way to make this work is going to be to force it, and boy are you going to make a lot of people very unhappy if that happens.
hakaaaaak··on Don't Be Distracted by Superior Technology
The point that the OP is making is not to avoid new technologies, but to avoid technology that isn't ready for prime time (and higher ed efforts are a great examples of this). That is "ok" advice in many cases, but don't avoid things because they are new. Few get great jobs and salaries for failing to take risks.
hakaaaaak··on Map Shows Where 220mph Trains Would Go in the U.S.
Does anyone else see something wrong with Chicago being the central hub (specifically regarding our president's past history in Chicago)? Sure, it's not exactly like it would have been if Bush (W) proposed a large rail hub in Crawford, but Chicago isn't exactly the only choice for such a hub either. In fact, why not avoid a large hub?
hakaaaaak··on KISSmetrics' Guide to SaaS Pricing
"Your goal = prove that the product can be sold"

Noooo! This makes it sound like you can start with a pricing model that is way off and change it later. When you change it, you better be charging for something different, or customers will be pissed. Netflix is perfect example. Great service, great product, and then they lost a lot of customer when they said, "Instead of paying A and getting X and Y, we're only going to give you X for A, and you can pay B for Y." If you do change pricing, you need to change the product package in a way the customer can justify.

hakaaaaak··on James while John had had had ... had had had a better effect on the teacher
http://www.ci.buffalo.mn.us/Admin/Citycode/1004.htm

> Subd. 14. C. Notwithstanding the language contained in Subdivision 6 of this section, all “potentially dangerous animals,” as defined in this Ordinance, which are outside of the owner’s residence, must be kept on a suitable leash, or in an enclosure which restricts the animal’s ability to egress from the owner’s property.

Buffalo buffalo are not buffaloed by fences, but it might buffalo a Buffalo buffalo to see another Buffalo buffalo on a leash.

hakaaaaak··on HIV-Infected Infant Cured With Early Use of AIDS Drugs
> A vaccine is not a cure. It's prevention

True.

My point was that the title of the post indicated that the child was cured. We don't know that yet, and may not know for some time. It will be nearly impossible to eradicate HIV without prevention. If this child has unprotected sex as an adult thinking that it is cured, is that safe? We don't know. Maybe the virus will show again in their adulthood.

However, if a vaccine is found and we can prove the vaccination works, that provides a lot more security. Because of many of our parents getting vaccinated, Smallpox got to the point where their children (us) didn't have to get vaccinated. That is where we need to get with HIV. Because of AZT, etc. people just assume it is more of an annoyance now, like Herpes that can be managed. We need adequate resources dedicated and I am concerned that touting a cure that may not be is not in the public's best interest.

hakaaaaak··on HIV-Infected Infant Cured With Early Use of AIDS Drugs
"With no signs of the virus for 10 months..."

Does this mean that the virus could still be incubating in cells and some sort of stressor could cause the virus to come out, similar to those that have had Chicken Pox getting Shingles later in life? If so, is it really a cure? To me, a vaccine that has passed all trial stages and works almost 100% and w/few side effects is a cure. I don't want to belittle this miracle, but complacency caused by misleading news is much, much worse than playing it down and getting it right before announcing there is a cure. Hope is a wonderful thing though.

hakaaaaak··on Could the ancient Romans have built a digital computer?
The Romans did something more masterful than building a computer. They built an empire with a system of roads, etc. without which, the Europe and the U.S. probably wouldn't exist today. But the incompetence of their emperors and the selfishness of their people eventually led to their demise. (They should have been friends with the huns, or have been able to adequates protect themselves.

Sure they could have built a computer if they had learned the technology. We are still amazed now as we learn of methods and technologies that human cultures had before us. Humans are much more able than we give them credit, and much more innovative than history endures and relates the resulting inventions.

hakaaaaak··on Why was my email leaked?
Fortunately, GMail handles almost all of my spam, so this stuff is a non-event for me. But I don't like that they may have been a security breach. Thanks to whomever HN'd this so it would get attention.
hakaaaaak··on Leaving your job to go create something awesome
> What if skills and dreams are completely out of reach from each other?

That is right on. Every time I list the things that are important to me that I love and/or would love to do they don't match up with my skills or they won't make me any money, with the exception of the generic "start your own business", so I'm doing what I don't really like all that much to be able to have a business, which I do love. It probably isn't a terribly great idea. But, I'm excited.

hakaaaaak··on Leaving your job to go create something awesome
All good stuff to know. Thanks!

> Especially this notion of "I don't have a an idea". There's a simple answer to that. Make that your intention, make it your job to get an idea.

Yeah, I've tried that. I've read "48 days" and got stuck at the point it says "what do you want to do". I emailed them and told them this. They tried to help. It didn't (at all). Basically, I want my own business. I want to work from home or somewhere where I control my environment and location. But the main thing is that I love is my family. I will continue to do the shit I am tired of doing (tired of it since 2003) because it continues to pay the bills. I've wanted to be running my own "shop" since ~2007. I've read lots. I've listened to lots. And I just keep getting older and dumner. So now I've actually started to do more than just buy a domain and sit on it or talk about doing things. I've started, but I'm not totally in love with it. I still don't know what I want to do when I grow up, because when I list those things, it sounds like an uber rich kid philanthropist, not someone who is service-oriented. When I think about the things that I would most love to do in terms of work, it would be helping others and feeling competent and helpful in my own business. That's all I know. That's not enough. So "figure it out" doesn't help me anymore than a shot in the leg helps someone to be motivated to run. But, I'm trying. I have something going. And it's the first time I've been excited about work in a while.

BTW- that link you posted is awesome, but here is a tough quote from it:

"But I don’t get close to anyone bringing me down. This rule can’t be broken. Energy leaks out of you if someone is draining you. And I never owe anyone an explanation. Explaining is draining."

That is both true, close to home, and also sounds so selfish. I think you need to be there for your friends- your real friends at least- and family like he said, and that can really mean that you get drug down. By the same token, I drag them down. I think this quote is about 50% right then, but the rest of that post is right on.

hakaaaaak··on Leaving your job to go create something awesome
Have you been residing in the U.S. doing independent contractor work and selling support for your open-source projects from the U.S. to other U.S. states, Germany, Australia, G.B., etc.? If so, let me know, and I'll definitely send you something. It would be terrific to have help!

I'm more interested at the moment in just basic things like the legalities of dealing with these states, if I really need something to help with the various sales, etc. taxes and what kind of plan to get or whether I can farm that out via some reputable e-commerce solution that handles these things already, how to make contracts and quotes for these companies. How to translate "work for hire" and "you are not paying me for copyright for code I write in this open source project". Whether I need to be incorporated to do business with them. I know LLC is primarily to write off taxes, and that I'm fairly sure that I need business insurance, because I don't want to lose my life savings in a lawsuit.

Basically, I need an accountant with lots of U.S./Int'l experience, an international lawfirm, a psychoanalyst, a friend with similar experience, and a few advisors.

← PreviousPage 2 of 6Next →