473,383 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Infinite Loop, two lines, no brackets

Hi,

Perhaps this is too easy to be any fun for all of you, but it's stupidly important to me, so any help, advice or ideas anyone can offer are greatly appreciated.

I would like to have a ring engraved with C# code for an infinite loop for love. (For my C# developer guy's wedding band.)

I can't use anything but letters and numbers. No symbols, no brackets, no slashes, etc, because it's being engraved in Morse code. I can use up to two lines.

I am not a developer and speak no code, so please understand that you're dealing with an idiot.

The only ideas I've been able to come up with on my own are:

While True
Love

While 1
Love

Love
goto Love

or - resortig to VBA

While Love
Loop

Here's hoping some kind person will save me from engraving something really lame on a wedding ring.
Sep 21 '11 #1
2 2026
Plater
7,872 Expert 4TB
I like the first one, since you cannot use symbols.
It also carries over into english, for people who dont understand code, it sounds like fortune cookie speak.
"While true, love"
Sep 27 '11 #2
GaryTexmo
1,501 Expert 1GB
I like the while 1 loops, or while true... they are implied as infinite. If you put while love, it implies the variable love can change, which isn't the message you're trying to send at all :D

It's too bad you can't use symbols as it makes proper C# syntax impossible. Personally I think...

Expand|Select|Wrap|Line Numbers
  1. While True
  2.   Love
... might be your best option. You could even give it a parameter... I think that's still valid VB syntax. Back when I used to program in QB you didn't need the brackets, the function signature was just "<function name> <param 1>, <param 2>, ..., <param n>" so maybe that's still valid? Anyway, if so, you could do...

Expand|Select|Wrap|Line Numbers
  1. While True
  2.   Love <your fiance's name here>
... for a bit of extra geek factor.

Cool idea, by the way :) And congrats!!
Sep 27 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

43
by: Gremlin | last post by:
If you are not familiar with the halting problem, I will not go into it in detail but it states that it is impossible to write a program that can tell if a loop is infinite or not. This is a...
5
by: mailpitches | last post by:
Hello, Is there any way to kill a Javascript infinite loop in Safari without force-quitting the browser? MP
4
by: LOPEZ GARCIA DE LOMANA, ADRIAN | last post by:
Hi all, I have a question with some code I'm writting: def main(): if option == 1: function_a()
44
by: James Watt | last post by:
can anyone tell me how to do an infinite loop in C/C++, please ? this is not a homework question .
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.