Discussion Locked

fill in the blank -The best cross platform programming language is

0 helpful
157 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

This is page 2 of the discussion. Read the opening post

157 replies

by jaqui

using html only, no other language, including javascript, write an application to query a database, allow alteration of a record and update the database.

btw, you will fail, since HTML is a MARKUP language, good only for layout/ presentation, everything else is beyond it's abilities.

by apotheon

You asked for a cross-platform programming language. HTML is not a programming language: it's not Turing-complete. It's also not any kind of scripting language: it doesn't even have control structures. It contains no conditional, state maintenance, or internal input/output handling capabilities.

It is, in brief, a configuration language and nothing more. In specific, it is a presentation configuration language, and it is a particular limited subtype of configuration languages called a markup language, so it's not even one of the more complete, powerful, or flexible configuration languages.

Yeah, you're right, HTML doesn't count. It doesn't even come close. Saying HTML is the most cross-platform compatible programming language is a little like saying the receipt from your last ATM transaction is the most enthusiastically accepted currency worldwide: it's not even worth the paper on which it's printed to most people, particularly those who don't speak the same language and are not familiar with the currency its printed text represents.

by yinbig

Question was - Best Cross Platform Programming language. Never indicated what it needs to program????

So for layout / presentation programing HTML is very cross platform at it's task......is it not?

The question was answered, just not to your liking I guess.

by m_a_r_k

Well, from the product documentation, I'll have to say that this Synergy thing is the most cross-platformable development language out there. With 4GL languages like this appears to be, you probably lose some control of resources and run-time performance probably takes a hit, but nowadays with ultra-fast processors and gigabytes of memory, that part of software development is unfortunately diminishing in importance.

by jaqui

cpu and ram make resource control not as important?
so You are giving away a system powerful enough to run your application when someone buys the application?

cause FORCING hardware expenditures on clients is a bad way to keep clients.
it is just as important now to write low memory footprint and efficient cpu usage software as it has always been.

by sterling "chip" camden

Technically, Synergy/DE is a 3GL. It is compiled to virtual machine code (except on OpenVMS, where it compiles to native). It's also quite scalable and performs well (though not on a par with C). Its target market is high-end, multi-user environments. The database system is light-weight and powerful, but they also provide access to SQL databases. And they have a proprietary back-end plugin for the web that can be used from Java, .NET, and COM.
Disclaimer: they are one of my clients.

by jaqui

is the actual content, that changes when an alteration is made in the database. :D

dynamic menus are clientside scripted animation sequences.
[ unless, of course, they are css without using any javascript or flash. ]

btw, here is an example of a cross browser drop down-slide out menu:

http://www.cssplay.co.uk/menus/final_drop.html

written entirely in css and xhtml.

by m_a_r_k

Take a look at Windows as an example. Every incarnation requires faster machines and more memory. And people and corporations willingly upgrade their hardware for it. Then, when a lot of hardware is upgraded, the software vendors gleefully produce bigger and more resource-intensive software. Twenty-five years ago, there were no hard drives and we had 8-bit procssors and 64K of RAM. My first project as a software developer was to develop a real-time application that ran on a 8-bit, 2 MHz processor with 8K RAM. Are you telling me that today's software products are still developed with those same resource constraints? I'd be a fool and would get fired if I wasted all my time trying to cram my applications into as small a footprint as possible.

There really aren't many software products out there these days that will tax your machine. Not with 2+ GHz 32- processors, 512K RAM or more, big, fast hard drives, etc. About the only ones are video games, and yes these vendors DO force customers to install a blazing fast 3D graphics cards. A graphics card with 256K or more of RAM? We sure didn't HAVE to have that 20 or even 10 years ago. But to answer your question, yes in general, software vendors DO require customers to upgrade hardware if they want to buy their latest products. It's an easy thing to advertise and convince customers of the advantages to all the new improvements in version X as opposed to version X-1, if only you spend a few bucks to buy new hardware, because we all know that the average turnover in computer equipment for businesses is less than three years anyway.

Nowadays I can write software to arbitratily allocate a 20 megabyte buffer (or much larger if I wish) for data manipulation, without worry that I will run out of resources. Because I can do this, I can develop a much faster program (reducing disk accesses by several orders of magnitude). In the olden days I always had to very cognizant of running out of memory. Checking the return value from C's [i]malloc[/i] was a necessity. Nowadays, checking the return value from my [i]new[/i] function is just a matter of habit.

In the olden days with only a RS-232 serial port to transfer data between machines, we had to be very aware of transmitting unnecessary data. Now with 1 Gb/s Ethernet, we can and do transmit all sorts of extra, but useful, data (for debugging, diagnostics, etc).

by m_a_r_k

What's the learning curve on that beast?

And, what's the hardware requirements for using the toolset? In reference to Jaqui's post, I'm going to go out on a limb and say that I am sure the h/w requirements are much more than Borland Turbo C's were 20 years ago. ;)

by jaqui

windows is a perfect example of why NOT to do it, the extra hardware expense on top of the exorbitant software expense for beta ware is just not worth the cost. :p

open letter to microsoft:

What Hardware are you supplying with vista? Since you insist on being unreasonable and forcing hardware upgrade with new versions of your software, you will be paying for all the new hardware won't you?
[ either that or paying us to beta test your malware called windows vista on hardware you supply, and yes, you have yet to release any software that is ready for release, you release beta ware and call it production / stable ware ]

by m_a_r_k

I read somewhere that MS is going to recommend 1 GB for Vista. Holy cow! Windows is a good example for my argument because that is what is driving the software bloat. You supposedly need new hardware to run each latest Windows version. So with the bigger disks and faster CPUs and more memory, the rest of the world is less constrained to write small, fast applications. There isn't much incentve anymore to make an application run 20% faster than blazing fast or use 20% less memory. Who cares if an app uses 50 MB of memory or 60 MB? Or does something in 10 nanoseconds or 12 nanoseconds? In the old days, using 50 KB or 60 KB, or running in 10 secs instead of 12 secs was an expensive choice in terms time and especially money regarding memory costs per byte. (Nowadays we speak in terms of cost per megabyte whereas in the past a teensy little megabyte was only a dream).

by apotheon

Javascript has become almost entirely obsolete as used solely for dynamic presentation of content these days, with current technologies and techniques. It has, however, moved its usefulness to the realm of asynchronous data transport and attendant presentation modification. AJAX is basically shorthand for "use a Javascript function for asynchronous data transport to provide dynamic content and interface behavior modification", but it sounds like it means a whole lot more than that because it's a hip buzzword.

Properly employed AJAX isn't as awful as the naysayers would have us believe. It's also not nearly as "cool" in any useful way as its proponents would have us believe. It has its place, though that place is much, much smaller than many seem to think.

That being the case, I sympathize with Sterling.

by sterling "chip" camden

As far as learning Synergy/DE, it is a procedural language (they are just now adding OOP syntax), so it depends on how comfortable you are with a top-down, non-OOP approach to coding (for now). If you have a Pascal, Algol, COBOL or Fortran background, it's much easier than any of those without losing any power of expression. You can get to pointers if you must, but they aren't required or encouraged.

by justin james

... and then I read your reply and saw that you said exactly what I was going to send.

If I was a hiring manager and saw that someone listed "HTML" as a "programming language" I doubt I would hire them.

HTML is a slightly less friendly version of using WordPErfect 5.1. Instead of using a bunch of key combinations to wrap text in markup, you write out tags. Knowing HTML is like knowing how to use a word processor. Is it a useful, valuable skill? Yes. Is it "programming"? Absolutely not. It is markup, plain and simple. It is a computerized highlighter, it does the same task.

Then again, it must be very hard, because 10 years after the Web boom started, and there still are no good, plain HTML WYSIWYG editors out there for it...

J.Ja

by yinbig

...since you think you are being so smart

Actually HTML is a data format, not a text markup, computerised highlighter or even a word processing-esk program (like WordPerfect 5.1)

It is parsed by a program just like (say) word for the .doc format or paint for a .jpg

If I was a hiring manager and was given your html description, doubt I would hire the individual.

by apotheon

HTML = Hyper[b]Text Markup[/b] Language

You said "HTML is a data format, not a text markup".

Let's see. It's "(hyper)text markup", but it's "not a text markup". Yeah. Hang on, I'll get it any minute now. I'm just waiting for the epiphany to hit.

