~ archived since 2018 ~
Popular
Other
TheJCR
[–]BadSeed2666 9 points10 points11 points 8 years ago (5 children) | Copy Link
Hehehe. Good one.
[–]TheJCR[S] 1 point2 points3 points 8 years ago (4 children) | Copy Link
Haha thanks!
Quick question: Do you use functional languages? If so, which ones?
[–]BadSeed2666 -2 points-1 points0 points 8 years ago (3 children) | Copy Link
Python
[–]DrWateryCat1 point2 points3 points 8 years ago (1 child) | Copy Link
>python >functional
[–]TyrannicalWill-1 points0 points1 point 8 years ago (0 children) | Copy Link
but... it has functions right...
[–]TheJCR[S] 0 points1 point2 points 8 years ago (0 children) | Copy Link
How did you learn to program functionally in python? Python is multi-paradigm.
[–]raident302 points3 points4 points 8 years ago (19 children) | Copy Link
the future is OOP!!
[–]TheJCR[S] 0 points1 point2 points 8 years ago (18 children) | Copy Link
Haha, NOPE!
OOP = Side effects, and hard to manage
FP = No bugs, and easier to manage
[–]Borofill2 points3 points4 points 8 years ago (10 children) | Copy Link
"No bugs" if you know what youre doing OOP shoudlnt have bugs lol. I see Go replacing stuff like python, not replacing Java or C.
[–]TheJCR[S] 0 points1 point2 points 8 years ago (9 children) | Copy Link
Imperative languages thrive off of changing state, which leads to bugs.
Functional languages are stateless. Everything is absolute and nothing is mutable. Therefore, no bugs (unless a woman codes it).
[–]Borofill1 point2 points3 points 8 years ago (6 children) | Copy Link
Everything is absolute and nothing is mutable
I feel like youre discussing this in a philosophical context, but , This clearly has a tradeoff in memory management and performance, which is why the world still uses C and C derivatives.
[–]TyrannicalWill2 points3 points4 points 8 years ago (3 children) | Copy Link
you're conflating implementation with interface
you very well can compile a functional language into an imperative one for instance
[–]TheJCR[S] 1 point2 points3 points 8 years ago (0 children) | Copy Link
Correct. Elm does exactly this!
It's a functional language, but compiles down to JS.
[–]Borofill0 points1 point2 points 8 years ago (1 child) | Copy Link
Im misunderstanding. I am assuming functional language is something that uses functions for everything. If everything is immutable, you need to recreate and reserve memory for each new object and new call. I dont see where I am getting tripped up here. Sure I can wrap python in a boost library for C++ and vice versa, but there are more efficient ways to go about doing so. Please correct my line of thinking if I am viewing this wrongly. I am rather new to the world of Software development and code in C++/python.
[–]TyrannicalWill0 points1 point2 points 8 years ago (0 children) | Copy Link
you can compile a functional language into an imperative language, so the interface is functional but the implementation is imperative where the binary manipulates memory state
just like you can convert a recursive function into an imperative function, you write it recursively, but the compiler converts it imperatively
[–]TheJCR[S] 0 points1 point2 points 8 years ago (1 child) | Copy Link
FP is great for backends. There is no debating this.
Also, the free lunch is over. Chip manufacturers can no longer decrease the size of chipsets due to Moore's law. This is especially true for Intel's line up. The new CPUs are just recycled iterations of their predecessor.
The future with chipsets lies in multiple cores. Imperative languages don't play nice with multiple cores, but functional languages do. Concurrent programming is the future and functional languages are great for concurrency.
[–]Borofill1 point2 points3 points 8 years ago (0 children) | Copy Link
Wouldnt Moores Law compound the problem? You have finite memory, you cannot pile up infinite processing so threading will be essential. Also memory management will be essential since sometimes you are constrained by how much memory/processing you can add. I am not saying one is bad/less efficient or superior. I am saying I see the need for both adding value and optimized for different design cases.
[+][deleted] 8 years ago* (1 child) | Copy Link
[deleted]
Lol I'm glad I'm not the only who thinks python is a piece of shit. I wrote an entire essay on why I dislike it, because that's how much I hate it.
Also, Haskell also uses whitespace for control flow, so don't hate on that. And Haskell was made by a bunch of white dudes; Simon Peyton Jones being one of them.
But I prefer using curly brackets.
[–]TyrannicalWill1 point2 points3 points 8 years ago (3 children) | Copy Link
tell that to dinosaur corporations
[–]TheJCR[S] 0 points1 point2 points 8 years ago (2 children) | Copy Link
It'll take a while but functional programming will become mainstream. It's excellent for backend purposes and companies are jumping onboard.
The only problem is that no one has demonstrated that it can be used for other things like software development and AI. It also lacks the necessary libraries. This is especially true for Haskell.
But in time, it'll thrive.
[–]TyrannicalWill0 points1 point2 points 8 years ago (1 child) | Copy Link
no one has demonstrated that it can be used for other things like software development and AI
backend is a discipline of software development
AI almost exclusively uses functional languages such as lisp dialects
My bad, I was speaking for Haskell, not functional languages in general.
Haskell needs more AI and machine learning libraries, like python. It'll blow up if that happens.
[–]EpicHedgehogFrom19790 points1 point2 points 8 years ago (1 child) | Copy Link
You’re talking like a tool. Stop the fanboy attitude and repeating what someone else has told you. Had you any real experience with FP, you’d likely see its setbacks too.
[–]TheJCR[S] 0 points1 point2 points 8 years ago* (0 children) | Copy Link
I've done legit programming in Haskell, a pure functional programming language, and I can tell you this:
1) The type system is absolute boss. It's so good, that if you can get your code past it, its probably correct
2) The number of bugs I've run into are virtually none.
3) If Hask had tons of libraries and support like Java/Python, it would dominate the industry.
Edit: I'm not saying that FP is god-tier and will take over. Rather, FP has its place and more people should adopt it (i.e. For the backend). OO will never be replaced because changing state is necessary for software.
[–]mohnjack 2 points3 points4 points 8 years ago (0 children) | Copy Link
Love it brother, it makes 100% sense for us IT scientists. Unlike most female logic out there.
[–]AirplaneNote1 point2 points3 points 8 years ago (2 children) | Copy Link
And here I thought the future was robots and the matrix
robots are functional
[–]AirplaneNote0 points1 point2 points 8 years ago (0 children) | Copy Link
Yeah, they are. I’d like an assaultron.
[–]MrRodje1 point2 points3 points 8 years ago (0 children) | Copy Link
"the future is female" is the biggest bullshit I've seen, it's pretty much like saying "are you guys ready to the end of the fucking world?"
[–][deleted] 1 point2 points3 points 8 years ago (2 children) | Copy Link
The future is Brainfuck.
This guy fucks!
[–][deleted] 1 point2 points3 points 8 years ago (0 children) | Copy Link
Not any more. It's actually a programming language.
[+][deleted] 8 years ago (3 children) | Copy Link
[–]nigelh0 points1 point2 points 8 years ago (1 child) | Copy Link
Have you ever worked in Forth? A routine you worked on and got working yesterday just looks like transmission line noise today. Truly a write-only language.
Don't get me started on APL...
[–]stringedbeams0 points1 point2 points 8 years ago (0 children) | Copy Link
the future is females, subordinate to males
The days when the programmer was a king are long over. I'm retired now but in my day I have been given the wiring diagrams to an analogue 747 autopilot, the code from the previous time we did a similar model and was left to build the simulator version. Nobody would trust a modern OOP programmer with that today.
A lot of it is the system bending to accommodate the girls by breaking it down into smaller 'friendlier' units so a diverse team can do one man's job. The idea that you understand the problem, design the solution and hold the whole design in your head as you work on it has gone. Every ten line module needs a unit test because it is probably coded with a typo in it that nobody noticed.
An example. Yesterday I was asked for a file importer/translator. The spec was a bit wobbly. I wrote a prototype that used a library regexp match to deconstruct the lines in the file and assemble the relevant pieces into named array elements, sort the array using keys built live then write it out using names. It was a bit of an all-nighter but it is working for its living today. Did I say I was retired? I'm supposed to be retired but as part owner of the company I still have a vested interest in keeping things running. The regular expressions are all in the configuration file so I can configure it by email. I also write assemble microcode.
Every ten line module needs a unit test because it is probably coded with a typo in it that nobody noticed.
This is legit pathetic.
The idea that you understand the problem, design the solution and hold the whole design in your head as you work on it has gone.
I hope this isn't completely true because I truly believe in One Man Army, and strive to be proficient in everything so I don't need anyone's help.
Java Masterace!!!!
© TheRedArchive 2026. All rights reserved.created by /u/dream-hunter
[–]BadSeed2666 9 points10 points11 points (5 children) | Copy Link
[–]TheJCR[S] 1 point2 points3 points (4 children) | Copy Link
[–]BadSeed2666 -2 points-1 points0 points (3 children) | Copy Link
[–]DrWateryCat1 point2 points3 points (1 child) | Copy Link
[–]TyrannicalWill-1 points0 points1 point (0 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link
[–]raident302 points3 points4 points (19 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (18 children) | Copy Link
[–]Borofill2 points3 points4 points (10 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (9 children) | Copy Link
[–]Borofill1 point2 points3 points (6 children) | Copy Link
[–]TyrannicalWill2 points3 points4 points (3 children) | Copy Link
[–]TheJCR[S] 1 point2 points3 points (0 children) | Copy Link
[–]Borofill0 points1 point2 points (1 child) | Copy Link
[–]TyrannicalWill0 points1 point2 points (0 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (1 child) | Copy Link
[–]Borofill1 point2 points3 points (0 children) | Copy Link
[+][deleted] (1 child) | Copy Link
[deleted]
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link
[–]TyrannicalWill1 point2 points3 points (3 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (2 children) | Copy Link
[–]TyrannicalWill0 points1 point2 points (1 child) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link
[–]EpicHedgehogFrom19790 points1 point2 points (1 child) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link
[–]mohnjack 2 points3 points4 points (0 children) | Copy Link
[–]AirplaneNote1 point2 points3 points (2 children) | Copy Link
[–]TyrannicalWill0 points1 point2 points (1 child) | Copy Link
[–]AirplaneNote0 points1 point2 points (0 children) | Copy Link
[–]MrRodje1 point2 points3 points (0 children) | Copy Link
[–][deleted] 1 point2 points3 points (2 children) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (1 child) | Copy Link
[–][deleted] 1 point2 points3 points (0 children) | Copy Link
[+][deleted] (3 children) | Copy Link
[deleted]
[–]nigelh0 points1 point2 points (1 child) | Copy Link
[–]stringedbeams0 points1 point2 points (0 children) | Copy Link
[–]nigelh0 points1 point2 points (1 child) | Copy Link
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link
[+][deleted] (1 child) | Copy Link
[deleted]
[–]TheJCR[S] 0 points1 point2 points (0 children) | Copy Link