# What programming language would most likely be used these days?

**URL:** <https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156>\
**Category:** Factual Questions\
**Created:** [June 8, 2009, 11:01pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156 "2009-06-08T23:01:10Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sage\_Rat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sage_rat/32/399_2.png) [@Sage\_Rat](https://boards.straightdope.com/u/Sage_Rat)\
**Post date:** [June 9, 2009, 5:21am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/21 "2009-06-09T05:21:50Z")

</div>

Hm, and total\_count should be incremented with count\* not out on its own. There’s a chance we don’t find a spot or an item.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [June 9, 2009, 5:43am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/22 "2009-06-09T05:43:17Z")

</div>

A) Why bother using (fixed-length) arrays if you don’t do anything with random access and just iterate through all the time? Might as well use linked-lists. Alternatively, go for a more sophisticated hash-table implementation.

B) Surely what the OP is looking for is more than just an implementation of multisets (that is, more than just keeping track of how many occurrences there are of particular product ids within the last MAX\_LINK\_COUNT many)?

---

<div class="post-metadata">

**Author:** ![Alex\_Dubinsky](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Alex\_Dubinsky](https://boards.straightdope.com/u/Alex_Dubinsky)\
**Post date:** [June 9, 2009, 6:03am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/23 "2009-06-09T06:03:32Z")

</div>

Yeah, you really have to tell us more of what you want to do. Maybe you want to hook up a PDA to a barcode scanner and walk around a store using it. In that position you’d have to ask what runs on the PDA (probably c++, but maybe something higher-level). In any case you have to tell us whether you want a GUI and what kind. (If you don’t want a GUI, then it’s much easier to go with a lower-level language like C++. If you do want a GUI, then that leads to the big question. A Windows gui? A Web gui? A PDA gui?).

---

<div class="post-metadata">

**Author:** ![Sage\_Rat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sage_rat/32/399_2.png) [@Sage\_Rat](https://boards.straightdope.com/u/Sage_Rat)\
**Post date:** [June 9, 2009, 6:06am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/24 "2009-06-09T06:06:38Z")

</div>

> [@Indistinguishable](#):
>
> A) Why bother using (fixed-length) arrays if you don’t do anything with random access and just iterate through all the time? Might as well use linked-lists. Alternatively, go for a more sophisticated hash-table implementation.

Because it’s demonstration code, not release code.

> [@](#):
>
> B) Surely what the OP is looking for is more than just an implementation of multisets (that is, more than just keeping track of how many occurrences there are of particular product ids within the last MAX\_LINK\_COUNT many)?

You’re looking for a way to limit to the top X number of products that were bought by the same people. What items constitute the top X is going to vary with time, with some entering it only briefly, while others remain for a long time. So you could track same purchases per time for each month, but then you have to store a whole bunch of data and track every single product that was ever linked to this one. This class lets items make a stab at entering. If they’re popular enough they’ll wear down less popular items and enter the list. If items that are on the list aren’t popular, they’ll wear down fastest, while as ones which continue to be popular will keep popping their count back up as other clash to get in. Think of it as a mini-evolution system where the strongest at any given moment are the ones who make it into the running. But you don’t have to track a whole lot of data to accomplish that task.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [June 9, 2009, 10:46am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/25 "2009-06-09T10:46:06Z")

</div>

Maybe this is a complete misread of the OP, but perhaps what is really needed here is an excuse to relearn programming.

I vote for C# because it is nicely tidy and consistent in its syntax, and it is well supported for the Windows platform, and Microsoft makes it so easy to get (VisualStudio with several languages is cheap, and (at least a little while ago) you can get a version of VisualStudio with C# for free from [Microsoft.com](http://Microsoft.com). It uses the .NET framework, which provides all the Windows forms for GUIs and offers “managed code” that automates the checking of certain things like out-of-bounds array indices that often lead to bugs (in doing so it prevents certain kinds of security problems). I got an introductory book by Jesse Liberty that explained it quite clearly and pleasantly.

C# and C++ and Java are so similar in their syntax that many things look the same between them, or differ only in some minor way like a semicolon at the end of a line.

In any case, object orientation will be the big new element of programming, if you’ve been out of it long enough.

---

<div class="post-metadata">

**Author:** ![rbroome](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbroome](https://boards.straightdope.com/u/rbroome)\
**Post date:** [June 9, 2009, 11:25am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/26 "2009-06-09T11:25:03Z")

</div>

> [@Indistinguishable](#):
>
> Haskell! Haskell!
> 
> …No, probably not. But the details are so nebulous, who knows? Everyone gets to put their favorite language in the ring.

I vote for Eiffel!

> **[Home - Eiffel Software - The Home of EiffelStudio](https://www.eiffel.com/)**
>
> Eiffel Software is the leader in making software projects predictable and controllable. EiffelStudio enables software developers to quickly develop systems that work the first time around and that are easy to adapt when the world and the needs...

Actually the only time we used Eiffel is when a customer wanted us to move a program out of Eiffel into Java in a week. I don’t know whether we ported the code or just rewrote the code, but it got done.

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [June 9, 2009, 1:19pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/27 "2009-06-09T13:19:30Z")

</div>

I’d look at Haskell or O’Caml for this (or if you need access to the .NET libraries, take a look at F#).

[Here’s](http://www.serpentine.com/blog/2007/08/27/weighted-slope-one-in-haskell-collaborative-filtering-in-29-lines-of-code/) an implementation of a weighted slope one collaborative filtering algorithm in 29 lines of Haskell.

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [June 9, 2009, 1:25pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/28 "2009-06-09T13:25:49Z")

</div>

For instance, [here’s](http://codebetter.com/blogs/matthew.podwysocki/archive/2009/03/30/functional-programming-and-collective-intelligence.aspx) a series of blog articles on functional programming and collective intelligence. They use F#, Microsoft’s version of O’Caml/SML. The languages are close enough to probably do a direct translation, if you don’t want to be tied to Windows/Mono.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [June 9, 2009, 2:06pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/29 "2009-06-09T14:06:30Z")

</div>

Just for reference, [this is how Amazon’s system works](http://hugo.csie.ntu.edu.tw/~yjhsu/courses/u2010/papers/Amazon%20Recommendations.pdf).

---

<div class="post-metadata">

**Author:** ![minor7flat5](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/minor7flat5/32/258_2.png) [@minor7flat5](https://boards.straightdope.com/u/minor7flat5)\
**Post date:** [June 9, 2009, 4:42pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/30 "2009-06-09T16:42:02Z")

</div>

(IMHO) Java and Perl.  
With one you can write many disparate types of programs and deploy them on a great multitude of architectures. With the other you can glue together anything you want.

> [@Markxxx](#):
>
> I agree C# is a great language to learn. Once you get a hang of it, you can switch over to Java. Java applications are slowly being replaced by Flash products which do similar things. So Java never caught on like it was supposed to.

I wouldn’t dream of deploying Java applets, which were supposed to become what Flash is.

However, Java is very well suited to back-end processing, there are loads and loads of web sites out there running on a Java server, such as Tomcat or JBoss.

> [@Chronos](#):
>
> Java is very closely related to C, but typically runs slower, since it adds another layer of abstraction (the “virtual machine”). One tactic is to use Java for the “front end” of an application, handling the user interface, but to pass everything to a “back end” written in some other language that does all the heavy processing.

I guess if you are doing heavy duty particle physics modeling then Java might not be the tool :).  
In my world, we are typically database and network bound, so the total round-trip experience might break down to ~1ms due to Java, ~500ms due to the database, ~200ms due to the network.

---

<div class="post-metadata">

**Author:** ![TimeWinder](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@TimeWinder](https://boards.straightdope.com/u/TimeWinder)\
**Post date:** [July 3, 2014, 8:31am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/32 "2014-07-03T08:31:48Z")

</div>

> [@lucysome](#):
>
> right now i am using C#, [vb.net](http://vb.net) to create [barcode scanner](http://www.keepdynamic.com/dotnet-barcode-reader/).

I suspect the OP picked a language a half decade ago.

---

<div class="post-metadata">

**Author:** ![Terminus\_Est](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/terminus_est/32/3087_2.png) [@Terminus\_Est](https://boards.straightdope.com/u/Terminus_Est)\
**Post date:** [July 3, 2014, 8:36am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/33 "2014-07-03T08:36:59Z")

</div>

This ZOMBIE seems to have been revived by a spammer. Reported.

---

<div class="post-metadata">

**Author:** ![Keeve](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Keeve](https://boards.straightdope.com/u/Keeve)\
**Post date:** [July 7, 2014, 9:37am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/35 "2014-07-07T09:37:10Z")

</div>

I vote for \*\* Zombie \*\* :eek:

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [July 7, 2014, 9:40am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/36 "2014-07-07T09:40:12Z")

</div>

Everything written in all the above posts 5 years ago is obsolete today.

But the determined real programmer can still write FORTRAN programs in any language!

---

<div class="post-metadata">

**Author:** ![Donnerwetter](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@Donnerwetter](https://boards.straightdope.com/u/Donnerwetter)\
**Post date:** [July 7, 2014, 10:07am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/37 "2014-07-07T10:07:37Z")

</div>

[Real Programmers Don’t Use Pascal](http://www.pbm.com/~lindahl/real.programmers.html)

---

<div class="post-metadata">

**Author:** ![filmstar-en](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@filmstar-en](https://boards.straightdope.com/u/filmstar-en)\
**Post date:** [July 7, 2014, 10:19am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/38 "2014-07-07T10:19:41Z")

</div>

I am currently learning Go, only a few years old. Developed by Google, it seems to be getting a bit of traction as a systems development language for the Internet age. Has concurrency built in for multi-threading, which I need.

However, it is ‘horses for courses’, choose the language which has the emphasis and features you require for the job in hand and also has a style that makes it easy for you to be productive. Languages used in large enterprises are rather different beasts to those used for the Web.

There is nothing that can be all things to all programmers, they all have strong and weak points. A zero sum game, I think.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [July 7, 2014, 10:58am UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/39 "2014-07-07T10:58:30Z")

</div>

Go is the first mainstream language I’ve seen that really does concurrency well. (Except for Erlang, but everybody seems to hate Erlang except me.)

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [July 7, 2014, 2:20pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/40 "2014-07-07T14:20:44Z")

</div>

I’ve been really into [Scala](http://www.scala-lang.org/) lately. Java-ish syntax, but much more compact, and with functional extensions. The [Akka](http://akka.io/) package provides large-scale concurrency in a way that I am told is Erlang-like (I don’t know enough about Erlang to compare).

---

<div class="post-metadata">

**Author:** ![robert\_columbia](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@robert\_columbia](https://boards.straightdope.com/u/robert_columbia)\
**Post date:** [July 7, 2014, 2:34pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/41 "2014-07-07T14:34:53Z")

</div>

On what kind of platform were you planning on running this software?

I mostly use C# nowadays, but then I do a lot of web-based work and it is one of the standard languages for web applications. C# is also good for standalone Windows applications and console applications, but is very difficult (but not impossible) to use in a Unix or Unixlike environment, such as the Mac or Linux. Almost nobody does C# development on the Mac anyway so you’d be struggling alone with a lot of minor technical issues (why is it still throwing a file access permission error? !@#$) rather than spending time actually building your application.

C# is actually pretty close to Java in terms of its paradigms. They are both object reference-based languages with garbage collectors that have a C-derived syntax.

Javascript, on the other hand, is an entirely different beast even though it looks very much like Java, C#, and C++. Javascript is a duck typed language, very loose.

---

<div class="post-metadata">

**Author:** ![Learjeff](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@Learjeff](https://boards.straightdope.com/u/Learjeff)\
**Post date:** [July 7, 2014, 3:43pm UTC](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156/42 "2014-07-07T15:43:40Z")

</div>

> [@Sage\_Rat](#):
>
> As **Shagnasty** says, Python is a good learner’s language.

I disagree. Python is my favorite scripting language (and I routinely use a half-dozen of them and have used many others over the years). But it’s not particularly good for a beginner due to the way it’s documented.

[Previous page](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156.md?page=1)

[Next page](https://boards.straightdope.com/t/what-programming-language-would-most-likely-be-used-these-days/499156.md?page=3)