I'd be far more likely to hire based on his description of HTML than yours. You called it a "programming" language, which it most definitely is not. You've even admitted as much, calling it "a data format", and something that is parsed by a program like a Word document (thus comparing it to something like a Word processor document, as J.Ja said) or an image file.

by x-marcap

It is a data format. I have about 40 UNIX servers html is completely foreign to.

by apotheon

Programs that are compiled to persistent executable binaries will run on systems that don't have compilers installed. You can trade .exe files around between Windows systems all day long without any compilers involved.

by apotheon

Sure, it's mostly cross-platform. On the other hand, it's [b]not a programming language[/b].

There are no control structures. It has no loops, no iteration, no decision trees, no algorithm implementation, no variables, no memory management (automatic or manual), no I/O, no recursion -- nothing. It is [b]not programming[/b]. It's no more programming than using MS Paint to draw lines is programming. It is layout and color definition. Period. That's it. That's all there is to it. Without adding Javascript, PHP, or some other [b]actual programming language[/b] to the mix, [b]there is no programming involved[/b].

by ___._

Just out of interest...W3.org states the following: (not the "not to be a full" part below)

Many Web technologies are designed to exploit the Rule of Least Power. HTML is intentionally designed not to be a full programming language, so that many different things can be done with an HTML document: software can present the document in various styles, extract tables of contents, index it, and so on. Similarly, CSS is a declarative styling language that is easily analyzed.

Does this not imply, by W3.org itself that HTML is a programming language of some sort??

by apotheon

It absolutely does [b]not[/b] imply it's a programming language! Are you dense? Can you not read and understand plain English? It says [b]not[/b] a programming language! [b]NOT[/b]! Get it? Not a programming language? What part of "not" do you "not" understand?

It implies [b]precisely the opposite of what you're saying[/b]!

Criminy! Where are you people getting these asinine notions of what constitutes programming?!

by sterling "chip" camden

Some languages do require a runtime environment to be installed in order to run. That's not the point. A programming language qualifies as such by being Turing complete, IMHO.

by apotheon

The big mistake yinbig is making here is that he's referring to HTML as a "programming language". Turing completeness is a bare minimum for calling something a "programming language", in my estimation, and there may even be more necessary than that (depending on perspective on what "programming" means, as compared with something like "scripting").

On the other hand, yinbig just insists on making yet more inaccurate statements, comparisons, and so on, so I figured I'd set him straight -- even if a runtime environment, parent application, server process or something else above and beyond the basic OS platform being needed is enough to disqualify something, there are a lot of programming languages whose product would not be disqualified (such as Haskell, OCaml, C/C++, Objective C, Pascal, Fortran, and so on). Specifically in the case of compiled languages, one generally doesn't need a compiler to run its compiled binaries, so the question of needing a compiler is entirely inaccurate on the face of it.

Perhaps he's not aware that Apache itself is compiled from source code in a programming language.

by ___._

How dare you jump down my throat at the first opportunity with trumped up claims of mordant stupidity. You know absolutely nothing about peerage and respect.

In your opinion, just by posting a remark against what you believe, I suddenly deserve such scathing remarks. It is trumped up persons similar to yourself who give our noble profession a bad name. The kind of person who think they know all and attempt to belittle others who veer from their party line.

Read the following - it is not boolean remember, it is English...

I do NOT fully understand what you mean (this implies I kind of understand)

He did NOT fully finish the job (but he did do some of the job)

HTML is intentionally designed NOT to be a full programming language ('not to be a full' - thus imples it is a 'kind of' the key work is FULL)

by jaqui

why from the same place that they got the idea that scripting a few exel macros makes them a programmer.

from MICROSOFT

scripting macros is end user clerk stuff, not it department.

by apotheon

Does that mean their children will be the heirs apparent for the "HTML is programming" fan club?

This whole discussion is like a throwback to the late '80s when I kept hearing to people refer to things like using a word processor or playing Silpheed as "programming", or the mid-nineties when I heard them referring to installing Microsoft Windows as "programming".

by jaqui

they still refer to installing software as programming.

I took one such person and parked them in front of a linux cli login, then started emacs up ]:)

they now do not refer to installing software as programming.

by sterling "chip" camden

I remember back in the late 70's when installing an O/S WAS programming -- you had to modify and compile assembler source files for your hardware configuration. Of course, that was back when we wrote our own text editor, card-reader driver, print spooler, etc.

