Page 1 of 1

Bar/Pub for programmers!

Posted: Tue Mar 28, 2017 10:55 pm
by chriscambridge
Image

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 12:22 am
by UBT - Timbo
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

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 11:09 am
by chriscambridge
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..

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 11:27 am
by UBT - Timbo
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

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 11:47 am
by chriscambridge
parameters = = arguments

I still hold to what I said previously.

So what programming language is it in?

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 11:55 am
by UBT - Timbo
chriscambridge wrote:parameters = = arguments

So what programming language is it in?
Hi Crhis

I relly don't no - as Im preety psihed rite now, aving drunk som free beeeeer :oops:

hic

T

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 11:59 am
by chriscambridge
:obscene-drinkingdrunk:

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 3:26 pm
by nick
UBT - Timbo wrote:
chriscambridge wrote:parameters = = arguments

So what programming language is it in?
Hi Crhis

I relly don't no - as Im preety psihed rite now, aving drunk som free beeeeer :oops:

hic

T
looks like spark-pl or some other form of java so many are very similar

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 3:38 pm
by chriscambridge
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.

Re: Bar/Pub for programmers!

Posted: Wed Mar 29, 2017 3:43 pm
by chriscambridge
Image