Better HN
topnewbestaskshowjobs
Log inSign up

codefisher

74 karma · joined Oct 25, 2010 (16y ago) · 47 submissions

Submissions

comment 16y ago · link · parent

At the end of the day this is why I don't use CAPTCHA's on my site, they can be broken by a bot that is smart enough. The better option is to use something to analyse the contents of the spam to decide what it really is, and there are some tools that are really good at doing this. Heck I even found for one form that banning 'http:// (and notifying users with JavaScript if they typed it) stopped 100% of the spam I was getting.

comment 16y ago · link · parent

Mine was similar, Python Python C/Java. Though there are half a dozen others that I am perfectly comfortable with.

comment 16y ago · link · parent

You might be able to copy the parser out of the Google Closure Compiler. http://code.google.com/closure/compiler/ you can be sure it works, and is stable. I think though it uses Rhino under the hood, so you could look at that too. http://www.mozilla.org/rhino/

comment 16y ago · link · parent

There are quite a few things you need to learn to be able to program well. One of the easy ones is syntax, which is what you have to learn to go from one language to another, in addition to the names of variables/functions.

What is much harder to learn, and is largely language independent is: 1) Problem solving - the ability to break problems down into simple task that then can be trivially solved. 2) Data structures - programs are unless unless they have data to work with. Knowing how to best represent it is vital, do you use an array, linked list, tree etc. 3) Algorithms - known ways of operating on data to produce some out come. Everything from using a loop to add numbers, to sorting lists, or adding a node to a red-black tree. 4) Design Patterns - know ways to structure code, in a tried and tested fashion. 5) Architecture and Interface design - how to structure your project as a whole (what goes where) and how to set how one portion interacts with all the others.

Along with many other things. Point being the first language you learn matters little, if you learn to program that cross any language barrier. I have not touched the first language I learned for almost a year, but have learned 2 others in that time.

Having said all that, I am most at home in Python because there I know many of the language specific features.

comment 16y ago · link · parent

Reminder to self, don't multi-task and half read stuff before posting comments.

comment 16y ago · link · parent

It is a pity that the API does not have a way of getting what appears on the front page. I was planing to soon create a script that scanned the front page, and then applied pg's algorithm from "a plan for spam" to remove links that I think are off topic. Actually turning that into a desktop client would be rather cool, or maybe a Firefox extension as that is more my kind of thing.

comment 16y ago · link · parent

I agree with you on 8) I don't see why it matters so much what style of braces are used as long as the block of code and I currently looking as it consistent. If future developers object that badly, there is also many many auto formatters out their to fix it.

the article is clearly rather dated, and a number of the points (as jws notes) are rather irrelevant now.

comment 16y ago · link · parent

Ditto the above comment. If users don't want to be asked if they want to download/open a file they can use the "Automatically do this from now on" option that Firefox gives them, or the equivalent in their preferred browser. Then users get their preferences, and the not servers forced on them.

comment 16y ago · link · parent

So far we have 3 of the 4 people post here. Can the last one own up? Or did someone underestimate how many people don't have a facebook account...

comment 16y ago · link · parent

If your really serious about developing stuff what will end up running on a Linux server, I think you should really be using Linux on the development machine. I know that is not always practical, but more people should do it. No one would dream of writing a Mac app on Windows, and I don't see why Linux should be any different.

comment 16y ago · link · parent

"If they provided a link to something supporting their position I'd probably pass out from shock."

Ok I will take that as a challenge to produce a link, so how is this.

http://scienceandpublicpolicy.org/originals/policy_driven_de...

Did you pass out?

My stance is that all the name calling (ie. deniers) does not help. In the field of science a healthy level of scepticism is required, and it helps further study. It is only when an issue becomes political (Global Warning) or religious (Evolution/Creationism) and leave their scientific basis that people get pilloried for saying they are not convinced and such n' such an issue is not up to scratch and needs more research to confirm or disprove it.

As the the 95% of people. Yes that stat would be right. 95% of people are always out of their depth in any argument of any complexity. But it says nothing about their position. I have lots of friends that believe things, but if faced with a skilled debtor can't hold their own position. Nor should they have to. Life is too busy to be on top of every issue.

comment 16y ago · link · parent

For those interested, the author of this was actually Guido himself.

I would have used "".join(map(chr, list)) myself. But I am not sure that was support in the version of python available at the time. It is equivalent to f6.

To some of those talking about the dynamic nature of python means you have to look up chr every time, there is a way to stop that, see this project http://github.com/rfk/promise/

comment 16y ago · link · parent

There are some interesting ideas to work around the problems with this method in the comments, such as hashing the ip with a secret string on the link to stop others making you ban all your users. And also sorts of other stuff - even putting a CAPTCHA on the ban page as an escape method. But in the end I think the method is flawed:

1) a singled infected computer on a network could take out a large number of users. 2) any thing doing prefetching will cause them to be banned. 3) there is a risk of taking out valid bots, and verifying them correctly is just too expensive for a large site.

My main issue with bots is their spam, so I just use tools like Akismet to keep that under control.

comment 16y ago · link · parent

How about people with low karma (like myself) not being allowed to comment on articles that appear on the front page. Then only people really interested in following HN, and trying to form some kind of reputation in the community would be able to get much exposure. Trolls in general I would think are much more interested in putting out comments that a number of people will see.

comment 16y ago · link · parent

Went and did a search on my email, the first time I recommenced it to someone else was the 13th Oct 2007. So yeah 2007 it is!

comment 16y ago · link · parent

He forgets what the main purpose of frameworks are for, doing all the boring repetitive bits, so I can get down to writing the new and interesting parts of my web app. For example doing form validation, and displaying the errors back again is really common, and annoying. Any good framework makes it painless.

And what about running on multiple databases. What happens if I need to be able to support MySql and Postgres? Really hard without a framework.

comment 16y ago · link · parent

It has been around for awhile, been using it since about 2008. Cool service.
12