by apotheon

You weren't writing Microsoft Windows.

Too bad -- you might have done it "right".

by lewisc1

PL/SQL runs on every platform that Oracle runs on (which is most) and has for longer than java has been around.

LewisC

by jaqui

if you don't have Oracle, or any other SQL server, will it run and accomplish anything?

by lewisc1

or PHP without the runtime or .net without the....

I think you get the point.

;-)

LewisC

by lewisc1

or PHP without the runtime or .net without the....

I think you get the point.

;-)

LewisC

by lewisc1

or PHP without the runtime or .net without the....

I think you get the point.

;-)

LewisC

by jaqui

is in os specific [ read distro specific ] configurations.

that there shebang line may need to be edited for the script to run on a different system.

by apotheon

You can always run it via an explicit call to perl at the CLI.

Anyone that puts Perl anywhere other than /usr/bin/perl is just asking for trouble, though. That's simply the Right Place to put it on any unixy OS.

by jaqui

who in their right mind would ever use java for anything?

talk about a non portable language.

PHP doesn't have a runtime, it has an interpreter. :p

.net? it's platform specific, so it doesn't count as cross platform at all.

edited for typo

I know, I was poking fun, because sql is actually extremely limited, it can only query a database, from an engine that supports sql, which most do, which is why SQL is concidered a QUERY language more than a programming language.

by jaqui

put a symlink to their perl installation in /usr/bin instead of actually having the executable in the standard location.

I can't remember which ones, since I was just looking at the distros quickly to see how they were set up, and for ease of install for newbies.

by apotheon

. . . that just proves my point: the shebang line works. If the perl binary isn't there, or a symlink to it isn't there, someone is doing something really friggin' weird and should be prepared to deal with the consequences.

by wolfendbd

I am not expert but I like PHP vs Perl, but how about the others I list??? I am thinking about Python soon.

by jaqui

AJAX is an implementation of javascript, not a language itself.

php, perl, python and ruby were all mentioned already.

by apotheon

PHP is useful sometimes, but it's not as much a general purpose cross-platform language because most of the time you only have it available if you have a webserver installed. In fact, using PHP outside the webserver is a tremendous exercise in frustration, genreally speaking -- if you're familiar with other languages better suited to such uses.

Perl has a much richer and more powerful syntax than PHP. PHP itself is nothing but an anemic syntax wrapped around the biggest bucket of core functions I've ever seen in a language (no wonder it's slow). If all you're doing is conditionals, loops, content and code inclusion, and HTML processing, PHP does its job well enough. If you want something more substantial, you'd be far better off with Perl.

Python is a favorite of many, and probably belongs in the same class as Perl. I personally dislike it rather a lot. Ruby is an excellent language, also in Perl's class of language types, but from my perspective it does what Python's trying to do, only better.

As Jaqui pointed out, AJAX isn't a language. It's really just a little bit of Javascript for doing targeted content exchanges with a server on a single webpage without having to reload the whole thing.

by j.lupo

SQL, as the name says, is a structured QUERY language it is not a programming language. It is very useful for what it does, but it does not have the complete breadth and depth of a programming language. That is why other versions have grown such as PL/SQL and T-SQL. It was an ATTEMPT (which I stress) to turn it into a programming language. I find it very useful myself for DB related stuff, but for outside the DB, I rather use Perl, C, C++, Java, etc.

by bg6638

If your goal is for lower level support, my answer is C, simply the best for cross platform compatibility. For business apps, COBOL. Yeah go ahead and laugh, but I've been able to get a block of COBOL programs to run virtually unmodified on IBM 360/370/390's, Honeywell, TRS-80, Wang, Burroughs, Data General, IBM S34/36/38/AS400, and Wintel PC's.

by jaqui

your post title is probably the best answer so far.

you could have taken the body a lot further though, it kind of hangs like a partially completed thought.

by bg6638

Look at your question "Fill in the blank, The best cross platform programming language is...." This implies that you were looking for a terse one or two word answer. While I could have answered with a several thousand word essay, I choose to be very brief.

by jbond

I have had to translate so much stuff to C it is not funny. C is both easy to port and easy to use in filling in the cracks of a system that is different than the last system.

This discussion is closed to new replies.