Fork me on GitHub
#off-topic
<
2021-02-01
>
caumond00:02:06

Hi guys, Just a simple survey: for test or demonstration, we use fooor bar in english. Not sure to understand where it comes from? In french, it is toto a firstname used in some jokes, it could be a nickname but I actually don't know anybody having that name. So what about foo and bar in english, and what about other languages?

orestis08:02:32

Hey, we use Toto in greek jokes too!

caumond00:02:34

I had no idea they were one word "foobar". I thought it were two words we sometimes combine.

seancorfield00:02:05

foo, bar, baz, quux -- I don't know if there are others that are common. I tend to use wibble quite a bit which I think comes from comic books of my youth.

seancorfield00:02:53

Ah, yes, wibble seems to come from Viz Comic https://www.definitions.net/definition/wibble ?

caumond00:02:31

when I read the definition, foo and bar were really two words

seancorfield00:02:27

Yes, you'll see foo, bar, foobar, sometimes fubar.

caumond00:02:17

funny ! a full story was behind that 3 letters. maybe, we'll have some other countries updates tomorrow morning !

Alex Miller (Clojure team)01:02:26

I believe quux came from Guy Steele (he has used the pseudonym "Great Quux")

šŸ‘ 3
Alex Miller (Clojure team)01:02:51

he uses that to publish poetry / cartoons

seancorfield01:02:41

Yeah that agrees with the link I posted above. That was kind of a nice thing to learn!

pez06:02:10

I've seen gazonk. And I use that myself since. Also fubar is rather an acronym for ā€fucked up beyond recognitionā€.

danieroux07:02:59

ā€œbeyond all recognitionā€ (my OCD had to fit in that a)

šŸ˜ 3
3
pez07:02:32

Thanks. Totally feel ya! šŸ˜ƒ

pez07:02:59

I fubr.d it.

orestis08:02:49

Just so you know, beginners to programming are really confused when they see ā€œfooā€ and ā€œbarā€. I donā€™t have a source to cite, just my personal experience.

caumond08:02:56

And do you have examples ?

orestis09:02:55

Iā€™ve helped friends through intro to programming classes, and they have to digest a lot of new keywords like ā€œdef, class, for, if, then, elseā€. If English isnā€™t your first language (and perhaps even if it is?) thereā€™s little difference between the official syntax and foo,bar. They read it all as abracadabra!

orestis09:02:00

I would prefer things like a, b, c or x, y, z or even more domain specific stuff like ā€œstock_priceā€

šŸ‘ 6
orestis08:02:22

On the subject of hardware, after having an M1 laptop in the house (for my wife) Iā€™ve ordered one for myself too. I found that I much much prefer to just grab the M1 to do some quick internet searches compared to my phone, since itā€™s so fast to wake from sleep and unlock. Day and night compared to my 2017 intel MBPro.

Mno08:02:32

I still work on a 2010 mbp.. I should probably upgrade at some point.

Stuart09:02:18

I always thought it was quax, and pronounced it in my head as "quacks"

Eamonn Sullivan16:02:00

Well, I've had better days. I'm experimenting with babashka for the first time and thought a good first project would be to rewrite a bash script I use to back up the two laptops and one desktop in the house. It was pretty straightforward to translate the bash into Clojure, but I thought I'd be clever and replace a shell-out to rm -rf some/dir/* with Clojure. Well, a spare dot was left, a symlink was followed, and you know the rest... There goes the desktop. šŸ˜ž Fortunately, the script worked a few times, before I messed with it, and I have a very recent (minutes old) backup, but I'll need to reinstall Ubuntu...

Mno16:02:06

Oh boy.. That's terrible, amazing backup though

Eamonn Sullivan16:02:51

Yeah, very lucky. Don't get me wrong, @borkdude, I'm still very impressed with Babashka. I was just aiming that gun poorly.

noisesmith16:02:22

> a spare dot was left as in, your some/dir/ was actually some/. somehow?

Eamonn Sullivan16:02:41

Classic Unix mistake.

noisesmith16:02:46

yeah, recursion over . is classic for sure

bronsa16:02:49

we've all been there

bronsa16:02:00

ā¤ļø

noisesmith16:02:35

which widely used PL released a version that tried to delete your entire HD on uninstall? I want to say it was Scala

borkdude16:02:18

Just for my understanding: the mistake was that /some/. got deleted instead of some/foo/?

borkdude16:02:05

How does this require a re-install of Ubuntu? Unless /some was /home... I guess?

noisesmith16:02:05

or /usr or /etc

noisesmith16:02:54

if all you lost is home you don't need any reinstall

noisesmith16:02:13

(though you do need to create a new account from recover mode)

Eamonn Sullivan16:02:03

I think what I did (I would be able to tell for sure, but...) was /some/. using a too-clever-for-me recursion (.isDirectory, .listFiles, etc.). I will need to order another USB pen big enough, but I'll boot into it tomorrow and try to find out for sure. Annoyingly, I had already changed my mind (see https://github.com/eamonnsullivan/backup-scripts/commit/e0123d5f96c21b06239895de842e1dfe33ffb92c) about my cleverness, but that wasn't on the machine at the time. I think I failed to connect to the MacBook Pro, and then somehow carried on. The other amazing bit of (bad) luck is that it's the first of the month, and the script tries to start a completely new backup, which is where that rm -rf comes in. Oy.

borkdude16:02:45

Maybe next time babashka.fs will be released... and you can use https://babashka.org/fs/babashka.fs.html#var-delete-tree to delete a file tree

šŸ‘ 3
borkdude16:02:26

Any reason you're not using rsync for this? :)

Eamonn Sullivan16:02:10

I am using rsync, but my bash script does some clever stuff where it hard-links the backups each day and then starts another fresh one on the first of every month. The core of the backup is just rsync over ssh, though.

borkdude16:02:46

Cool. Well, I hope you recover well from this shock :)

clyfe20:02:53

rm -rf ./* aka "empty my dir" is often done & risky business, or used to be (distros added some protections in recent times eh?)