[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

DUDE OBJECTS LMAO

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 133
Thread images: 7

DUDE OBJECTS LMAO
>>
it's better than C++
>>
File: 1486419806680.png (120KB, 500x500px)
1486419806680.png
120KB, 500x500px
Dude what if we like took a programming language and made it run in a virtual machine so it can't do something as retardedly simple as simulating a keypress?
>>
>>59118890
What if we learnt different languages to do different things instead of learning just one language and hoping it can do everything you want.
>>
>Objects are somehow bad

okay
>>
if it's an object-oriented language, why does it have primitive types?
checkmate, Pajeets
>>
>>59119030

>having to use objects for everything
>>
Structs are enough for everything
>>
>>59119058
>this is what C-ucks and gophers actually believe
>>
>>59119017
C++ can do everything I want, though.
>>
File: 1436592854235.png (54KB, 398x272px) Image search: [Google]
1436592854235.png
54KB, 398x272px
>>59118890
>implying that you can't do that in Java
>>
>>59119078
you->kill_yourself(you);
>>
>>59118860
DUDE FUNCTIONS LMAO
>LE LISP MEME PICTURE
>>
File: 1484242438716.png (90KB, 1200x800px) Image search: [Google]
1484242438716.png
90KB, 1200x800px
>>59119113
t. brainlet
>>
>>59119155
Name one (1) thing C++ can not do that other programming languages can.
>>
>>59119181
Compile.
>>
I'll post something I found in a reddit thread one day regarding Java hate:

// ---
Because of long method names, forced OOP and forced boilerplate code.
...That's basically it. It's just the cool kid thing to do for kids to hate on Java even though it's a great language to make things like servers and multithreaded applications with managed thread pools much simpler than something like C.
I get the feeling most of the Java hate come from either:
Memers
People who write in dynamically typed languages and static type checking fucks them in the ass.
People that don't ever write in a lower level language like C to appreciate some of the things java makes easy, or "front end engineers".
And finally:
People with actual complaints about java because of fucked up industry standards, or just hate the forced abstractions pattern which can make for some really, really bad code. When OOP is originally taught, people are taught inheritance too freely and need to understand that it's in general a bad practice to do over composition and can cause for some horrible boilerplate code passing, which can usually be solved by interfacing then defining implementations there.
The language definitely has its downs and its ups, and has developed a use case now. It's not a language to use for every scenario, but it's an industry standard for a reason.
tl;dr kiddies
--- //

also Java / OOP reigns supreme when it comes to enterprise systems
>>
>check out job ads
>50% are java
>50% are .NET
nope
>>
>>59119195
B T F O
T
F
O
>>
>>59119181
Assign from void*
>>
>>59119212
>2017
>getting jobs through ads
If you're not getting noticed because of your open source contributions, then you don't know SHIT about programming.
>>
>>59118890
that's built into the standard library
>>
>>59119563
wat
>>
>>59119563

>implying anyone cares about you being able to program FizzBuzz in 50 different languages
>>
>>59119720
The job I currenly have was because I made a pull request on github.
>>
>>59119758
More details on this phenomenon and what kind of project was it
>>
>object oriented

if (player.collidesWith(leftWall) ||
player.collidesWith(rightWall) ||
player.collidesWith(topWall) ||
player.collidesWith(bottomWall)) {

player.stop();
}


>imperative

if (collidesWith(player,leftWall) ||
collidesWith(player,rightWall) ||
collidesWith(player,topWall) ||
collidesWith(player,bottomWall)) {

stop(player);
}


There really isn't that much difference.
>>
>>59118890
> Dude what if we like took a programming language and made it run in a virtual machine
Actually worked so well that most languages now have this as option, and for many it's the reference implementation that has it enabled by default.

> so it can't do something as retardedly simple as simulating a keypress?
Lel wat? java.awt.Robot and other means exist.

That said, I'm not even opposed to the idea that an OS wouldn't accept this. It's actually not coming from something registered in the kernel as input device - so in a way, why should a well-designed OS kernel accept it?
>>
>>59119794
Sure, it was a project involving using raspberry pis for behavioral research at a local university. I noticed an error in some of the code they were using to interact with the UART and made a pull request. The guy who ran the lab (biologist) found me on twitter and sent me a message asking if I'd like to take a job up there helping him design the rest of the system since he wasn't that knowledgable about electronics or programming.
>>
>>59119841
>muh collided namespace
>>
>>59119841
player.stop if [leftWall, rightWall, topWall, bottomWall].any? { |wall| player.collidesWith wall }


is also object-oriented :^)
>>
>>59119916
No collisions in my example.
>>
>>59119841
>player.collidesWith
lmao what kind of dipshit OOP classes have you had?

Player and Walls should both be independent objects, and that statement should be a single if that passes two generic objects into a method. One being an actor, the other being a literal object (as a noun).
The actor should have passable terrain types and the object should have its terrain type (air, water, ground, crate, wall, whatever) as an attribute.
if (collision(player, terrain)) 
player.stop();
>>
>>59119841
> If I only have three things in a warehouse, I don't need to stow them in boxes and shelves to have order of sorts
Yea, true. OOP is however for getting some order on a bigger scale.

And likewise is modern FP/OOP or FP with the right composition strategy.

Imperative is generally just a mess.
>>
>>59119946
There are no different types of terrain in my example. Only walls.
>>
>>59119942
>I'm retarded tho
>>
>>59119887
Thanks, do you know if this happens on other kind of projects that aren't as "local", like contributing to Mozilla and someone noticing, maybe even from another company?
>>
>>59120021
Then you have two types of terrain: Wall and Floor, and all you actually have to check is whether the actor object can pass over that or not. You don't need 4 separate object types for each wall.

boolean validTerrain(Actor actor, Terrain tile) { 
if(actor.validTerrain.contains(tile.type))
return true;
return false;
}


Depending on how you choose to store valid terrain types in the Actor class you can make those checks a variety of ways, but the way you did it is not proper OOP design. It's bad imperative design.
>>
>>59120101
I know for a long time Red Hat only hired developers who'd worked on their code base. The traditional way to get a job there was to find something you wanted to work on, put in some work on the side, and wait for one of their people to notice you.
>>
>>59119887
>>59119758
>>59119563
>I lucked out by getting noticed by the right retard at the right time
>that means everyone that didn't must be even more braindead than me!!!
every womyn and koder can make a pull request and shove some fresh shitcode in

you're probably absolute trash at programming, especially since you mentioned the guy that hooked you up doesn't know a thing
>>
>>59120188
How's the job search going, anon?
>>
>>59120207
>doing it for free until they finally hire you for minimum wage
lmao
>>
>>59120136
>Then you have two types of terrain: Wall and Floor
No, can't you read? I already said there are only walls in my example.
>>
>>59120250
Then you have:
Walls
and
Not walls

Two types of terrain.
You could write it so it only checks to see if it's of type Wall, but that's sloppy and again bad programming. The way you wrote it is not good OOP design, period. What happens when you DO add more than just walls? You have to go back and rewrite everything.
Compared to the example I gave, you could add 1000 more types of terrain without changing a single line.
>>
>>59120146
Thanks hope senpai notices
>>
>>59120291
There are not two types of terrain. Walls are not terrain and not walls is no terrain either. I have no idea what the fuck you're talking about.

>What happens when you DO add more than just walls?
Nobody except you is talking about adding anything. You're pulling criticism out your ass whilst not even knowing what the snippet was from. Why are you giving advice when you have absolutely no clue?
>>
>>59120371
I'm telling you your "Object oriented" example is not object oriented, you dipshit.
Whatever, write 60-line chained || if statements instead of bothering to learn how to properly design an OO program.
>>
>>59120371
>I have no idea what the fuck you're talking about.
that's because you have no fucking idea what you're doing

t. not the guy you're replying to
>>
>>59120405
It IS object oriented. It even says so in post >>59119841
>>
>>59120464
see >>59120088
>>
>>59119942
>checks for collidedWith
>no collisions :DD
>>
>>59120464
>It's OOP because I said so
You're a fucking retard
>>
>>59118890
>so it can't do something as retardedly simple as simulating a keypress?
I might be an idiot, but wouldn't it still be possible as java is turing complete?
>>
>object oriented is such a phenomenal paradigm that there is still no consensus about what does it mean despite being the no1 pleb filter for IT interviews (only plebs ask this question)

Object oriented was a mistake - Alan Kay
>>
>>59121612
Turing-completeness wouldn't mean it's possible but the guy is an idiot. Automating keypresses is part of the Java standard library.
>>
>>59122825
Why wouldn't it mean it's possible? I'm somewhat new to programming so I don't really have a good understanding of turing completeness.
>>
>>59121612
Turing Complete means it can represent any algebraic formula, not that it can do anything that's possible to be done with computers. By design Java exists in Virtual Machine space, so it doesn't have direct access to the OS API (because that changes from OS to OS and would prevent the code from being portable). Instead it relies on Java's built-in libraries to interact with the Virtual Machine which interacts with the OS API. Most common functionality (including simulating keypresses) are easily done, but some things (like finding which Workspace the screen is currently in) is pretty much impossible without writing a DLL because the library/virtual machine has no command to do so.
>>
>>59122853
While Turing Completeness is a form of equivalence (any two Turing-Complete command structures can perform the same set of logical things), the concept of Turing Completeness exists with respect to a certain algebraic space and that algebraic space is different from scope to scope.

Think of it like this: if you have a robot who can arrange blocks into any shape, it can only manipulate blocks that it has access to. And if you put it in a box, it can't change the blocks outside of the box into any shape because it can't reach them. Java exists within a smaller box than Assembly/C.
>>
>>59119181
Collect its own garbage.
>>
>>59123025
You're the programmer, its your god damn garbage.
>>
>>59123035
Collect my* grabage
>>
>>59123025
>>59123035
Can you give me an example of garbage that needs to be collected?
I've only taken the first two programming classes at my school, and they were in Java.
>>
>>59123061
anytime you make an instance of a variable or object as a pointer, then it isnt removed when you leave the current frame (think functions or any time you use {}) so you have to explicitly tell the code to de-allocate the memory. If you dont do this then you risk just allocating more and more till you are using like, 80TB of ram.

Thats a super simple way of describing it, its been a while sense i have worked in C specifically, most of my knowledge of the specifics has gone sideways from lack of use.
>>
>>59123061
As long as you dont create objects in nested loops you should be fine.

http://stackoverflow.com/questions/10177830/optimize-nested-loop

Basically if you keep creating one time use variables the GC contantly needs to delete them but cant keep up. and like >>59123116 says, RAM usage will shoot up like crazy, very fast.
>>
>>59121716
OOP has a pretty clear definition, read about the 4 pillars of OOP. Organization of data and functions is useful.

The mistake was taking OOP way too far and forcing every problen to fit into the paradigm. Not every problem maps well to OOP, and OOP doesnt map well to multicore systems. We have to use locks and mutexs to prevent race conditions because OOP shares so much state between objects.

What maps better to hardware? Pure functions and immutable data structures that by nature of immutability do not share state and are therefore threadsafe. We only need to organize these functions and structs into jobs, then pass these jobs to threads. This is how modern game engines scale according to hardware. more threads = more concurrent jobs.

how does OOP fit in? OOP should still be used for UI work. combine OOP with MVC (model, view, controller) design pattern and UI design is very straight forward. the entry point for the engines work (the pure functions + structs) comes from user input. this happens from the controller or the model.

so you can see how OOP and functional programming work together to build modern multicore programs. source: i'm a developer.
>>
>>59123468
This pretty well sums up the issue with OOP, when all you have is a hammer after all.
>>
>>59119033
Yeah why does it have data at all. Checkmate data fags.
>>
>>59123511
Its just making sure the code is bug-proof

No state? No bugs!
>>
>>59123035
>name one thing
>*names thing*
>B-But that doesn't count!
BTFO
>>
>>59119181
run without imperative declarations?

as in, not use header files. header files are completely unnecessary and a relic of the past. in c++, you cant call a function unless its been declared, which is simply a pointless burden. fucking javascript can do that, and it's autistic.
>>
File: 1487776411116.gif (420KB, 350x239px) Image search: [Google]
1487776411116.gif
420KB, 350x239px
I'm starting to think that Java might actually not be that bad; I just thought it was bad because of all of the code I've seen written by my classmates, where object orientation is used, often incorrectly, regardless of whether or not it fits the situation.

>tfw another year of this torture until I'm done my CE degree
>>
>>59123829
theres nothing wrong with java, its just a tool. you can use a hammer to build a house, and that makes sense. but try to use a hammer to brush your teeth. there are different tools better suited to specific jobs, like OOP.

its likely that your peers are being force fed OOP by teachers/professors that learned it in the 90s when it became very popular. and they were such bad programmers that they couldnt get real jobs, so they became teachers. basically, your teachers are probably bad and dumb.

if you are ever asked to create a 'factory' in java, dont do it.
>>
>>59119841
The issue there, is that you have to use namespaces or prefix the collidesWith method with player_ or something.

