News for hackers. Stuff that matters.
Re:Java Developers by collyw on Tuesday July 22, 2014 @09:23AM (#8068791)
Strange, since I started using Django a while ago, I would say it encourages me to keep my own code a lot more organized. Are Java frameworks so much different?

As for functional programming, I only mix bits and pieces here and there. One thing I find quite discouraging about JavaScript, is that (in the code I have been reading) you can define a function within another function, and pass that on to other parts of the program. I have found it really difficult to work out what is going on in the code. In a basic Python script, define the functions at the top then write something to call them at the bottom. Its easy to see where the code starts and ends - well a whole lot easier than looking for function definitions within other function definitions. It just seems unorganized to me. I know that it is supposed to be a benefit of functional programming that you can do so many things with functions, but I find it makes debugging difficult, especially at the start. Is Haskell better at keeping the code organized? I have never used it.

Re:Java Developers by mswift on Tuesday July 22, 2014 @01:23PM (#8070254)
You can define functions within the scope of another function in Python as well. It's up to the developer to keep it organized.
Re:Java Developers by collyw on Wednesday July 23, 2014 @04:18AM (#8073370)
Yes, Python seems to encourage this sort of organization, while (from what I have seen) JavaScript does not.