DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

View Poll Results: favorite programming language?
Asm 19 10.73%
C 67 37.85%
C++ 36 20.34%
C# 8 4.52%
Java 15 8.47%
Javascript 6 3.39%
Perl 30 16.95%
PHP 33 18.64%
Ruby 13 7.34%
Python 39 22.03%
Shell 36 20.34%
Awk 15 8.47%
Others: Tcl, Erlang, Haskell, Ocaml, D, Forth ... 25 14.12%
Multiple Choice Poll. Voters: 177. You may not vote on this poll

Reply
 
Thread Tools Display Modes
Old 2nd March 2015
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 343
Default

I'm thinking of trying to learn to use Perl - though I'm only going to do it for no other reason than to try & keep my old grey cells alive & active.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Old 2nd March 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by hanzer View Post

I'm surprised the OpenBSD community [seemingly] has no interest in Ada.
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Reply With Quote
Old 3rd March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by Oko View Post
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Video - Ada, Past Present and Future
Book - Ada Distilled

Gnat, GCC's Ada frontend, is available /usr/ports/lang/gcc but I haven't tested it extensively. The gcc-aux compiler is [unfortunately] not in the ports tree and it looks like it is no longer built/maintained for OpenBSD.
Reply With Quote
Old 3rd March 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Oko View Post
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Ada is the result of an effort to standardize the programming language used for all DoD (Department of Defense) projects back in the 1970's. With very large-scale goals, Ada compilers were huge, & required official validation -- meaning that they could not be officially be called Ada compilers without passing an official battery of tests. The intent was that Ada code successfully compiled on one validated compiler should compile & run with the same behavior on any other platform using an equally validated compiler.

However, these goals were not completely realized. The defense industry didn't readily accept Ada, & while there were a number of projects successfully using the language, use of other languages perpetuated -- partially because Ada compilers, having to be validly support all aspects of the language specification were large -- impractically so for nominal hardware platforms.

Secondly, Ada was intended for programming in the large. While Ada sports many of the features found in other languages today, it wasn't fully object-oriented (using today's accepted definition...) until Ada95. While many might consider this of marginal importance, it put Ada behind other popular languages at the time.

Not speaking for the OpenBSD community, but in my opinion, the overhead of compiler validation & compiler size lessened the attractiveness of the language in comparison to what could be found in other readily available alternatives.

Otherwise, Ada is not a bad language; it has some interesting checks. It still fills the niche of a number of projects which are usually government related.

More information can be found on Wikipedia:

http://en.wikipedia.org/wiki/Ada_%28...ng_language%29

Last edited by ocicat; 3rd March 2015 at 11:28 AM. Reason: correct spelling
Reply With Quote
Old 3rd March 2015
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Niklaus Wirth, the father of Pascal, foresaw that Ada would be to complex. That is why he developed Modula-2 as an simpler Ada alternative.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 5th March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by Oko View Post
Quote:
Originally Posted by hanzer View Post
I'm surprised the OpenBSD community [seemingly] has no interest in Ada.
Could you please explain it a bit?
Hmm, I suppose that you might have been asking about the lack of interest in Ada on OpenBSD. The general BSD/Ada situation was laid out nicely a few years ago on a FreeBSD mailing list:

Improving Ada support on FreeBSD and in the ports system (2009)
Quote:
PROBLEM 1. Lack of packages (as shown above)
PROBLEM 2. No choice in the use of compiler
PROBLEM 3. Compiler version chaos and lack of architecture support
PROBLEM 4. Lack of a debugger
PROBLEM 5. Lack of a consistent policy for Ada packages
The author of that email went to work on the problems and has made tremendous progress in bringing a coherent set of Ada tools and libraries to FreeBSD, DragonFlyBSD, and NetBSD.

FreeBSD Quarterly Status Report (2013)
Quote:
At this point, it looks like FreeBSD (shared with DragonFly via DPorts) has taken the crown from Debian as the recognized best Ada development platform. The FreeBSD versions of the software are more recent and the Ports Collection has ports not available on Debian, such as LibSparkCrypto, the Matreshka library, and the Ahven unit tester.
It looks like there are 54 FreeBSD ports related to his project.

I suspect he was going to do something similar for OpenBSD but it didn't happen somehow.

Last edited by hanzer; 5th March 2015 at 09:18 PM. Reason: phrasing
Reply With Quote
Old 6th March 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by hanzer View Post
I suspect he was going to do something similar for OpenBSD but it didn't happen somehow.
I am unsure how you came to that conclusion.
Reply With Quote
Old 6th March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by ibara View Post
I am unsure how you came to that conclusion.
That's cool. John gave a talk at FOSDEM 2014 - Ada in *BSD. Page 23 might be interesting:

Quote:
At last check, GNAT builds almost perfectly on OpenBSD
with the DragonLace patches. It only fails to detect
running out of stack space.

There was never any interest shown for my version
GNAT in OpenBSD, esp. as a maintainer is required.

It would be trivial to port given two examples (ports &
pkgsrc) already exist, as well as a functional bootstrap.

In official repo, there are FSF GNAT 4.6.4 and 4.8.1 for
i386 and amd64. The results of the testsuite are
unknown; no DragonLace patches were used AFAIK.
Reply With Quote
Old 26th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