I find namespaces to be clumsy. If you use an implicit namespace, it becomes difficult to look at a function and immediately know where it comes from. If you're using an explicit namespace, it's the same as just adding a prefix to the name.
>>
>>59123468
java just went crazy with inheritance when it's almost always the wrong thing to do
>>
>>59123886
>theres nothing wrong with java, its just a tool
INTERCAL completely negates this point. A tool can be fundamentally flawed.

>its likely that your peers are being force fed OOP by teachers/professors that learned it in the 90s when it became very popular
They don't actually teach anyone to program in my program, apart from in the first term, when you get a class that goes over the basic concepts. The principles of OO are useful if you use them correctly in situations where they apply, but no one was ever taught how to do it, so it's like watching someone on deviantart trying to make porn. Disgusting.

OO is actually a pretty nice meme compared to some of the other things that are becoming popular now, like functional programming. Trying to do commercial software with functional programming is like trying to cut a tree down with a scalpel.

>if you are ever asked to create a 'factory' in java, dont do it.
I used to do C# web dev shit and I'm still not sure what the fuck a factory is
>>
>>59123914
inheritance AND abstraction.

abstraction was supposed to simplify problem solving and architecture. take it too far, and theres so much abstraction that it becomes its own problem. inheritance has the same issue.

i'm about to blow some people's minds. ready? inheritance is a form of class coupling - where one class is dependent upon another classes data and functions. inheritance DOES NOT decouple classes. rather, subclasses rely on parent definitions.

So we tried interfaces. which again, couple to classes that depend on the interface.

so we tried factories, which couple to class constructors.

OOP has no mechanism to objectively decouple classes. compare that to data passed to functions: the data is decoupled (independent), and the function is coupled only to the parameters it accepts, localizing state.

OOP is snakeoil sold by 90s programmers as a cure all, and actual smart people bought into it and cant admit they were wrong, so now we're stuck with it like an architectural herpes.
>>
DUDE SEGFAULTS LMAO
>>
>>59123976
i'm not arguing that a tool cant be fundamentally flawed, just that java wasnt originally flawed.

functional programming is how modern software efficiently scales to multicore systems. if you think functional programming is a meme, then you should look into becoming a teacher. i hated FP prior to understanding it. once i "got it", it made designing program architecture alot easier and simpler. seriously, give it a chance, it will make you a better programmer.

a factory attempts to abstract away the construction of an object, so the constructor function doesnt need to be called directly. usually this is done in conjunction with interfaces, which leads to a chain of responsibility shared across 10 files that is a nightmare to understand, debug, maintain, and extend. once you get to the point of thinking that a factory is a good idea, you've made a terrible mistake.
>>
>>59123914
>java just went crazy with inheritance

No. java programmers went crazy with inheritance.
>>
>>59124045
>OOP is snakeoil
>used by every major software-producing firm in the country extensively
>emulated extensively in non-OO languages such as C, especially in operating systems

love it
>>
>>59119181
Mobile.
>>
>>59124045
OOP is only snakeoil when idiots like you think every single problem has to be solved using an OOP paradigm
like you aren't allowed to write functions that operate on arbitrary objects, everything has to be a method because that's OOP right
>>
>>59119563
>>59119758
>>59120207
If you're good enough, shouldn't you be able to start your own company or make your own worthwhile program.
>>
>>59124188
organizing functions and data together is useful and smart.

forcing encapsulation and fake decoupling through abstraction is dumb.

also,
> implying normie corporations write good code
i can tell from that statement that you've never worked on an enterprise codebase.

people write bad code. put them together and ego takes over, the codebase turns to complete shit. add deadlines set by marketing team, and that shit codebase just gets piled on with more shit as fast as possible. oop and fp are part of that pile of shit.
>>
>>59124133
>java wasnt originally flawed
If I go and work with any language for 10 minutes, I find a lot of things that make my angry at the language designers. The last time I programmed in Java, I got angry at the lack of unsigned types and the forced usage of classes. I don't think those are good features that benefit the language. The exception system is also badly designed, which wastes memory and clock cycles. The GC is also a potential flaw if you're tight on memory or doing realtime code that uses a ton of memory; I've seen some horrific GC stutters on Android. The lack of mandatory forward declarations also causes some horrible parsing errors.

If you can take any language, you can find several flaws with it.

>functional programming is how modern software efficiently scales to multicore systems
The multicore scaling part of functional programming is only effective when you have critical sections that don't have monads in them. A lot of commercial software requires monads everywhere because it interacts with an external system.

functional programming is a tool. Just like OO, it's very good in situations that it fits, and just like OO it's a meme. When I say something is a meme, it doesn't mean that it doesn't have a purpose; it means that idiots say that it's the only way to program. If you're trying to make a game in OpenGL (very CPU heavy, cannot be multithreaded and based largely on global state), functional programming doesn't work particularly well.
>>
>>59124238
i dont think every problem has to be solved using oop. thats not what i'm saying at all. you lack reading comprehension.

functions that operate on arbitrary objects is basically functional programming, which is how the majority of the program's work should be done. i only use oop (+mvc) for ui work, where it maps nicely to the problem domain.

i was taught oop by a fag who used to work at adobe, who said that oop was the only way to program. which made me wonder why wasnt he still working at adobe, if he was such a great programmer?
>>
>>59124285
lol you've worked in "an enterprise codebase" once, prolly as an intern
>>
>>59124297
unsigned types are cancer.
does java have structs?
dont rely on the gc. manage your own memory like a real programmer.
agree on the exception system.
forward declarations are outdated.

> monads
no.

> interacts with external system
concurrent jobs usually sync up once work is complete, at which point data can be passed to the external system.

> opengl is cpu heavy
have you heard of this new thing called the gpu?

> cannot be multi-threaded
are you seriously making the case that no modern game that uses opengl can be multithreaded? oh i am laffin
>>
>>59124373
> the best insult he could come up with
enjoy taking my burger order
>>
>>59124152
No. look at java's standard library.

>>59124188
>especially in operating systems
especially only the VFS layer and nothing else
>>
>>59123025
Just use smart pointers :^)
>>
>>59124464
>completely self-negating comeback
>>
>>59118890
>implying being able to run the same code on every single system for which a JVM has been implemented without touching a single line is a bad thing
>implying you can't do this shit anyway
dumb phoxposter
>>
>>59124430
>unsigned types are cancer
I would argue that they are significantly better than using a signed type as an unsigned type. There are plenty of situations where there is no better alternative than using an unsigned type.

>does java have structs?
I was referring to the requirement to put all functions and data into classes. There might also be structs, but that doesn't fix the requirement to have a bunch of static classes that have no purpose being classes.

>dont rely on the gc. manage your own memory like a real programmer.
Is there a way to do that in Java? You wouldn't be able to use most classes in the standard libraries or other libraries.

>forward declarations are outdated
forward declarations prevent parsing errors. I guess they could have just designed the syntax better to prevent horrific parsing errors from the ambiguous grammar.

>have you heard of this new thing called the gpu?
you clearly have never worked with OpenGL. OpenGL is CPU heavy for some reason. You can go and find a Linux open source OpenGL implementation if you want to figure out why. I never looked into it.

>are you seriously making the case that no modern game that uses opengl can be multithreaded?
OpenGL cannot be multithreaded. You can have threads doing other things, but you can only have one thread doing OpenGL. This is part of the unfortunate design of OpenGL.
>>
>>59124430
>dont rely on the gc. manage your own memory like a real programmer.
if being a "real programmer" is going out of your way to introduce more bugs and wasting time instead of working towards useful, working code for the sake of nostalgic virtue signalling than programming is truly dead

unless you're working at the systems level where its advantages still and will always shine, there is no reason for you to use that ancient 1970s language for anything but maintaining legacy code in current year
>>
>>59124571
i'm simply stating that modern game engines that use opengl are multithreaded, and leverage the gpu.

and yes i have worked with opengl. and directx. and neither are cpu heavy. drawing a blank opengl window does not require significant cpu time. however, this is subjective. if you fuck up your draw calls, then its very expensive. but thats not opengl's fault.

opengl runs on a single thread, yes, but the program is free to run on as many threads as it needs to. i think we're talking about different things. normally you dont shovel game logic onto the same thread as your opengl instance. how did you approach designing your game?
>>
>>59124595
If you need real time performance or low memory usage, using a GC is probably not the best choice. I've seen horrible stutters in some game projects when the GC was invoked. You can also do some optimizations if you manage your own memory.
>>
>>59124595
i'm more referring to using design patterns like object pools, which allocate a number of objects upon construction, negating the need to create new objects later (and release them), which leads to garbage collection.

i'm not talking about reference counting or any of its derivatives.

certain design patterns, like obj pools, actually make the code more predictable in size and operation time, because the pool sizes are (usually) static.
>>
>>59124650
I've seen plenty of applications that used OpenGL and had the rendering thread act as the limiting factor. The worst case of this is probably using Wine on DX games, where a single thread is always running at 100%.

