Follow Slashdot stories on Twitter


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment I couldn't get past "how do you write a game"? (Score 2) 105

When I was learning about functional programming in college, I got about as far as learning about the avoidance of side effects, at which point I started asking myself, "how would one write a video game in an FP language if you're not supposed to e.g. update the player's on-screen position in response to a keystroke"? The answer I got was to either generate an entire new game-state for each update (which seemed unwieldy), or work around the problem using monads, which admittedly I never really understood. I went back to procedural programming since that looked like the more straightforward way to implement the kinds of programs I wanted to write.

My question now is, do people ever actually write video games using functional programming? And if so, how would an FP-based arcade-style video game realistically handle things like updating the state of the player and the monsters at 60fps, as the game progresses?

Comment Re: Its easier to pick sides (Score 0, Flamebait) 135

No, though Trump is more centre than right.

The left can't tolerate anyone who thinks differently to them, because their ideology is their identity. To disagree with them is to claim they're wrong, and they can't be wrong, because they're so much smarter than everyone else that they should be The Great Leader telling everyone what to do.

The right can handle diversity of opinion. The left can't. That's why the left always try to censor or murder anyone who disagrees with them.

Comment Re:What's changed? (Score 0, Troll) 135

"This may sound strange, but people who I've always considered "conservatives"/"Republicans"/"right-wingers" have started to express some of the most positive and hopeful sentiments."

Why would that be strange? We're watching the left self-destruct as they take identity politics to its inevitable conclusion and start to eat each other. I haven't felt this hopeful since the collapse of the USSR.

The right is driven by love of their family, their nation, and their communities. The left is driven by hatred of anyone who's different to them. The only reason you think it's strange is because the left have had better PR, thanks to decades spent infiltrating the media.

Comment Re:Its easier to pick sides (Score -1, Flamebait) 135

If there's one thing the left can't stand, it's diversity.

Sure, they want to eat Mexican food, but they don't want anyone who thinks differently to them. Everyone must be a compliant drone in the hive-mind. Everyone must think and behave the same, or be sent to the death^H^H^H^Hre-education camps.

And, thus, we're heading at an accelerating pace toward civil war.

Comment Re:Leftism is causing more division and strife. (Score 0, Flamebait) 135

Pretty much. The left set out in the mid-20th century to take over most of the social institutions across the West. They've succeeded, and strife and hatred is the inevitable consequence.

Along with the collapse of those institutions, of course, because they can't both do their real job and make politics job #1.

Comment Re:Cox has low customer satisfaction? (Score 1) 69

Yeah, I know why they're hated as a cable TV company, but the ISP side of Comcast has always been pretty decent in my experience, and I don't know anyone who has anything bad to say about that side of them. Sure, the data caps is an ongoing concern, but they haven't implemented anything evil on that side, beyond introducing the concept to begin with.

Comment Re:Libreoffice is a thing (Score 1) 197

git is a tiny fraction of what's needed to replace OneDrive - unsurprising given it's a source code version control/management system. If you were to start from scratch creating a OneDrive alternative, you'd probably start with Apache, not git. Add versioning and more advanced permissions to Apache's WebDAV implementation, a web interface to the same directory (preferably linked to something capable of at least viewing Word etc documents online), and client tools to sync with Apache, and you're pretty close to being there.

Comment Re:Remember what broke the internet... (Score 1) 65

The underlying problem is that so much software is farmed out to Indian code-monkeys who have no idea how to program, so they just copy-and-paste whatever they find on the web. They'll have a new job in three months anyway, so why would they care that the software is crap, insecure and unsupportable?

Comment Re:Libreoffice is a thing (Score 1) 197

"Something as simple as bullet points and modifying paragraphs spacing or adjusting the indentation on the ruler is enough to reveal its many flaws"

How strange. That's exactly what I could have said about Word.

And at least I can figure out where to find things in LibreOffice, whereas I can never tell where anything will be hidden in Word's 'Ribbon'.

Slashdot Top Deals

"We learn from history that we learn nothing from history." -- George Bernard Shaw