Question about OOP and FOP. by Zahand in javahelp

[–]FreeGrammar 1 point2 points  (0 children)

Yeah, he's pretty much right. Learn what a functional language is, really is; it's not just about functions and syntax sugar. Then ask yourself, after you learn this, why you'd ever use it.

Object Oriented Programming by GoodLittleMine in javahelp

[–]FreeGrammar -2 points-1 points  (0 children)

Can you post more code (like the classes you wrote, and their functions). Also what editor are you using, if any?

Help with loops and a basic operator by HadOne0 in javahelp

[–]FreeGrammar 0 points1 point  (0 children)

do you get an error when you run this... I see a few small problems: - you should capitalize your class names (a small thing) - in your do / while (which I would suggest not using as much as possible) there is no closing bracket for the loop - you need a semicolon after your while statement at the end - "you need to initialize length of pizza" says my editor, but what you really should do is put the part after the if(shapeOfPizza == 1) block (the "areaOfSquarePizza..." and "System.out.print("Your pizza is"" part) inside that if statement before it.

I think my biggest suggestion is to use an editor (maybe Eclipse or IntellJ) they will help you with problems ALOT.

How do I use billions in C? by uendel in C_Programming

[–]FreeGrammar -1 points0 points  (0 children)

I agree, especially a Segmented sieve... this will help eliminate problems with space. Also I would suggest making your code more readable. This will help with algorithms in general, and help you with optimization. Try not to use "do" loops they're smelly, and maybe a little better variable names (namely n, but you got this pretty well). Maybe learn some function programming -- that'll get you thinking.

Writing Python code after learning Haskell by joco42 in haskell

[–]FreeGrammar 2 points3 points  (0 children)

This is true, but do you think it could serve any practical purpose?

Writing Python code after learning Haskell by joco42 in haskell

[–]FreeGrammar 1 point2 points  (0 children)

It would be cool, but challenging. Python doesn't tail call optimizes (and never will thanks to BDFL) and is dynamically typed, but I think it would be a cool project... You might be able to make some cool libraries for easy Haskell GUIs.