//open lid
//take sh!t
//close lid
Комментарии для открытого Файла, дамп данных, файл близко...
Лучше всего один до сих пор:
"This code makes baby Jesus very sad!".
Это отсылало Строку iniciatilization как это:
String blankSpaces=" "+ //100 whitespaces
" "+ //200 Whitespaces
...
" " //100 whitespaces
Хорошо Вы получаете идею.
Классический ASP:
'Is it worth it, let me work it'
'I put my thing down, flip it and reverse it'
'Ti esrever dna ti pilf, nwod gniht ym tup I'
NextIP = StrReverse(UserRecordset.Fields.Item(0))
$this->getSelect()->where ('main_table.product_id = -1'); // Mom, Dad... sorry
Производственный исходный код:
// Remove this if you wanna be fired
я говорю mentee делать, по крайней мере, НЕКОТОРУЮ обработку исключений. Это - то, что я получаю в ответ вокруг каждого вызова дб....
Catch (Exception e) {
//eat it
}
Честный Богу:
// This is crap code but it's 3 a.m. and I need to get this working.
Любимый комментарий я когда-либо писал:
//the XML returned from this request is *mind-bogglingly* bad. Terrifyingly bad.
//a completed batch looks like this:
//<Batch>batchid=363777811 status=Done dateandtime=09/18/2007 09:53:10 PDT activateditems=335 numberofwarnings=0 itemsnotacivated=17 </Batch>
//and an incomplete batch like:
//<Batch>batchid=363778361 status=In Progress </Batch>
//so we'll just parse each item as a regex. Thanks Amazon.
И да, Amazon на самом деле возвращает XML как это.
Назад, когда я работал на Агентство Рейтер был комментарий в одном из наших обработчиков каналов, которые заставили некоторых людей думать, что Всевышний выручал нас...
// Jesus told me to skip to the end of the message here
Мы узнали позже, что был латиноамериканский контакт, названный Jesus (HeyZus).
Некоторые от ядра Linux:
/* Sun, you just can't beat me, you just can't. Stop trying,
* give up. I'm serious, I am going to kick the living shit
* out of you, game over, lights out.
*/
-
/* 2,191 lines of complete and utter shit coming up... */
-
#if 0 /* XXX No fucking way dude... */
Все ошибки, добавленные David S. Miller
Немецкий комментарий в некотором исходном коде, переведенном машиной или очень усталым человеком +, Google
; Rechnen ja ; have faith in yes
, я предполагаю оригинал, предназначенный, "принимает верный здесь"..., но с тех пор, как я взял его в качестве молитвы для моей жизни.
В известном коммерческом приложении для обработки электронных таблиц DOS:
/* This comment was just added in order to check-in a file that was last
checked in by [Insert Programmer FirstName] "Back-to-the-Future" [Insert
Programmer LastName]. While testing for year 2000 problems, he accidentally
checked-in this file while his machine clock was set forward to the year 2000.
This meant that the source code was always newer than the object file and
compiled every time the code was built. I'm checking this file in again to
fix that. */
В игре, куда этот объект может ступиться в, или:
stepOff(); //bitch
// Hey, your shoe's untied!
Сопровождаемый некоторым сомнительным кодом, и в рамках того кода,
// Keep looking! I think it was the other shoe!
Наконец,
// How strange -- I must be seeing things. Anyhow, I'm going to go take a shower, now...
// (c) 2000 Applied Magic, Inc.
// Unauthorized use punishable by torture, mutilation, and vivisection.
Ах, я всегда любил этого ...
// This is a walkaround for bug #7812
Написано одним из наших китайских программистов, для которого английский не был его родным языком.
I действительно понравился этот Мне кажется, что «обход» почти лучше, чем «обход»
// For the sins I am about to commit, may James Gosling forgive me
17.05.99 D JONES КОММЕНТАРИЙ КОД КРОВИ АУЗИ (19.02.99)
17.05.99 К РОБИНСОН ТЕКСАН КРОВИ НЕ ДОЛЖНО ПРАВИЛЬНО ПИСАТЬ АУССИ (НЕТ КОДА ИЗМЕНЕНИЕ - ПРОСТО КОММЕНТАРИЙ)
/ * А теперь, чтобы все это посмотреть наполовину приличный в замедленном шаге брат семейства браузеров, интернет Fucking Explorer * /
Некоторое время назад я наткнулся на:
raise InvalidChild() # e.g. no legs
Это гротеск, так как « inwalida » на польском языке означает человека с ограниченными возможностями. глупый я :)
public GetRandomNumber()
{
// Chosen by a fairly rolen dice
return 12;
}
Много лет назад я столкнулся с этим:
/***************************************************************************/ /* deep wizardry. do not touch. */ /* */ /* no seriously. XXXXXX I'm looking at you. If you screw with this again */ /* I will kill you with my swingline stapler. */ /* */ /* ... */
А затем продолжил описывать особенно волосатый алгоритм.
Еще в начале восьмидесятых я натолкнулся на это на ассемблере (цитата из тусклой памяти):
I don't understand how the following bit works, but it worked in the program I stole it from.
Использование точек с запятой в VB.NET
TextBox2.Visible = True';
For Each row In data.Tables(0).Rows
If row("Customers.Id").ToString <> customerId Then
customerId = row("Customers.ID").ToString';
name = "Customer Name: " & row("Name").ToString & CrLf';
address = "Address: " & row("Address").ToString & CrLf & CrLf';
TextBox2.Text += name & address ';s
End If';
Next';
# There is a bug in the next line. $searchParameters != {} will always return true, because {} is creating
# a new hash reference on the fly, and the inequality operater is comparing the memory location of it
# to the memory location of $searchParameters, and they will always be different.
# This means that the following code will always get executed as long as $nodes is defined.
# I'm leaving it there because it has always been there, and although I'm sure it was originally meant to
# mean %$searchParameters (essentially "is this hash not empty"), I'm afraid to change it.
if ( $nodes && $searchParameters != {} )
{
// This should fix something that should never happen
Мой любимый от позднего, великого Пола ДиЛасксии:
// Автор: Если этот код работает, он был написан Полом ДиЛаскья. Если нет, то я не знаю, кто это написал.