Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,297 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,140 people online right now. Registration is fast and FREE... Join Now!




The heck is the code on the banner?

2 Pages V  1 2 >  
Reply to this topicStart new topic

The heck is the code on the banner?, For this website.

ChazZeromus
post 26 Sep, 2008 - 08:00 PM
Post #1


New D.I.C Head

*
Joined: 2 Aug, 2008
Posts: 35



Thanked 1 times
My Contributions


Is it the source for a string class? Cause it looks like that's all it is. Not very portable at that either, just supports char's.
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 27 Sep, 2008 - 12:04 PM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,026



Thanked 173 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


If you are talking about the top of the DIC page (in the orange) it appears to be a reverse string function. Notice it is called reverse() and takes in a string. It then creates a loop and fetches characters with charAt(i).

Looks fine to me and who really care, its a decoration. wink2.gif
User is online!Profile CardPM

Go to the top of the page

homemade-jam
post 27 Sep, 2008 - 01:42 PM
Post #3


eeeAddict

Group Icon
Joined: 17 Mar, 2008
Posts: 1,044



Thanked 1 times

Dream Kudos: 25
My Contributions


Whatever it is it looks good biggrin.gif

What lang? C?
User is offlineProfile CardPM

Go to the top of the page

Moonbat
post 27 Sep, 2008 - 01:51 PM
Post #4


D.I.C Regular

Group Icon
Joined: 30 Jun, 2008
Posts: 383



Thanked 22 times

Dream Kudos: 600
My Contributions


Looks kinda like Java.
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 27 Sep, 2008 - 01:55 PM
Post #5


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,969



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


As far as I know there is no standard library in C with a charAt function with an int only parameter. It's probably Java.
User is offlineProfile CardPM

Go to the top of the page

Programmist
post 28 Sep, 2008 - 03:26 PM
Post #6


Four-letter word

Group Icon
Joined: 2 Jan, 2006
Posts: 1,177



Thanked 6 times

Dream Kudos: 100

Expert In: Java

My Contributions


The fact that String is capitalized tells me that it's neither C nor C++ (unless they have changed since I last used them smile.gif). Are there other languages, aside from Java, that have a String object that is capitalized?

This post has been edited by Programmist: 28 Sep, 2008 - 03:29 PM
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 28 Sep, 2008 - 03:30 PM
Post #7


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,969



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


I believe Javascript does, but it is not defined in this way, also defining the type of a var is not required anyway.
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 28 Sep, 2008 - 04:20 PM
Post #8


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


So...it's Java.

YAY JAVA!
User is offlineProfile CardPM

Go to the top of the page

KYA
post 28 Sep, 2008 - 08:14 PM
Post #9


#include <nerd.h>

Group Icon
Joined: 14 Sep, 2007
Posts: 4,205



Thanked 50 times

Dream Kudos: 1150
My Contributions


epic thread!
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 28 Sep, 2008 - 08:33 PM
Post #10


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,026



Thanked 173 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


I am pretty sure it is Java and to answer the previous question, C# also has a String class with the capital "S". But since charAt is pretty much a thing of Javascript/Java I will go with Java. It also has a lowercase length method of a string which takes parenthesis... another indicator that it is probably Java.

smile.gif
User is online!Profile CardPM

Go to the top of the page

Locke37
post 29 Sep, 2008 - 07:34 AM
Post #11


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


I thought C#'s string class was with a lowercase "s"...hm.

csharp
string var = "hello";


...Or is that just a simple data type (or equivalent)?

This post has been edited by Locke37: 29 Sep, 2008 - 07:35 AM
User is offlineProfile CardPM

Go to the top of the page

MarkoDaGeek
post 29 Sep, 2008 - 08:59 AM
Post #12


Dirty Technophile

Group Icon
Joined: 13 Oct, 2001
Posts: 10,897



Thanked 1 times

Dream Kudos: 970

Expert In: Computer Networking, Web Development, Blogging

My Contributions


Version 5 actually had a mistake in the code for the header that people kept pointing out.

Since we're discussing the header, there are a number of easter eggs around the site (at least there used to be) lets see if you chumps can find them.
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:32AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month