What is your preferred style for naming directories and files, hyphens or underscores to separate words? I notice a lot of people use hyphens and one argument is it is easier to read, however underscores offers the benefit of a double click highlights the whole file name or directory name. #programming#linux
@lwpembleton hypens are better. They’re easier to type. Search engines like them better because they separate words. Also, i think your double click argument is actually a point fot hyphens, because you can get just part of the file name, then drag to get adjacent parts. A tactic i use is double hyphens to separate sections in a filename or git branch. e.g. issue-123--title-of-my-ticket If this used underscores and pasted into a markdown file, parts will be italicized
@grammargirl one often hears the phrase “rue the day” spoken by someone in a tense situation. Nobody ever says “i rue the article I wrote last week” or “i bet she’ll rue buying those shoes”. What is your “favorite” thing to rue , that isn’t the day? 😄
@brad_frost I remember when i was learning about the div tag when it came out. i remember thinking “why would i use this? It doesn’t do anything”. i got it eventually, shortly thereafter. But It wasn’t intuitive when i first learned it.
Tech idea: Use content SHAs in our website CMS for any article you link to, at the time of publication. This let’s you verify if an article had changed its content, or not.
For some articles, you might suspect that it will change. If you check periodically, and record ghe results, , you would have an idea of when it changed.
sounds like the much heralded job of the future, "prompt engineer" is no longer needed 😅
"Battle and his collaborators found that in almost every case, this automatically [AI generated] generated prompt did better than the best prompt found through trial-and-error. And, the process was much faster, a couple of hours rather than several days of searching."
i wonder - what percentage of @Vivaldi employees listen to Vivaldi’s classical music songs? Is it an employee requirement? Are they skewing Spotify’s statistics? Enquiring minds want to know😄
i’m a mac user, and Im experimenting with Linux distros using Virtual Box. Manjaro KDE seems pretty good, and it’s running Plasma 5.27. I want to try Plasma 6 — So I downloaded KDE Neon after the megarelease. it tries to run, but it doesn’t complete. It gets stuck on a black screen inside Virtual Box. Is there a known issue with KDE Neon in Virtual Box?
@skrzatu@syntaxseed@b0rk i hate resolving conflicts on the CLI too. If the conflicts are simple enough, I’ll just edit them directly with Vim. Otherwise, a good GUI diff/merge tool is key. as a Mac user, Kaleidoscope has been awesome for this.
@mborus the thing about pushd is you have remember to call it. i have a
bash function i named cdls (because i often cd inro a dir and list its contents) that helps me .
cd “$1” && ls
becomes
pushd “$1” && ls
Since this is my default way of cd’ing, any directories i cd into are remembered
@mborus striving for a minimal, default experience is admirable. The thing is though is that you create enough of these tricks, and they have to live somewhere . my cdls function lives in my ~/.bashrc . you can recreate it on each machine you use. eventually you need to create a dotfiles repo so you can copy it to any machine you use.
if you’re a vim fan, put
set -o vi
in your ~/.bashrc to navigate the command line like in vim
@ellie my advice is to learn the command line before actually learning to code. . The CLI plays such a big part of developer tools, and environment config, that not knowing the command line impedes the coding experience.
It’s also a good litmus test for the development/debugging temperament
Today, I was cut in layoffs. I’m so gutted because I loved this company, & my team was the best; I’ll miss my team most.
Now, as I look ahead, I’m searching for a staff/principal role where I can help other developers level-up through mentoring, tooling/infra, architecture, & improving DX. I’d love to work with a company contributing to open source & even to the #PHP programming language itself.
Update (27 Feb 2024): Thanks, everyone! I’ve accepted an offer. Please see update in thread below.