| | |
Most predictable programming language
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Thread Solved |
•
•
Join Date: May 2009
Posts: 4
Reputation:
Solved Threads: 0
Hi Everyone
I am not a full time programmer.
I had been using Python for everything and then went to PHP to build my website. I really love PHP now but surely it is the wrong tool for many offline tasks.
I know Python is strongly typed but after using PHP it just seems too fussy for my needs. There are many debates about programming languages, that language A does not have the feature of Language B but could anyone feedback about the most predictable language. I just need a language that helps me get simple things done faster. Would Ruby be a good choice?
Thanks in advance-Patrick
I am not a full time programmer.
I had been using Python for everything and then went to PHP to build my website. I really love PHP now but surely it is the wrong tool for many offline tasks.
I know Python is strongly typed but after using PHP it just seems too fussy for my needs. There are many debates about programming languages, that language A does not have the feature of Language B but could anyone feedback about the most predictable language. I just need a language that helps me get simple things done faster. Would Ruby be a good choice?
Thanks in advance-Patrick
Hi Patrick,
Unfortunately it is not as simple as that. Different languages are better at different tasks. Most are designed to perform specific tasks at first and grow from there. Really what you need to do is work out what you are trying to achieve and then select the best tools for the job.
Hope this helps,
darkagn
Unfortunately it is not as simple as that. Different languages are better at different tasks. Most are designed to perform specific tasks at first and grow from there. Really what you need to do is work out what you are trying to achieve and then select the best tools for the job.
Hope this helps,
darkagn
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. •
•
Join Date: Nov 2008
Posts: 63
Reputation:
Solved Threads: 4
Hmm, for offline tasks, you would want to go to a more traditional operable language (C++, java, etc) . Even then, certain of those languages can be distilled into which tasks does one perform over another. So, a few examples, if you want to do operating system programming (Creating command line commands like grep, etc.) use good ol' fashioned C. Games, intensive programs that require a lot of memory, C++. Windows look and feel GUI programs, I would recommend C#. For a very happy medium, I recommend java. I find it to be the most predictable language I have worked with. You can easily add GUI desktop components with Swing, it enforces good programming habits, it runs much cleaner than a scripting language like PHP, Python or Perl. I however, miss C++ and have caught java not managing it's memory in the way I would expect it to.
Last edited by eggmatters; Jul 30th, 2009 at 1:14 pm.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Nov 2008
Posts: 63
Reputation:
Solved Threads: 4
If you really want to split hairs, scripting languages are interpreters, Perl for example actually compiles code to C which is where the actual work is done. This is not exactly the case but is close enough conceptually. Some folks feel strongly about this, while others believe "if it looks like a duck . . ." So scripting languages are interpreters (Perl, PHP, VB, JavaScript etc.) and languages are languages.
Is java an interpreter? you can pass any type of data as Object but you need to cast it before you implement it to the expected data type.
Anything that is not strongly typed can be argued as being an interpreter. But essentially interpreters are animals which take your code (a script) and turn it into compiled code using another language specification.
I think a perfect example would be Haskel which is an interpreter for prolog.
Is java an interpreter? you can pass any type of data as Object but you need to cast it before you implement it to the expected data type.
Anything that is not strongly typed can be argued as being an interpreter. But essentially interpreters are animals which take your code (a script) and turn it into compiled code using another language specification.
I think a perfect example would be Haskel which is an interpreter for prolog.
>Would Ruby be a good choice?
Yes, given that it's not just another scripting language but a fun language which *has* an enterprise standing. Ruby seems to be living up to its name of a "fun programming language". So IMO, Ruby and Clojure if you are going for dynamic programming languages and Scala[used at Twitter] and Haskell if you are going for a static, strongly typed language. Also, a stack based language like Factor would surely entertain you by changing the way you look at programming.
Also I tend to agree with darkagn that there is no ideal language. Some language might be able to do X sort of things in a small amount of code but require a lot of boiler plate code when doing Y. Like they say, the more tools in your toolbox, the merrier.
>Bestjew has taken this tread in a totally different direction
His post was on topic though and certainly didn't warrant a rep comment like "that guy was just a ****". If you find something annoying or wrong or off-topic, there is always a flag bad post button provided for that, no back seat moderation please. Consider this as your first warning; refer to the forum rules for details.
Yes, given that it's not just another scripting language but a fun language which *has* an enterprise standing. Ruby seems to be living up to its name of a "fun programming language". So IMO, Ruby and Clojure if you are going for dynamic programming languages and Scala[used at Twitter] and Haskell if you are going for a static, strongly typed language. Also, a stack based language like Factor would surely entertain you by changing the way you look at programming.
Also I tend to agree with darkagn that there is no ideal language. Some language might be able to do X sort of things in a small amount of code but require a lot of boiler plate code when doing Y. Like they say, the more tools in your toolbox, the merrier.
>Bestjew has taken this tread in a totally different direction
His post was on topic though and certainly didn't warrant a rep comment like "that guy was just a ****". If you find something annoying or wrong or off-topic, there is always a flag bad post button provided for that, no back seat moderation please. Consider this as your first warning; refer to the forum rules for details.
Last edited by ~s.o.s~; Aug 1st, 2009 at 12:23 pm.
The romantic image of an über-programmer is someone who fires up Emacs, types like a machine gun, and delivers a flawless final product from scratch. A more accurate image would be someone who stares quietly into space for a few minutes and then says “Hmm. I think I’ve seen something like this before.” - John D
I suppose it depends what you mean by predictable...
Dynamic languages like Ruby, Javascript etc can be unpredictable (unless you've tested them) because they perform so much dynamic run-time binding, you dont quite know what they'll do until you've run them.
Java and C# are pretty predictable in some ways. Java is compiled to bytecode, which preserves metadata such as the methods on a class, method signatures etc., which allows you to perform introspection (called "reflection") on the compiled program to discover all these bits and pieces. Many IDEs use reflection to offer you, as you type, various choices of methods, variables etc. I suppose that's a kind of predictability.
Eiffel lets you overlay a framework of assertions of function pre- and post-conditions, which gives you nice runtime predictability with regard to avoiding race conditions, deadlocks etc.
One thing thats not predictable with Java is garbage-collection of deallocated memory, which can kick in at all sorts of unexpected times and stop everything. For that reason, Java is not used for real-time control of critical systems, since the optimality of the garbage collector algorithm cannot be formally proven.
Bla bla bla. Break over, back to work.
Dynamic languages like Ruby, Javascript etc can be unpredictable (unless you've tested them) because they perform so much dynamic run-time binding, you dont quite know what they'll do until you've run them.
Java and C# are pretty predictable in some ways. Java is compiled to bytecode, which preserves metadata such as the methods on a class, method signatures etc., which allows you to perform introspection (called "reflection") on the compiled program to discover all these bits and pieces. Many IDEs use reflection to offer you, as you type, various choices of methods, variables etc. I suppose that's a kind of predictability.
Eiffel lets you overlay a framework of assertions of function pre- and post-conditions, which gives you nice runtime predictability with regard to avoiding race conditions, deadlocks etc.
One thing thats not predictable with Java is garbage-collection of deallocated memory, which can kick in at all sorts of unexpected times and stop everything. For that reason, Java is not used for real-time control of critical systems, since the optimality of the garbage collector algorithm cannot be formally proven.
Bla bla bla. Break over, back to work.
![]() |
Similar Threads
- Making Your Own Programming Language (Java)
- how would you make your own programming language (Computer Science)
- own programming language? (Computer Science)
- programming language recommendation (Computer Science)
- java programming language (Java)
- Programming Language required (Computer Science)
- Suggestions on what type of programming language would be best for the situation (Computer Science)
Other Threads in the Computer Science Forum
- Previous Thread: I need ideas for gradution projects???
- Next Thread: Sensor Programming
Views: 1075 | Replies: 9
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms assignment assignmenthelp assignments battery bigbrother binary bittorrent bletchleypark blogging bomb business clueless codebreaker compiler computer computerscience computertrackingsoftware connect conversion csc data dataanalysis dataintepretation development dfa dissertation dissertationtopic ebook employment energy extensions foreclosure foreclosuresoftware fuel geeks givemetehcodez government graphics hardware history homeowners homework homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod jobs kindle laser laws lazy linkbait lsmeans mainframes marketing mining mobileapplication nano netbeans news os p2p parser piracy piratebay programming rasterizer research sam-being-cute sas science security simulation software spoonfeeding spying sql sql-server stephenfry student supercomputer supercomputing sweden syntactic technology tree turingtest two'scompliment uk virus warehouse ww2