The original point we were discussing here was that this was not a situation where functional programming benefited greatly. That was only being discussed as part of saying that functional programming is not the best way of doing absolutely everything. I don't think functional programming works as well as a low level procedural language in cases like this.
>>
>>59124765
if you think functional programming isnt a good approach, i would suggest watching these two gdc talks, which discuss how very smart programming teams designed a modern game engine using functional programming:

https://youtu.be/0nTDFLMLX9k

https://youtu.be/v2Q_zHG3vqg

These are not light talks, and will take a few hours to get through, but its well worth your time.

Functional programming maps very well to multicore systems (cpu + gpu), better than oop, or declarative, or imperative, or any other paradigm. thats why its used.

also,
> using wine
found the problem
>>
reading this thread really shows you what level /g/ really is on

programming languages and paradigms are such an absolutely minor fucking problem, yet this shitflinging goes on in multiple threads every day because you retards literally don't know anything else
>>
>>59122904
Woah fuck off stupid nigger
>>
>>59118890
do you have fantasies about that pokemon ?
>>
why is the java logo the same logo used on korean love/sex hotels
>>
>>59118860
dude heap lmao
>>
>>59119181
be typesafe
>>
>Jobless haskell faggots think they know it all: The Thread.
>>
>>59129407
Because Java is sex
>>
>>59118860
> POOlymorphism
>>
File: 1488047031140.gif (2MB, 300x290px) Image search: [Google]
1488047031140.gif
2MB, 300x290px
>>59119841
> this is how Pajeets think physics systems work
>>
>>59130854
/pol/imorphism
>>
>>59118860
I don't trust languages that don't allow you to declare functions outside of a class.
>>
>>59130995
Why would you want that
A class is just public class x {} then you put inside whatever you want, why is that such a problem, are you mentally challenged?
>>
>>59119946
java has several functions with this exact pattern
object.equals(otherObject), or object.compareTo(otherObject)
>>
>>59119181
Web frameworks.
>>
File: 1488028477928.png (27KB, 138x275px) Image search: [Google]
1488028477928.png
27KB, 138x275px
Mfw I find java fun
Mfw you realize how fucking easy it is to do automation and how everything is spoon fed to you
>>
There's a reason why pujeet can pay for a house for wife and 5 kids and you're alone beating off in your mom's home
>>
public final class Main {

public static void main(final String[] args) {
final ApplicationContext context = new ClassPathXmlApplicationContext(Constants.SPRING_XML);
final FizzBuzz myFizzBuzz = (FizzBuzz) context.getBean(Constants.STANDARD_FIZZ_BUZZ);
final FizzBuzzUpperLimitParameter fizzBuzzUpperLimit = new DefaultFizzBuzzUpperLimitParameter();
myFizzBuzz.fizzBuzz(fizzBuzzUpperLimit.obtainUpperLimitValue());

((ConfigurableApplicationContext) context).close();

}


>>
People who hate OOP are the same people who use recursion to traverse folders.
>>
>>59132366
what's so bad about that?
thos OOP haters are likely to be functional spergs, where deep recursion doesn't grow your stack as hugely as it does in java or other C-like languages
>>
>>59132366
all praise glob
>>
>>59120136
if (bool)
return bool;


kys
>>
>>59132210
>using Spring in 2017
>using XML-based Spring in 2017
>using a framework for a completely trivial application
>>
>>59132475
>thos OOP haters are likely to be functional spergs
I like both OOP and Functional and use them together a lot

Java 8 is pretty fuckin perfect in that regard
>>
>>59133174
>not using only Java 7
>>
>>59133174
besides closures and lambdas, which functional elements are there in Java 8? Doesn't seem to me like one could actually use Java without leaving the functional paradigm, but maybe I'm just an idiot
>>
>>59118860
Stockholm syndrome: The language
>>
>>59133377
that's about it currently yes
Java 9 promises to expand it a little

>>59133332
and why exactly would I use an deprecated, inferior version?
>>
>>59118860
That sums it up perfectly.
>>
>>59119939
no1 gives a shit since it'll run 200x slower

measure the time it takes to even do a basic fucking for loop in scala and you'll see how much of a shit hole it is
>>
>>59119181
Be C.
>>
>>59119122
why should the kill_yourself function take any arguments?
Is this your first day programming? How cute.
>>
>>59120250
>>59120371
How does it feel to have a single digit IQ while proclaiming you know best practices for programming?
Thread posts: 133
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.