Off Topic > Off Topic
Programming Megathread
<< < (63/241) > >>
Headcrab Zombie:

--- Quote from: SetGaming on January 18, 2016, 12:17:53 AM ---The problem I have with it is that I'm so used to computers not having an "arrow" looking syntax, where you do stuff like

--- End quote ---
A lot of languages use "arrow" operators. C/C++, C#, and PHP being the languages I've worked with that use it
Foxscotch:

--- Quote from: Headcrab Zombie on January 18, 2016, 08:06:51 AM ---A lot of languages use "arrow" operators. C++ and PHP come to mind

--- End quote ---
but both of them use it for member access, not assignment
Headcrab Zombie:
True but he's wasn't really specifically complaining about that, just "arrow syntax" in general
Also I forgot about the => operator used in php (array declaration) and c# (multiple things)
$trinick:

--- Quote from: Pecon on January 17, 2016, 11:00:37 PM ---Haskell bothers me. I once got into a really in depth argument with another programmer who used Haskell about it. They were really trying to push a point saying that Haskell offers a syntax that is somehow so so much better than C-like syntax, and that everyone who used C-like languages were stabbing themselves in the leg.

Personally I can't make any sense of it. It's just a bit too different and I'm not willing to put the effort into trying to learn something that is different on so many different fundamental levels.

--- End quote ---

That dude doesn't know what he's talking about and is probably a programming hipster who read Learn You a Haskell for Great Good.

Haskell is a tool in a programmer's toolbox, not a swiss army knife of programming ubiquity. I don't like when people swear by one language and only one language for all purposes. Don't use C++ for writing scripts that run inside a closed environment. Don't use JavaScript for writing firmware.

Anyway, Haskell is a functional programming language. It's functions completely differently than all the imperative languages you're used to, so it makes sense that it's a little confusing. However, that doesn't make it useless. Functional programming code is essentially a bunch of math problems for the computer to solve. This makes it (effectively) no good for things like video games where the majority of the calculations are simple state changes, but extremely useful for things like solving advanced equations efficiently. You'd rather use Haskell than C if you were writing a quantum physics simulator, but you'd rather use C than Haskell if you were writing essentially anything a mainstream programmer would write.
ZSNO:

TLE Means time limit exceeded. Limit is 30 seconds
Brought 30+ second code down to 0.8 second code. Still gotta optimize it some more though
Navigation
Message Index
Next page
Previous page

Go to full version