HNHacker News
TopNewBestAskShowJobs

TMK

48 karma · joined June 15, 2011

Laziness is a depression. Procrastinating bastard, but when working the work will get done.

http://aleprok.eu http://twitter.com/ToniKorpela

submissionscomments
TMK··on Ask HN: When your startup IDEA has already been built by someone else?
If you do not want competition then find an idea where there is no products already, but this will be quite hard as there is so many companies already making products and lots of em.

If you want to compete which might be fun and drive you to make your service/product better and better everyday. Then do that and try to survive.

TMK··on Ask HN: How to learn how to test code
One thing, run your code through debugger after successful compilation with warnings set as errors. If your code does not compile when the warnings are set as errors, then fix them. Afterwards run your code in a debugger. Do this as often as you can.

Unit testing is checking that function returns the correct data in different scenarios. This can be easily done with unit testing functions for your language.

For example C preprocessor macros I use for unit testing.

#define equal(a,b) printf("%X == %X = %s\n", a, b, (a == b) ? "true" : "false");

#define diff(a,b) printf("%X != %X = %s\n", a, b, (a != b) ? "true" : "false");

TMK··on Ask HN: How Do You Consume Hacker News?
Has the news.ycombinator.com open on a tab in my chrome and check out the news about every ten minutes when I am on the pc to see if anything interesting has popped up.
TMK··on Ask HN: How many lines of code per day?
Can write easily few thousands of lines of code in a day if I really want to do that, but SLOC is not good metric like others have already said. One reason for this is that you can write much code, but is it worth it when you could possibly do the same thing with way less code.
TMK··on Ask HN: What are the technologies used by Anonymous & Lulzsec?
They cover their tracks with p2p, tor, Virtual Private Networks.

They use denial of service attacks and some of them have bot nets to do that.

Most of their hacks are SQL injections, though they probably have some more advanced hackers available.

TMK··on Brother Needs Help Learning to Program
I agree almost with everything you said, except I forgot to mention in my comment that the order I listed the languages would be good way to learn them.

Though about PHP. I don't see it as useless language if you learn Python first. One thing I have noticed is that PHP hosting services are offered more than for Python, which makes it kinda easy in my perspective to use PHP for web development. PHP does offer everything you need for web development in the standard libraries, I have never had need for using any of the existing frameworks even though they make MVC easier.

You can always write desktop applications with PHP if your really want. Look at something like PHP-GTK.

TMK··on Brother Needs Help Learning to Program
To learn programming with python he should head to the python documents page. http://docs.python.org/py3k/tutorial/index.html

To learn programming with PHP he should head to the PHP manual. http://www.php.net/manual/en/

To learn C or C++ I suggest on reading the standards, even though they might be somewhat hard to understand, but they have the best information available on those languages.

For C http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf For C++ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n309...

TMK··on Ask HN:Solo Hackers: What steps do you take when starting a new project?
I just open the text editor and start writing code. The amount of planning depends on how complex I think the project actually is.
TMK··on Poll: How many unread email do you have?
0 unread emails if my spam box does not count.
TMK··on Ask HN: Which programming language has the best documentation?
C ISO/IEC 9899 - 1999 Standard is my favourite piece of documentation.
TMK··on What is your opinion on Audio Books?
Audio books are nice, if the person speaks really clearly on them.
TMK··on Ask HN: Have you been offered money for a disguised ad on your website?
black hat would be hacking websites and adding those links to he hacked websites. :)
TMK··on Ask HN: So what is the best way to hire developers?
Just a stupid idea. Get those applicants to write punch of functions which can be used on the development of the product. Give them specification of the function and they should be able to write it. Hire the one who's function is the best. xD
TMK··on Ask HN: What was the first website you ever built?
It was 96 and I was 6 year old. I built offline pages, by modifying websites in the web after I found that I can see the html source code. Though back then I didn't know how to read yet so it was more about testing out how the layout looks nice instead of the content. Would still have the pages if my really old laptop's hard drive would still work.
TMK··on Ask HN: Review my startup
It is not great way to gather information about illnesses because when those people googling for information about illness go actually to meet the doctors they tend to know their illness better than the doctor when the doctor in reality knows it better than non-trained sick person. This is already happening in here and it's making the job of real doctors harder because they have to prove the patients information wrong.

Though yes this might create cheaper option for basic health care in the US where it is not already paid by taxes.

TMK··on Ask HN: is there a place where one could get help with programming in chat form?
Freenode IRC network has several language discussion channels and people are quite helpful in them.
TMK··on [dead]
public boolean CmpSquareOfAgeToYear(int age, int year) {

    if(age * age == year) {

       return true;

    } else {

       return false;

    }

}
TMK··on Hackers Wanted (Unreleased Directors Cut)
Have to say that was nice documentary.
TMK··on Ask HN: Where should I begin learning low-level computing, asm?
From www.artofasm.com/index.html you can find art of assembly language online books, good place to learn assembly
TMK··on iCloud Logo Uses the Golden Ratio
Golden ratio is (1 + sqrt(5) ) / 2 not 1.6 / 1
TMK··on Ask HN:CPAN like archive for c
Cool, didn't know of ccan.
TMK··on Ask HN:CPAN like archive for c
Site which collects C libraries and snippets would be quite cool and useful. It's pretty hard to find C libraries by googling.
TMK··on Ask HN: Are closed social networks as good as they think they are?
Well it really depends who are in these exclusive communities and how active they are in the community.
← PreviousPage 3 of 3