Reputation
328
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 6 14
Impact
~19k people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Dec
28
awarded  Popular Question
Dec
20
comment Functional programming compared to OOP with classes
Yes i currently use js pretty extensively for front end UI (also with jQuery) and I have done some node.js as well. While it definitely has it merits, and I do love javascript, it will not work for my needs. I have to have something that can integrate with the hardware to some level (desktop application). So if I was to use a scripting language, I would use python which I already know, which is also what I would use anyways if I do not end up using scala. I am simply testing waters and learning scala and functional programming.
Dec
19
comment Functional programming compared to OOP with classes
yea I am aware that they are different methods to write your code. some languages obviously tend to favor one method over the other based on the language features. Some more so than others. I get that. But there is still the lingering question, if I use the OOP design principle, i generally know how to design the code base. However if I used FP, i would not. THough after some of the answers, I am starting to see it more now.
Dec
19
awarded  Nice Question
Dec
19
comment Functional programming compared to OOP with classes
You don't always need an interface. But they are highly useful when you do need them. And IMO another important part of OOP. As for modules go in Haskell, I think this is probably closest to OOP for functional languages, as far as code organization is concerned. At least from what I have read so far. I know they're still very different.
Dec
19
awarded  Custodian
Dec
19
reviewed Approve Functional programming compared to OOP with classes
Dec
19
comment Functional programming compared to OOP with classes
@DocBrown after reading that question it does make some more sense. Although I do not think it is a duplicate, as this question is more pointed in how the organization is comparable to OOP, and how I would separate a 'module' like i would have an OOP class, from the rest of the code. while it does answer some question, it still seems like it has a different goal.
Dec
19
comment Functional programming compared to OOP with classes
Not 100% clear, but enough to see where you are going. I could see this as the 'animal' code in a given file. Also the part on branching/conditions is good too. I had not considered that as the alternative to if/else.
Dec
19
comment Functional programming compared to OOP with classes
Yes it doesnt directly answer the question, but still a great response. when i write smaller scripts or packages in python, i dont always use classes either. many times just having it in a package format fits perfectly. especially if i do not need state. I also agree that list comprehensions are damn useful as well. Since reading up on FP, i have realized how much more powerful they can be. which has then led me to wanting to learn more about FP, compared to OOP.
Dec
19
comment Functional programming compared to OOP with classes
Yes polymorphism is very important in OOP. I agree one of the primary benefits. But I also agree that oop still work well because of the other benefits as well. In all the frameworks and code repos ive worked on, oop is also used as a base to organize your code. Into things like models, controllers, and views. although there are other mvc like paradigms like mvvt, mvp, mvt, and so on. I still dont see yet how i would organize the code base in that same way. I know it wont be mvc, but i'm sure theres still some best practices for doing it.
Dec
19
comment Functional programming compared to OOP with classes
ill have to real a little more on haskell to understand thi fully, but i think i get the jist of it. im still curious though how this would line up with more a complex code base.
Dec
19
comment Functional programming compared to OOP with classes
Yes I am aware, but i am also wanting to know for intellectual reasons. I cannot find anything on the equivalent of object in functional languages.As for scala, i would still want to know when/where/how i should use functional over oop, but that IMHO is another question.
Dec
19
asked Functional programming compared to OOP with classes
Nov
18
awarded  Notable Question
Aug
14
awarded  Popular Question
Apr
23
comment Webkit as GUI in .Net/Mono
Yea its not usually my forte either. I prefer going towards javascript and node.js. But I am having to learn c#/.net for work so I figured I may as well build a small project with it to help learn it. I think that .Net has some pretty cool features if I'm doing mostly windows development and web. So I'm trying to make use of what I know I will be using at work, which is a mix of web and desktop apps.
Apr
23
accepted What do you suggest for cross platform apps, including web
Apr
23
awarded  Scholar
Apr
23
accepted Webkit as GUI in .Net/Mono