Darn it, Joe! That is frigging awesome !

Not only is that program highly performant, maintainable, secure and
readable, it is concise too!

I applied some ROT-13 creativity:

---
private void Form1_Load(object sender, EventArgs e)
{
  string theTruthOfLife =
"VNzNYnmlJbeguyrffCvrprBsTneontrGungSbeFbzrErnfbaGuvaxfCrbcyrFubhyqWhfgUnaqZrRagverPbqrCebwrpgfSbeNSvanyRknzFbGungVPnaFbzrubjTrgNCnffvatTenqrVaZlFpubby­
JuvpuErnyylGryyfLbhFbzrguvatNobhgGurFpubbyVNzTbvatGb-
ZnlorVgVfAbgNYrtvgvzngrYrneavatVafgvghgvbaOhgEngureNUniraSbeBgureYnmlJbeguyrffCvrprfBsTneontrYvxrZrJubJnagGbTbGuebhtuYvsrUnivatRirelguvatUnaqrqGbGurzJvgubhgChggvatSbeguGurFyvtugrfgOvgBsRssbegBeRiraTrggvatFgnegrqBaZlCebwrpgNaqFgrnyWbofNaqZbarlSebzPbzcnavrfGungNerFghcvqRabhtuGbUverZrHagvyGurlSvanyylErnyvmrUbjJbeguyrffVGehylNzOhgAbgOrsberFcraqvatNOhapuBsZbarlNggrzcgvatGbGenvaZrOhgVgGheafBhgGungVNzHagenvanoyr-
OrpnhfrVWhfgRkcrpgRirelbarGbQbZlJbexSbeZrNaqFbGuraGurlSverZrNaqVZbirBaGbZlArkgWboNaqYvrNYvggyrZberNobhgZlRkcrevraprNaq'Rqhpngvba'.";
  MessageBox.Show(System.Text.RegularExpressions.Regex.Replace(Rot_13
(theTruthOfLife.ToCharArray()), "([A-Z])", " $1"));
}

public string Rot_13(char[] s)
{
  for(int i = 0; i < s.Length; i++)
  {
    if(s[i] <= 'Z' && s[i] >= 'A') s[i] = (char)(((int)s[i] - 'A' +
13) % 26 + 'A');
    if(s[i] <= 'z' && s[i] >= 'a') s[i] = (char)(((int)s[i] - 'a' +
13) % 26 + 'a');
  }
  return new string(s);
}
---

Hope you like it !! :-)

On Feb 24, 12:08 pm, Joe Enos <[email protected]> wrote:
> Here's the code:
>
> public void
> IAmALazyWorthlessPieceOfGarbageThatForSomeReasonThinksPeopleShouldJustHandM­eEntireCodeProjectsForAFinalExamSoThatICanSomehowGetAPassingGradeInMySchool­WhichReallyTellsYouSomethingAboutTheSchoolIAmGoingToThatMaybeItIsNotALegiti­mateLearningInstitutionButRatherAHavenForOtherLazyWorthlessPiecesOfGarbageL­ikeMeWhoWantToGoThroughLifeHavingEverythingHandedToThemWithoutPuttingForthT­heSlightestBitOfEffortOrEvenGettingStartedOnMyProjectAndStealJobsAndMoneyFr­omCompaniesThatAreStupidEnoughToHireMeUntilTheyFinallyRealizeHowWorthlessIT­rulyAmButNotBeforeSpendingABunchOfMoneyAttemptingToTrainMeButItTurnsOutThat­IAmUntrainableBecauseIJustExpectEveryoneToDoMyWorkForMeAndSoThenTheyFireMeA­ndIMoveOnToMyNextJobAndLieALittleMoreAboutMyExperienceAndQuoteEducationUnqu­ote
> {
> // You can finish it from here...
>
> }
>

Reply via email to