Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
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 Re:It's not that I want to brag I'm old... (Score 1) 266

Add to that, the defining feature of a functional language is the set of things that it disallows, not the set of things that it permits. A multi-paradigm language, by definition, has to permit anything that the various paradigms permit and so doesn't gain the benefits that you get from being able to reason about your code in a language that doesn't permit unconstrained mutability or side effects.

Comment Re:It has its uses (Score 2) 266

This needs moderating up. Talk to an Ocaml programmer and a Haskell programmer about what makes a functional language and you'll see very different opinions and these two are languages that were actually designed as functional languages: the bits that end up in other languages are a tiny subset.

Coming from the Haskell side, I see functional programming as programming without side effects and with monads. You can implement monadic constructs in other languages, but it rarely makes code cleaner. Just having higher-order functions doesn't make a language a functional language any more than having structs makes C an object-oriented language.

If the question is 'do you think using higher-order functions simplifies the expression of some algorithms' then the answer is obviously 'yes': programmers have a lot of tools to choose from and most of them are useful at least some of the time.

Comment Re:It has its uses (Score 2) 266

In C++14 in particular, lambdas with auto parameters dramatically reduce copy-and-paste coding. If you have a couple of lines of code that's repeated, it isn't worth factoring it out into a separate templated function (in particular, you'll often need to pass so many arguments that you'll end up with more code at the end), but pulling it into a lambda that binds everything by reference and has auto-typed parameters can reduce the amount of source code, while generating the same object code (the lambda will be inlined at all call sites).

Comment Re: Time to switch (Score 3, Insightful) 204

Volume licensing for Office 365 is a lot cheaper per seat than simply multiplying the list price by number of employees. It also has a much simpler licensing model than previous Microsoft volume licensing, which makes compliance easier (you get all of the desktop apps for Windows, Mac, iOS and Android included). The latter point alone is worth it to a lot of big companies.

Comment Re:Economics is hard (Score 1) 168

I'm well aware of the overheads, and see this from both sides. For us, procurement rules make it trivial to spend £3000 on a laptop that we'll replace after 2-3 years, but almost impossible to spend £1000 on a chair that comes with a 15 year warranty and is likely to reduce absences due to back pain by a month over its lifetime.

Comment Re:H2 is actually gaining (small) market presence (Score 1) 152

But with that convenience you lose a lot of efficiency compared to leaving everything as electricity.

How do you carry a tank of electricity around in your vehicle without converting it to some other form? Did you invent cheap room-temperature superconductors and forget to tell anyone?

Comment Re: Micro LSD dosing might be applicable (Score 1) 102

Wow, that article is terrible. One of a character in the bible with no historical evidence to support the claims that he took drugs (or existed at all), one whose work is now almost entirely debunked, and one who largely stole is research from others. If these are the top examples of great work done by people on drugs, that's a pretty good argument for avoiding them.

Comment Re:Doesn't even need to be open source (Score 2) 123

The first of these isn't really a problem with the textbooks, it's a problem with the teaching. At university level, textbooks should be for gaining some extra detail and background that isn't covered by the course. If your course depends on a particular textbook to such a degree that rearranging the material makes the textbook unusable, then your course is probably a waste of everyone's time and the students should just go and read the book instead.

Slashdot Top Deals

The solution to a problem changes the nature of the problem. -- Peer

Working...