395 karma · joined Dec 6, 2012 (13y ago) · 183 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
The curse of backward compatibility means that zsh does not break your setup or change things on you. And there are still developers left who bear the trauma from the one time that was tried back in the early-mid 90s in the 2.x version series. Sadly that means many new features remain inactive by default, especially anything written in shell-code like command-specific completions.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Trying to promote agile/scrum/xp/whatever by attacking waterfall is a straw man argument in my view because it is not comparing against what came before. That's not to say that clueless managers don't still like to reinvent and impose what is essentially waterfall.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Is nice to see it advancing in useful ways. Hopefully this leads to offline dedup without the runtime memory costs.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Using codepoints directly, there is overlap. 'f' ^ 'd' will give you the same bit pattern as 'b'. You could keep an xor value for each window size smaller than the full window but that effectively brings back the inner loop that using xor is avoiding and you could just use equality. With codepoints, there may be a solution similar to a bloom filter so efficiently determine whether a duplicate is possible but I've not thought through that fully.
comment 4y ago · link · parent
Only rarely is the vertical alignment useful because mostly code isn't read vertically. Used in moderation, the reverse Christmas tree style used in the Linux kernel can be as good for readability (sorted longest to shortest). For some constant structures a reordering of fields to put the variable length element at the end of the line removes the need for padding space (like in the output of `ls -l` where filenames come last).
A common indentation style for continuation lines is to align with the start of arguments to the function. I've never seen the sense of this variable amount where indentation after a while is much more than after an if. Double the normal indentation for continuation works well in languages where line continuation isn't otherwise distinct from normal blocks.
comment 4y ago · link · parent
So don't try to make zsh mimic bash, use it as-is and whenever something bothers you, try to understand both how the behaviour can be changed and consider the actual merit of the options.
comment 4y ago · link · parent
There can be other reasons for wanting a smallish history besides fast startup like wanting low history numbers if you learnt all the ancient `!` history escapes that were the main way of using history with csh going back forty-plus years ago. This is also one of the reasons why extension theme frameworks like oh-my-zsh have become popular - much of what they do is enable bells and whistles that are features of the core shell.
comment 4y ago · link · parent
Managers were overly fond of the class diagrams because they could understand them. And dividing work between programmers by class rather than by logical feature somehow made sense to them. I recall one manager spending way too much time arranging to print a huge UML diagram across multiple sheets of A4, taping it to the wall and then annotating it constantly by hand.
But knowing it can still be useful for simple sketches. Similarly dynamic dispatch is a really useful tool for particular cases when programming – used alongside other non-OO techniques. Our industry follows fads and fashions to an amazing extent but when things fall out of favour the baby goes out with the bathwater.
comment 4y ago · link · parent
Pick the number 2 or 3 developer on small team projects rather than the well-known charismatic founder. For a pure one-man project it is a lot easier to solicit donations because there's no need to divide up the spoils. Many projects are small teams, only the biggest create foundations an have the capacity to have actual assets.
26.
Fundamentals of the FreeBSD Shell(klarasystems.com ↗)
1 points · by opk · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Many of those sh tricks you link to are better even in the common ksh/bash/zsh subset than in pure POSIX.
comment 4y ago · link · parent
That said, my record in actually ever landing a new job is fairly woeful but that may be more down to being poor in interviews.