Sponsored Content
The Lounge What is on Your Mind? Which category do you belong to? Post 302998116 by bakunin on Thursday 25th of May 2017 10:42:14 AM
Old 05-25-2017
This is an interesting point and i would like to expand a bit on that, although it is only losely related to the theme of this discussion. We can put this in its own thread should the necessity arise.

Quote:
Originally Posted by cb88
I wish there were open source web frameworks that were well just better...I can't bring myself to acutally write any php, and I'm a bit abhorrent of Go,
I think the problem is that the open source movement is such a diverse crowd. This is one of its strengthes but also one of its severe shortcomings.

The reason UNIX had such a strong pull was that - at some abstract level - it was built in a very consistent way. It is difficult to describe what exactly this "consistent way" actually consists of, but when you ask long-time UNIX users you will notice that they often have developed a "gut feeling" for when a design decision, a setup, a method is "right" - and they all share the same gut feeling and come to the same conclusions about what this "right" constitutes! It has often been called the "UNIX culture" at work and this description perhaps fits as well as any others - paradigmata, "way of undertaking things" - but it definitely is there, even if it is difficult to explain what exactly it consists of. (One part for instance is the often-cited tenet that "everything is a file", but its not that alone.)

Now, this "UNIX feeling" is often dissatisfied when dealing with open source products. They look (/feel/work/...) "somehow not right" (or rather "not UNIX") and this hints to another culture being at work. That would be no problem, but in fact it is and it is because there is not another culture at work but another cultureS - lots of them! Everybody brings his own interpretation of how to make the world better to the party and - at least, this is my personal opinion - all these interpretations may have the one or other convincing part but they disagree with each other on most everything. This makes them hard to adopt and even harder to accept.

Pars pro toto: GNU-seds -i (in-place editing) option. It certainly is a "good idea" based on the fact that most times sed is used like this:

Code:
sed '<some-regexp-here>' /some/file > /some/file.tmp
mv /some/file.tmp /some/file

On the other hand one could argue that in fact the -i-option is in fact just a wrapper for exactly this changing-then-moving procedure, but hidden from the user. It is not "in place", but rather "does like in-place". You can show that easily: first, the inode number if the resulting file will change, so in fact it is not the same file but a new file by the old name. Second, if you have not been the owner of the original file you might be now, because the new file perhaps (sticky bits, etc., aside) gets your id and primary group.

All this is not "bad" in itself, but telling the user to do one thing while doing something else perhaps is. But even this would be acceptable, if this would be always the same and always misleading in the same way. It isn't, though (all implementations of i.e. awk that i know of lack the -i option), and this is why the open source world looks generally less "usable" for me than the UNIX world.

Another example: bash. bash has all sorts of fancy things built in many other shell lack - command completion, filename completion and what-not. Yes, they are all (more or less) useful and fine - but a shells role is not only to be an interactive command processor but also a scripting language. For this, there is: a rather anaemic typeset-command where lots of the features the Korn shell has are missing; no FPATH variable to put (shared) function collections into a common directory, and finally, the biggest Bourne-shell-design-bug continued:

Code:
echo foo bar | read var1 var2
echo VAR1=$var1 VAR2=$var2

ksh has done away with that nonsense - and rightfully so! But - making a wild guess - i suppose that many "new languages" (perl, ruby, phython, php, ...) have only been developed because bash left such a big itch to scratch.

Now this is why i think there are no frameworks like you mentioned: the open source community simply hasn't reached any consensus about how to design and build things and as long as this is the case and everybody starts his own framework, which works different to any other and never reaches the state of maturity necessary for a production environment (because the people potentially able to contribute rather develop their own ambitious counter-project instead of helping with this) there won't be any powerful solutions that could really change the rules of the game.

bakunin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

2. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

3. Post Here to Contact Site Administrators and Moderators

How to change the category?

Hi, I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category. Please help me in doing the needful. Thanks... (7 Replies)
Discussion started by: guruprasadpr
7 Replies

4. Shell Programming and Scripting

Split file into given category and others using awk

Hi All, Would it be possible using awk to split a given file into two files based on a certain condition such that one output file will contain all lines that fit the condition while the other output file will contain lines that did not fit the condition? Here is a sample input file ... (6 Replies)
Discussion started by: cympaulife
6 Replies

5. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

6. Shell Programming and Scripting

extract the max value category

Hi, I have a file and I want the category for each row to be its highest value. gene highest medium lower lowest ABC 20 30 50 70 DEF 90 20 60 0 o/p gene highest medium lower lowest category ABC... (6 Replies)
Discussion started by: Diya123
6 Replies

7. UNIX for Dummies Questions & Answers

ldap , search groups that user belong

i want run query to identify witch groups that user A belong, CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

Data filtering and category assigning

Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number). I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file,... (8 Replies)
Discussion started by: jianp83
8 Replies

9. Shell Programming and Scripting

Category and count with awk

I want to categorize and count the as below: Input file: A1 G1 C1 F1 A2 G1 C1 F1 A3 G1 C1 F2 A4 G1 C2 F2 A7 G1 C2 F2 A8 G1 C2 F3 A11 G1 C2 F3 A23 G1 C2 F3 B4 G1 C2 F3 AC4 G2 C3 F4 B6 G2 C4 F4 BB5 G2 C4 F4 A25 G2 C5 F4 B13 G2 C5 F5 D12 G2 C5 F5 D2 G2 C5 F5 (3 Replies)
Discussion started by: aydj
3 Replies

10. UNIX for Beginners Questions & Answers

Delete records that do not belong to that day

i have a requirement to delete records that do not belong to that day. For example in a file that came on July 31st ,2018 there are records that belong to Aug 1st,2018 as well and I want to find and delete those records. I want to delete anything with 01-Aug-2018. I have several files like that. I... (6 Replies)
Discussion started by: Priya
6 Replies
All times are GMT -4. The time now is 02:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy