GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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.
Most programmers would still agree that "separate logic from data" is a good general rule.
Colossal Cave, the first adventure game, which was written in Fortran, is an excellent example of that. Every string in the program is loaded from a tape.
Eventually, do you maybe still have the code by curiosity to have a look at the code?
Don't flood programmer's forum threads with off-topics..
Sometimes, programming make no sense maybe? Only on Monday we should programme.
Here it is a good example that programmes that do not offer a good compatibility, portability and which can be built without too much changes will remain.
xfmail is a good example. "Mark broken: does not build" https://www.freshports.org/mail/xfmail
If maintainers cannot compile the application/software without too much changes, it'll stay otherwise a good programme can disappear forever. Because libraries are changing faster than the development of software, it is likely that a programme will not find always maintenance. Is it good? Mature programmers will say that of course possible maintenance/compilation has some importance.
Here it is a good example that programmes that do not offer a good compatibility, portability and which can be built without too much changes will remain.
xfmail is a good example. "Mark broken: does not build" https://www.freshports.org/mail/xfmail
If maintainers cannot compile the application/software without too much changes, it'll stay otherwise a good programme can disappear forever. Because libraries are changing faster than the development of software, it is likely that a programme will not find always maintenance. Is it good? Mature programmers will say that of course possible maintenance/compilation has some importance.
Yes, but it is also an example of a program that followed all your rules.
Yes, but is also an example of a program that followed all your rules.
What does that say about your rules?
Not that working always.
It depends on the goals, project, funding, and operating system.
We can still compile very old programmes on old operating systems. On Unix, it is more difficult.
New Programmer: Whine! C/C++/Go is too hard, why can't we use java/node.js/C# to write low-level system code. I know! We'll make a language that converts into C, and call it Vala!
I first learned it from one of my bosses. There are design-patterns which make use of the rule; the best implementation that I have seen was a complex state machine, organized as a tree structure with branches, leafs AND states implementing the same Interface, each being a composite of an arbitrary number of ... branches, leafs and states.
A filter/pipeline pattern was introduced by a second interface.
You provide a 1-liner C-macro to define your template-classes at compile-time and let the code explode. Impossible with Inheritance.
Nowadays with Ruby, there is anyway not much to win by deriving classes.
Last edited by Michael Uplawski; 10-16-2017 at 08:34 AM.
Reason: compile-time
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.