I like to use C# at work. Most of C# jobs I've found are relatively chill 9-5 affairs with minimal overtime. Also, C#'s LINQ is brilliant if you don't have experience with LISP or functional programming languages.

C was my first, and I still tinker with it occasionally because it keeps me humble.

However, most of my home programming is in the shell. My last two scripts took an arbitrary set of images, copied them to two directories named "originals" and "resized", resized them with ImageMagick, and adjusted their compression with jpegoptim. The other takes a directory full of Markdown and org-mode files and runs them through pandoc to build a website.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Old 26th October 2017
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

I would be interested in seeing this script that you used/wrote for ImageMagick, if you are willing to share it.

Quote:
---is in the shell.
, But which shell, ? I use ksh , in any event it would be interesting to me
to see this script, what I have in mind is for 2 directories, Images and a sub dir, "thumnails".
If you do share it, it probably would be best in it's own topic, here in programming,
For example: Ksh , Image Magick resize script ,... or something like that.
At this time I manually make the thumbnail using the convert command, but 1 image at a time. A script that could do the entire image dir would be handy.
thanks

For me my favorites, I think I all ready said once, but any way Perl, was bash, but now ksh I like much better, qbasic, was, but that was a long time ago, it is not of much use any more.
PHP, I hate, but it is necessary to understand at least a little, after all said and done I am
not really any kind of programmer, it is all a hobby for me.
__________________
My best friends are parrots
Reply With Quote
Old 27th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

Quote:
Originally Posted by GarryR View Post
I would be interested in seeing this script that you used/wrote for ImageMagick, if you are willing to share it.
Here you go. You'll see that it's a bash script. I first started working on this when I still ran Linux. While it runs under ksh, I keep it under bash because I figure it's easier for BSD users to install bash from a port than for Linux users to install pdksh.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Old 27th October 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by demifiend View Post
I figure it's easier for BSD users to install bash from a port than for Linux users to install pdksh.
I've been trying to fix that:
https://github.com/ibara/oksh
Reply With Quote
Old 27th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

Quote:
Originally Posted by ibara View Post
I've been trying to fix that:
https://github.com/ibara/oksh
Now we just need to persuade Linux users to switch to openbsd-pdksh when zsh is all the rage.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Generally i like Java and PHP. On M$ platforms, i also like C#...

I do not really like JavaScript for web purposes, i always try to avoid it. (Yes, these days... i know! )
__________________
Regards, Jan
Reply With Quote
Old 24th February 2018
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by jmar83 View Post
I do not really like JavaScript for web purposes, i always try to avoid it. (Yes, these days... i know! )
What are you using for frontend, then? Some other language compiled into Javascript/WebAssembly?
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Old 24th February 2018
jmar83 jmar83 is offline
jmar83
 
Join Date: Feb 2018
Location: CH
Posts: 17
Default

Mostly HTML and CSS.

I use it, if there is no other way... when i need it, i mostly use "pure" javascript (without things like jquery) - i don't like big fat js frameworks with several hundreds kilobytes (or more) of code.

Maybe i use jquery when i need a special plugin, e.g. a complex gui component...
__________________
Regards, Jan

Last edited by jmar83; 26th February 2018 at 10:33 AM.
Reply With Quote
Old 24th February 2018
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by jmar83 View Post
Mostly HTML and CSS.
As a Internet user I also like server side rendering. Executing Javascript in browser is basically executing untrusted program on the computer, so I try to avoid that using NoScript.

Nevertheless from programming perspective it maybe fun to try Kotlin translated to Javascript as frontend language.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Old 18th November 2018
sackadoo sackadoo is offline
New User
 
Join Date: Nov 2018
Posts: 1
Default

A few years back, I wrote a desktop app in PHP. For me, PHP was C with OOP and I really got into it. My hope was that a FOSS PHP compiler would come along with support for GTK and that whole bag of tricks. But when the compilers didn't go in the direction I'd hoped, I did a lot of exploring and settled on D which I'm in the process of learning now.

PHP has spoiled me, though. I still have to look very carefully now that I'm using a language that doesn't start variables with '$'.
Reply With Quote
Old 21st January 2020
thedirtyvms's Avatar
thedirtyvms thedirtyvms is offline
.:VMS:.
 
Join Date: Nov 2017
Posts: 6
Default

Common Lisp
Reply With Quote
Old 24th January 2020
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

These days I program almost everything in Go. I worked for it full-time for 3 years at my last job, and find it works well for most (though not all) tasks I do, so I've continued using it since I left last year.

Other languages might arguably be a better fit for some tasks, but I find that the older I get, the less time and patience I have to learn new things. Basically, I just want to Get Shit Done™ and not spend half my life learning new things for the sake of it.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Tags
programming, programming language

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favorite Programming Tools JMJ_coder Programming 20 19th January 2015 07:56 AM
your 3 favorite games welkin FreeBSD Ports and Packages 17 5th June 2010 08:26 PM
Best Web Application Language JMJ_coder Programming 24 25th November 2008 12:25 PM
The language here scottro Feedback and Suggestions 11 19th May 2008 11:54 PM


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick