Most active commenters
  • voidUpdate(4)

←back to thread

396 points Bogdanp | 13 comments | | HN request time: 1.446s | source | bottom
1. voidUpdate ◴[] No.45536377[source]
This sort of thing really bugs me when I work with Unity and Unreal. Sometime the documentation for something is just so useless. A lot of the time when trying to understand Unreal nodes, the documentation page is just a picture of the node and the name of the node restated in slightly longer words, as if that helps anything. And so many times when I'm using Unity at £JOB, I just want to know how to use a function properly, and a short example would help so much. It's generally good but some pages just have nothing of value on them. If I could submit my own additions to the Unity docs pages, I would probably end up doing that
replies(2): >>45537676 #>>45538279 #
2. squigz ◴[] No.45537676[source]
> £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.

replies(2): >>45537715 #>>45540205 #
3. voidUpdate ◴[] No.45537715[source]
I 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
replies(3): >>45537805 #>>45538992 #>>45539199 #
4. squigz ◴[] No.45537805{3}[source]
Oh no my PHPness is showing!

Also, many, many countries use $, like Canada.

replies(1): >>45539064 #
5. teamonkey ◴[] No.45538279[source]
Unreal's lack of documentation is hugely frustrating and a massive time sink for me. They very much subscribe to a 'code is documentation' approach (I don't agree), but the 'screenshot of a node' documentation for blueprint is truly beyond parody.
replies(1): >>45538327 #
6. voidUpdate ◴[] No.45538327[source]
I also had some issues recently where I was trying to build something in the latest Unreal version, and the docs for the thing I was trying to do said they were for that version, but obviously had screenshots from the last major version, which had a completely different interface style and menu items in different places, and as such was almost completely useless. Someone forgot to check it before bumping the version number on the docs
7. zahlman ◴[] No.45538992{3}[source]
> 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...

replies(1): >>45539293 #
8. tom_ ◴[] No.45539064{4}[source]
If 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)

9. SAI_Peregrinus ◴[] No.45539199{3}[source]
Every 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.
10. voidUpdate ◴[] No.45539293{4}[source]
Not how I use it, string interpolation would be $"{job}"
replies(1): >>45540609 #
11. marcosdumay ◴[] No.45540205[source]
The $ 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.

replies(1): >>45541049 #
12. yjftsjthsd-h ◴[] No.45540609{5}[source]
That 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`).
13. 1718627440 ◴[] No.45541049{3}[source]
Templates use this syntax in some languages.