Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
601.
▲
by
irahul
14y ago
As I mentioned elsewhere, I find it hard to believe that all females(or males) exhibit same behavioral and learning traits. And even if this happens to be true, then why stop at gender-segregation? How about divide on gender, then divide on
602.
▲
by
irahul
14y ago
> I saw Dave’s behavior as a challenge, a call to action. And it was at that moment that the gender difference became most apparent to me. Oh, for fuck's sake, how is some Dave being jerk is making gender difference apparent? The guy wa
603.
▲
by
irahul
14y ago
Your comment, apart from "pretty nice summary", is talking about something totally unrelated to the posted article. You should have made a separate "Ask HN" thread. As far as discussing hardware goes, you can post articles yourself.
604.
▲
by
irahul
14y ago
Let me rephrase. Dynamic languages aren't conductive to a subset of re-factoring - the cases which involve renaming identifiers or changing types throughout the project.
605.
▲
by
irahul
14y ago
> Sure there is. You just need code tracing and full test coverage. You can't do it from the source alone, sure, but that doesn't mean it can't be done. The analog would be driving to New York from Bangalore. Sure it can be done if I ar
606.
▲
by
irahul
14y ago
> No offense to you personally, jellicle, but why is this the top comment and why can't I downvote it? It's the top comment because HN's formula(votes, time lapsed) ranked it highest; and you can't downvotte replies to your comments.
607.
▲
by
irahul
14y ago
> Where do you put the brains on though? In the IDE/programmer or in the language? Dynamic languages aren't conductive to re-factoring, and static languages are. http://news.ycombinator.com/item?id=4057593 I don't see how it is a ques
608.
▲
by
irahul
14y ago
> The tooling around dynamic languages is almost laughably primitive and limited in comparison. Somethings just can't be done. class Foo: def foo(): pass def bar(f): f.foo If you re-factor Foo.f
609.
▲
by
irahul
14y ago
> Person A spends four years getting a BS in CS at a top-tier school, learning about programming at least for a few hours a day on average, Real world might be different, but I don't think a CS degree should be teaching programming at
610.
▲
by
irahul
14y ago
I think you are arguing against a claim I didn't make. Your first half of the post about compiler classes and other tougher courses are giving me the perception that I somewhere claimed CS education isn't useful. I didn't make that claim. I
611.
▲
by
irahul
14y ago
> The question posed was "how do they differ?" not "how important is that difference?" And the question arose from the claim that the formally taught and self-taught programmers take different approaches in general. It goes without sayi
612.
▲
by
irahul
14y ago
> I can't talk for the parent, but one significant way I expect people with formal training and people without it to differ is in how the knowledge of data structures and algorithms affects their work. And how often in your experience y
613.
▲
by
irahul
14y ago
Add me to the list of people who are curious and don't agree at all with your claim that people with CS background approach regular problems in a fundamentally different way. The only times when the CS folks' approach differ is when they ca
614.
▲
by
irahul
14y ago
I am neither a lawyer nor an American, but if the claims in the article are true, the law wasn't followed. The outrage is over nullification of the constitution. > Ok I get it, the US is trying to apply their laws onto the world and th
615.
▲
by
irahul
14y ago
> Or just xrange(num) and then, as in my original code, output *= num + 1. :-) HN ate your asterisk(it uses asterisk to mark italics), or something wrong with my chrome app for HN. In your post, I saw: def Factorial(x): output = 1
616.
▲
by
irahul
14y ago
Do you use Moose, or MooseX::Declare? Moose has a startup penalty, but when I am willing to accept that, I would rather use declare extensions as well.
617.
▲
by
irahul
14y ago
> Based on the examples, I presume xrange(x) is every integer up to but not including x Yes. That makes my Python example incorrect(should be xrange(2, num + 1)) > 1..^$x in Perl 6, don't recall if that's the Perl 5 syntax or not. P
618.
▲
by
irahul
14y ago
I don't program in perl now a days. But when I did, I generally used perl's shortcuts a lot. For example: return reduce(sub { $a * $b; }, 1, (1..$n)); would be: reduce { $a * $b } 1..$n; This my $output = 1;
619.
▲
by
irahul
14y ago
> def Factorial(x): output = 1 for i in xrange(x): output = (i + 1) return output Umm, did you mean: def factorial(x): output = 1 for i in xrange(2, x): output *= i return output Here are the
620.
▲
by
irahul
14y ago
> In addition to the API documentation, there's the "Java Learning Trail", which is a set of step-by-step tutorials with numerous screenshots and tons of example code: If you are already a programmer, you will be able to complete this t
621.
▲
by
irahul
14y ago
Fair enough. May be it's me but I find Python/Perl docs more intuitive. I find it difficult to figure out how to do something by reading Java docs. Personal preferences aside, I would say Python/Perl docs are as good as, if not better, than
622.
▲
by
irahul
14y ago
> It's hard to find any language that has better online documentation than Java. I don't see how http://docs.oracle.com/javase/6/docs/api/ this is better documentation than http://docs.python.org/library/random.html or http://perld
623.
▲
by
irahul
14y ago
I don't know. The landing page http://www.portent.com/ is painfully slow for me. The optimization listed are mostly frontend optimization. The first thing I would do is to figure out the bottleneck. curl -w "\nTotal time: %{time_tot
624.
▲
by
irahul
14y ago
> Linus also works at Google Linus works at Google?
625.
▲
ITA on Python(2007)
(eweek.com)
1 points
by
irahul
14y ago
|
0 comments
626.
▲
by
irahul
14y ago
> Today when you search for 'random.choice python' you get to the random front page with 20+ random I prefer a single page for random than having 20 something pages for random.x. Here is the doc for random.choice: random.choice(se
627.
▲
by
irahul
14y ago
> Last year, we switched a 55k loc Spring MVC (with JAX-RS for the json api) over to Django (using tastypie for the api side and celery for offline tasks). The result ended up being little over 8k loc of Python. While comparing loc, tak
628.
▲
by
irahul
14y ago
> http://freemarker.sourceforge.net/ and ditch JSP or use pure JS+HTML. You said frameworks don't decide expressiveness. I was quoting an example that they do. Whether you use jsp or not is tangential. Java isn't anywhere near python
629.
▲
by
irahul
14y ago
> Expressive lies in the language not in the framework, For me, expressiveness is the sum of language expressiveness, framework, culture and api design. For example, see this crime against humanity <%@ taglib uri="http://jav
630.
▲
by
irahul
14y ago
> And the last time you use Java was....5 years ago? > I know Rails and Django and I used cherrypy, cheetah, and sqlalchemy as well, and Java is on par with both modern frameworks if you know to choose the right frameworks. What ar
More ›