ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I agree on that point for sure. But that is for the noun 'program' where as I said 'programming' which is a verb. But upon researching the definition for that as well.. it leads to the same thing.
But I personally can't get myself to say that you are a programmer if all you can do is write Bash Scripts!
:/ not sure how i feel about these definitions now. M-W has let me down!!
"What are you doing over there?"
"Writing batch files for windows."
"Man, you programmers know everything."
Last edited by szboardstretcher; 02-26-2014 at 08:50 AM.
I've certainly had my share of insane bash scripting.
Oh boy,.. You are going to hate this personal philosophy then
I don't even consider PHP, Python or Ruby to be True programming languages. They are interpreted and not truly compiled, and you don't do your own memory management. Therefore, not True programming languages.
True programming languages
C
C++
scripting
bash
sh
php
ruby
python
And please dont think for a second that I am arguing! It's just one of those beliefs that got in my head years ago, and I can't undo it.
I'm not actually saying that this is true or canon or good for anything. Just throwing my thoughts out there
Last edited by szboardstretcher; 02-26-2014 at 09:47 AM.
At my last place, Chrysler, they used JAVA to build out just about everything. It was estimated that the total project code was worth 100+ million, due to the number of programmers, consultants, time etc invested into it.
I guess maybe its time to re-define programming and scripting for the new age. Maybe we can break it down to abstraction like so:
First:
Machine Language
Second:
Assembly
Third:
C
Fourth:
Bash
Php
Python
Or now that I'm thinking about it, it really doesn't matter, as long as the job gets done!
a complex script with lots of 'programmatic' logic in it might be considered programming ?
Anyway...
diw10 appears to be posting from a windows 8 machine
and has posted in Non-*NIX Forums --> programming
bash is mentioned, but not which OS it is to be run on
if the bash is being executed on windows 8, then technically this would be the most appropriate subforum
However, such details should be mentioned in the Post.
Guessing games can be fun, but most of the time irritating to the point where people will either not respond, or respond in a negative fashion.
@diw10
basically we need more information to help you.
Good Luck with your first bash script..
And remember if you need help, try to provide concise details
post [code]your code inside code tags like this[/code]
It will also be helpful to know which Operating System you are running bash on, as well as the version of bash you are using.
You may also like to detail what you want to do with the user supplied input, this may influence the code in some way
What you have asked can be achieved in a number of ways, each being better suited to particular circumstances.
where you can, provide sample input and desired output/result
Last edited by Firerat; 02-26-2014 at 10:47 AM.
Reason: oops, fixed /noparse on code block example
I don't even consider PHP, Python or Ruby to be True programming languages. They are interpreted and not truly compiled, and you don't do your own memory management. Therefore, not True programming languages.
I mean why would anyone do memory management when the OS does it well enough. Does it seem reasonable to think that since you mention only C & C++ are "true" programming languages, you are referring to malloc/free-ing as memory management, when in fact it is the kernel at run time that manages the memory? If this assumption is correct, anyone who uses DIM/REDIM is also managing memory.
Back to the original debate (still not the OPs topic).
In my view, bash scripts as bundled collection of commands are not programming, BUT even bash scripts could qualify if they have elements of control do .. until, if .. then .. elif .. fi etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.