Live data from Hacker News

A Damning Look at the Canadian Tech Sector

throwww.com

1–10 of 54 posts

Re: A Damning Look at the Canadian Tech Sector

#3
> article = Article.objects.get(pk=int(article_id,36))

You (assuming op is the maintainer of the site) should really handle any django "get" with a try/except block.

That, and you should also set debug to False on a production server.

Once the article exists again, it might be worth reading.

Re: A Damning Look at the Canadian Tech Sector

#6

> article = Article.objects.get(pk=int(article_id,36)) You (assuming op is the maintainer of the site) should really handle any django "get" with a try/except block. That, and you should also set debug to False on a production server. Once the article exists again, it might be worth reading.

I would recommend that get_object_or_404, with the 404 page enabled, would be better suited for this application. Very similar methods, but this way just handles all the heavy lifting.

https://docs.djangoproject.com/en/dev/topics/http/shortcuts/...

Re: A Damning Look at the Canadian Tech Sector

#8

> article = Article.objects.get(pk=int(article_id,36)) You (assuming op is the maintainer of the site) should really handle any django "get" with a try/except block. That, and you should also set debug to False on a production server. Once the article exists again, it might be worth reading.

I would recommend that get_object_or_404, with the 404 page enabled, would be better suited for this application. Very similar methods, but this way just handles all the heavy lifting. https://docs.djangoproject.com/en/dev/topics/http/shortcuts/...

Good point, that would be better.

Re: A Damning Look at the Canadian Tech Sector

#9
The author left out one point that is too often ignored.we just font have enough people.why don't we have amazon prime? Because Canada is just so huge,and our population is spread so thinly.the population is so much smaller than the USA that its so much harder to launch and support a country wide service.

Plus,we don't have LLC or a proper equivalent.

Re: A Damning Look at the Canadian Tech Sector

#10

The author left out one point that is too often ignored.we just font have enough people.why don't we have amazon prime? Because Canada is just so huge,and our population is spread so thinly.the population is so much smaller than the USA that its so much harder to launch and support a country wide service. Plus,we don't have LLC or a proper equivalent.

How do you do when compared to other small population nations like Switzerland or Israel, or others?
Post reply on HN