Bar/Pub for programmers!
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK
-
- UBT Forum Admin
- Posts: 9687
- Joined: Mon Mar 13, 2006 12:00 am
- Location: NW Midlands
- Contact:
Re: Bar/Pub for programmers!
Hi Chris
OK, so which pub it is as I cracked the code !!
I hope they do some nice real ale or a good stout !!
regards
Tim
OK, so which pub it is as I cracked the code !!
I hope they do some nice real ale or a good stout !!
regards
Tim
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK
Re: Bar/Pub for programmers!
I have no idea, it was posted on Twitter by Nixcraft.
At first sight the answer is obviously another name for "arguments" as in "arguments passed to functions".
However they could have made it a bit more tricky by actually using split() and join() rather than using an empty string ("")
s.split("").reverse( ).join("");
However the issue I see, is there are no dots in between:
this str2 + this str3
(as in this.str2+this.str3)
Which I am fairly certain would make the code invalid. But I guess the dots could be there as the image is not that clear.
The real difficulty is, it could be, C++, Java, or even PHP, etc, all of which would look the same but produce different results.
So what is the answer then Tim!? Or anyone..
At first sight the answer is obviously another name for "arguments" as in "arguments passed to functions".
However they could have made it a bit more tricky by actually using split() and join() rather than using an empty string ("")
s.split("").reverse( ).join("");
However the issue I see, is there are no dots in between:
this str2 + this str3
(as in this.str2+this.str3)
Which I am fairly certain would make the code invalid. But I guess the dots could be there as the image is not that clear.
The real difficulty is, it could be, C++, Java, or even PHP, etc, all of which would look the same but produce different results.
So what is the answer then Tim!? Or anyone..
-
- UBT Forum Admin
- Posts: 9687
- Joined: Mon Mar 13, 2006 12:00 am
- Location: NW Midlands
- Contact:
Re: Bar/Pub for programmers!
Hi Chris
The answer is: PARAMETERS (although it would be in lower case).
str2 + str3 + str1
str2 = reverse of "rap" = par
str3 = amet
str1 = ers
Simple really, even if the actual coding is woefully inaccurate
regards
Tim
The answer is: PARAMETERS (although it would be in lower case).
str2 + str3 + str1
str2 = reverse of "rap" = par
str3 = amet
str1 = ers
Simple really, even if the actual coding is woefully inaccurate
regards
Tim
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK
Re: Bar/Pub for programmers!
parameters = = arguments
I still hold to what I said previously.
So what programming language is it in?
I still hold to what I said previously.
So what programming language is it in?
-
- UBT Forum Admin
- Posts: 9687
- Joined: Mon Mar 13, 2006 12:00 am
- Location: NW Midlands
- Contact:
Re: Bar/Pub for programmers!
Hi Crhischriscambridge wrote:parameters = = arguments
So what programming language is it in?
I relly don't no - as Im preety psihed rite now, aving drunk som free beeeeer
hic
T
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK
Re: Bar/Pub for programmers!
looks like spark-pl or some other form of java so many are very similarUBT - Timbo wrote:Hi Crhischriscambridge wrote:parameters = = arguments
So what programming language is it in?
I relly don't no - as Im preety psihed rite now, aving drunk som free beeeeer
hic
T
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK
Re: Bar/Pub for programmers!
I agree.
I think you may be right in Java ish, as the variable notation is actually slightly different to C etc, now I have looked at it a bit more carefully.
I think you may be right in Java ish, as the variable notation is actually slightly different to C etc, now I have looked at it a bit more carefully.
-
- Active UBT Contributor 1+ yr
- Posts: 2178
- Joined: Mon Aug 08, 2016 1:56 pm
- Location: UK