Bar/Pub for programmers!

Add links or just chat about things you've found elsewhere on the web...or just add a "plug" for a local event happening near you...!
Post Reply
chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Bar/Pub for programmers!

Post by chriscambridge » Tue Mar 28, 2017 10:55 pm

Image

UBT - Timbo
UBT Forum Admin
Posts: 8370
Joined: Mon Mar 13, 2006 12:00 am
Location: NW Midlands
Contact:

Re: Bar/Pub for programmers!

Post by UBT - Timbo » Wed Mar 29, 2017 12:22 am

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

chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Re: Bar/Pub for programmers!

Post by chriscambridge » Wed Mar 29, 2017 11:09 am

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..

UBT - Timbo
UBT Forum Admin
Posts: 8370
Joined: Mon Mar 13, 2006 12:00 am
Location: NW Midlands
Contact:

Re: Bar/Pub for programmers!

Post by UBT - Timbo » Wed Mar 29, 2017 11:27 am

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

chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Re: Bar/Pub for programmers!

Post by chriscambridge » Wed Mar 29, 2017 11:47 am

parameters = = arguments

I still hold to what I said previously.

So what programming language is it in?

UBT - Timbo
UBT Forum Admin
Posts: 8370
Joined: Mon Mar 13, 2006 12:00 am
Location: NW Midlands
Contact:

Re: Bar/Pub for programmers!

Post by UBT - Timbo » Wed Mar 29, 2017 11:55 am

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

chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Re: Bar/Pub for programmers!

Post by chriscambridge » Wed Mar 29, 2017 11:59 am

:obscene-drinkingdrunk:

nick
Active UBT Contributor 1+ yr
Posts: 383
Joined: Mon Feb 29, 2016 11:28 am

Re: Bar/Pub for programmers!

Post by nick » Wed Mar 29, 2017 3:26 pm

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
Image
Image

chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Re: Bar/Pub for programmers!

Post by chriscambridge » Wed Mar 29, 2017 3:38 pm

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.

chriscambridge
Active UBT Contributor 1+ yr
Posts: 1999
Joined: Mon Aug 08, 2016 1:56 pm
Location: UK

Re: Bar/Pub for programmers!

Post by chriscambridge » Wed Mar 29, 2017 3:43 pm

Image

Post Reply