3 ms·
> £JOB Wait a second, do people use $ for `$job` because it's how they earn money and not, as I've always thought, used it as a variable name? Stop throwing m
by squigz 1y ago
> £JOB
Wait a second, do people use $ for `$job` because it's how they earn money and not, as I've always thought, used it as a variable name?
Stop throwing my entire world view out of order please.
- voidUpdate 1y agoI actually don't know, I just assume the majority of people are americans and that's why they use $. I don't use $ in programming except for string interpolation, so it's never really registered as a variable sigil to me
- squigz 1y agoOh no my PHPness is showing! Also, many, many countries use $, like Canada.
- tom_ 1y agoIf you think it would reflect on you better, think of it as indicating regular POSIX shell use?! (I'm 99% sure it's intended to be reminiscent of that sort of syntax. Example use: https://news.ycombinator.com/item?id=42761939 https://news.ycombinator.com/item?id=42761939)
- zahlman 1y ago> I don't use $ in programming except for string interpolation ... but the entire point of the "$JOB" etc. slang is that it's a string interpolation...
- voidUpdate 1y agoNot how I use it, string interpolation would be $"{job}"
- yjftsjthsd-h 1y agoThat depends on the language. In unix shell, echo $JOB and echo ${JOB} are identical, though the latter is more flexible (Allowing eg. `echo ${JOB:-unemployment}` or `echo ${JOB}SUCKS`).
- SAI_Peregrinus 1y agoEvery time I use $word in a comment is to be reminiscent of POSIX-style string interpolation for some word. The vast majority of cases where I've seen it are such, only if "word" is numeric do I expect $ is used as a currency symbol.
- marcosdumay 1y agoThe $ is for variables. And the upper case make it a BASIC variable, instead of something like Perl or PHP. Some times people put it in angle brackets <JOB>. I have no idea what system use variables like that.
- 1718627440 1y agoTemplates use this syntax in some languages.