> Oh! ECMAScript2015, ECMAScript7 and Node.js are very popular now. I think you > just not understand JavaScript.
Took me 10 second to read and understand your code. I just never liked JS design for front end programming. Too much overuse of closures, bad error responses, inconsistencies in the language. Like hey... lets check the array length. Its 0. Ok... Lets push something at position 5. Length is 6. Fine. Lets remove this. Wait ... why is the length still 6??? Same with the response as to the value it holds. Let alone when we start mixing JS with jQuery/Angular etc. One need to differentiate between well defined and clean code, vs the smuk mess that well, i see most of the time in front of me. Guess where my dislike comes from ;) > Almost all codebases of large applications look awful. There are a lot of > reasons for that other than programming paradigms used. I do not want to > claim that some would look better without OOP. I simply wanted to state that > I had a look at a lot of code bases through the years in order to find > evidence of how OOP would lead to cleaner code, and I have yet failed to find > any. Maybe you have just been lucky. > This image is usually a pretty accurate description of an OOP codebase. That is a mess more when people start mixing factor & dependency injection. Again ... OOP is not a badge of excellence but in general as a programmer they are already a step above most of the FP's. > Namespaces have nothing to do with object orientation. You can perfectly use > namespaces in non-OOP languages. I have yet to seen a single example of anybody using namespacing in functional programming. Then again, its relative "new" in PHP. _rofl_ > you just assume that this is useful and needed without providing any evidence > for it. Yada yada yada ... typical forum bully tactics. Lets all wast hours fighting it out on a forum so one of use can both feel superior. There 1000 of topics regarding this, with plent of opinions. If you want to repeat history on each forum, go right ahead. Wast of time again. Why do i even post on forums anymore. Its always the same crap. There is always somebody who gets pissed or disagrees and then wants to wast hours discussing something that will not change both parties there opinion anyway. > And none is functional. Bullshit first class. If you can not tell the different between a piece of OOP & FP code, then you really do not need to start arguing about it. Feeling superior yet? Good, feel happy ... _sigh_ Yea, i am pissed. This is why i normally do not like to post on forums. Simply because people twist people there words to match there own definitions. I simply wanted to point out that function programming in "general", _like i said in my experience_, come from people who have a lack of understanding OO programming. This simply results in horrible code messes. I have a dozen of websites right in front of me, made in East Europe with functional programming. And there are amateuristisch at best. We spend more time trying to rewrite the code to solve bugs, performance issues, ... then anything else. Now we are going to rewrite a entire project ( AGAIN ) because whoever wrote it, had almost no experience. Welcome to the wonderful word of PHP programming. _sigh_. And not to dish East Europe programmers, there are just as many bad programmers in the West. Maybe when you are used to more critical system programming, sure, your not going to run into messes like that often ( higher quality programmers, people with more experience ). Sure, i have also seen horrible OO programming junk. But its in MY experience less then FP. So like i said, i do not understand why Krux02 disliked, what he called forced OOP. But yea, pull whatever i said out of context. I wanted to clarify in detail but yea, real life got in the way and i posted too fast. You know, maybe i do not express myself perfectly but when people jump on every word this aggressively, it just pissed me off. Got better things to do then wast time on discussion that will simply lead to all parties wasting there time. You all win! You are all right! All happy! Write whatever you want, i am out of here. So fed up with people jumping at every opportunity online to start useless discussions. If you have this much time, then put that time into freaking improving Nim's websites, documentation, etc. Lesson learned. Never post on any freaking forum because its always a wast of time anyway. I am out of here!
