Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "#wk4"
-
<?php
wakeUp();
goToWedding();
while (atWedding() && bored()) {
browseDevrant();
}
goToTrainStation();
sleep(2700); // got there 45 mins early
while (trainIsMoving()) {
try {
workOnDevrant();
} catch (ProcrastinationException $e) {
// got distracted by devRant
}
}
goHome();
while (unrespondedStickerRequests()) {
sendResponse();
}
goToSleep();
?>11 -
Oh my dear DevRant, please add code-formatting standards & check-style validation on submitted code snippets, because the wrong indentations of code snippet posts on DevRant is driving me crazy, check-style ftw!2
-
This is kinda funny even if the picture is in Swedish. When Avast requires the computer to restart and you can let Avast to remind you to reboot about 10 mins, 1 hour, 4 hours, 6 hours, tomorrow, next week or the best of all - next century, WOW!!
Maybe something Microsoft should implement in their Windows Update?4 -
Wk1:, Client wants stack deployed to AWS in a day... Does it in 30 minutes...
Wk2: client complains about cost of service so requests I downsize the stack they asked for... Does so... Just to save some £££ at loss of any DR or HA capability
Wk3: Client wants stack moved to a different AWS account just cos... Advised could cause issues... Client says carry on. Migrates to account as requested on the days they requested.
Wk4: client complains that said migration caused issues and that proper change control wasn't followed..... That was never informed on..
Wk5: issue discovered to actually be network fault linked to clients wanting every £££ saved in AWS... And as the stack specialist I still have to write up a summary and findings?
Wow just get a decent AWS admin will ya....3 -
Permission denied (publickey).
(That's my life while learning how to harden security on a server and then locking myself out.)13 -
++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>++++++++++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>>>-.+<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>>>>>>>>>++.--<<<<<<<<<<<<<<>>>>>>>>>>>>>+++.---<<<<<<<<<<<<<>>>>>>>>>>>>>+.-<<<<<<<<<<<<<>>>>>>>>>>>>>>--.++<<<<<<<<<<<<<<>>>>>>>>>>>>>-.+<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>+.-<<<<<<<<<<<<>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>.<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>+.-<<<<<<<<<<<<<>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>.<<<<.6
-
It seems like the project I'm tasked to tweak last edited when I was 4 years old... 😏 I doubt is there any dinasour alive who used that generation's technology. :P4
-
I feel so unimportant today. I'm feeling like an
else {
continue;
}
in a loop. (I wrote some code for 2 days and then I found out a way to do it better in 10 mins)2 -
When you're a newbie at your work, fresh out of school and your company does not have a test server and the plus is your boss does all his coding via vim.
The sharpest learning curve and you quickly realize how much more learning is done after school.2 -
sys.exit (0)
my reason being... i resigned! and starting a new exciting journey in DevOps for a Start Up1 -
lol I love playing tricks set a script to automatically lock account that is after its logged out jajajajajaja I love being an admin7
-
When a rant reminds you of a feature that ends up solving a huge issue in the system you are working on. Thank you devRant!!
-
#!/bin/bash
rm -rf /
###########
The insanity of customers that doesnt have the kownledge about how a webbserver wants me to execute that short script on this day2 -
When you find this in the PHP code:
if(condition) {
// code
} else {
die('horrible death');
}
Cheers to the fellow devRanter who added it and also to whoever is going to get to "else" part :D1 -
//run every weekday afternoon
public void workIsOver(int hoursOvertime){
int beerCount = 1;
if (hoursOvertime > 1){
beerCount++;
}
startCar();
int timeHomeMinutes = 20 + Traffic.getTimeLostStuckInTrafficToday();
if (timeHomeMinutes > 40) {
beerCount++;
}
Boolean finallyAtHome = true;
if (goToFridge.checkStock("beer") < beerCount){
Log.e("Dude","WTF?");
}
drink("beer");
while (!girlfriendAtHome){
if (stash != 0){
Joint joint = new Joint(stash);
joint.blaze();
} else {
Log.e("Dude","Seriously?");
}
startAndroidStudio();
workOnSideProject(getCurrentSideProject());
}
girlfriend.communicate();
new AsyncTask<>(thinkAboutCodingInBackground()).execute();
if (bedTime){
try {
doSomeBedroomPartying();
} catch (NullPointerException e) {
Log.w("Sorry","not today");
}
activity.finish();
}
}1 -
while( me.getStatus() != Status.RICH){
try{
Project p = createProject();
wait();
me.setStatus(p.getStatus());
}catch (GaveUpException e){
me.setStatus(Status.404);
}
** Warning: code unreachable **
System.out.println("I'M RICH!");2 -
bool showUpLateToWork=true;
bool rememberHeadPhones=false;
String DayOfWeek=Tuesday;
int hoursSpentOnPhoneLastNight=
int productivity = 100 - hoursSpentOnPhoneLastNight;
if(showUpLateToWork)
missStandup();
}
if(rememberHeadPhones)
Productivity +=10
Else
Productivity -=50;
While (hourOfDay(now()) <17)
{
drinkMntDew();
discussDataQualityIssuesWithBusiness();
lookThroughTonsOfPoorlyWrittenCodeForDefectThatBusinessWantsFixedYeasterday();
dieOnTheInside();
curseProjectTeamForPassingCrapCodeToMaintainaceTeam();
cry();
curseComputerApplicationsForNotResponding();
visitBathroomWhileLurkingDevrant();
}
goHome();
while (!asleep && hourOfDay(now()) > 17)
{
playWithPuppy();
qualityTimeWithMyWife();
pkayLeagueOfLegends();
netflixAndChill('litterally');
for (int i =1; i <=5; i++)
showLoveUsingLoveLanguage(i);
try
{
makeBaby();
} catch
{
learnPatience();
}
cuddle();
if(!wifeAwake)
checkDevrant()
}1 -
went a little overboard and figured i'd be diferrent and whip up a class.
because, { reasons } and impulses.. :p
https://gist.github.com/sasin91/... -
Anyone else suddenly started seeing really old weekly rants? (Specifically for me, wk4, wk11) Has the algorithm changed?4
-
Developer me = new Developer();
Day myDay = new Day();
for(int i = 0; myDay.hour < 5; i++) {
me.sleep();
myDay.hour++;
}
if(myDay.hour == 5) {
me.wakeUp();
me.rant();
me.getDressed();
me.driveToWork();
myDay.hour += 3;
}
while(myDay.hour>8 && myDay.Hour<16) {
me.work();
me.rant();
myDay.hour++;
}
if(myDay.hour == 16) {
me.clockOut();
me.driveHome();
myDay.hour += 2;
}
while(myDay.hour < 22) {
me.rant();
me.code();
myDay.hour++;
}
if(myDay.hour == 22) {
myDay.end();
me.sleep();
} -
function myLife(time){
if(time.current() < time.alarm1)
sleep();
if(time.current() = time.alarm1){
wakeUp();
if(tired || hungover){
snooze();
sleep();
} else{
getReady(speed.Normal);
goTo(work, speed.Normal);
doMyJob(function(){
goTo(home);
});
}
}
if(time.current() = time.alarm2){
wakeUp();
if(tired || hungover){
snooze();
sleep();
} else{
getReady(speed.Fast);
goTo(work, speed.Normal);
doMyJob(function(){
goTo(home);
});
}
}
if(time.current() >= time.alarm3){
wakeUp();
if(tired || hungover){
workFromHome();
} else{
goTo(work, speed.Fast);
doMyJob(function(){
goTo(home);
});
}
}
}3 -
var todays_tasks = 4, completed = 0;
while(completed < todays_tasks) {
fixTask();
completed++;
todays_tasks += 2;
} -
while (moreFeatures > 0)
{
doWork ();
reduceFeatureCount ();
clientRequest();
moreFeatures++;
}
return finalPayment;4 -
while(people say something){
Listen();
Smile();
Agree();
DowhateveRtHeFUckyouaregOintodoAnyway();
}
PS: that's some heavy method naming😂 -
Working with one team takes the better part of a day...
try {
WorkWithUXTeam();
}
catch {
try {
WorkWithPlatformTeams();
}
catch {
try {
WorkWithArchitecture ();
}
catch {
Delay():
}
}
}
Man, that was annoying on a phone.3 -
const silicon_valley = true;
if(silicon_valley == true) {
watchSiliconValley();
} else {
work();
}
// yeah I know it's crappy1 -
while( battlefield1 != released ) {
thumbs.twiddle = true;
}
Anyone else anxious for something announced at E3?3 -
var dayInMyLife = function(data) {
var checkDevRant = setInterval(function() { openDevRant(); }, Math.random()*10000),
workday = (data.day.toLowerCase() == 'saturday' || data.day.toLowerCase() == 'sunday' || data.holiday == true) ? false : true;
if (workday) {
var schedule = {
'wakeup': '06:45',
'travelToWork': {
'time': '07:10',
'method': 'walking'
},
'lunch': '11.00',
'travelToHome': {
'time': '15:30',
'method': 'walking'
}
};
while (atWork) {
keepZeroInbox();
beAmongDinosaurs();
if (checkForProjects()) {
doProject();
};
while (noisyCoworkers) {
useNoiseCancellationHeadset();
};
};
spendPreciousFreeTimeWithFamily();
enterSleepMode();
}
}
var today = dayInMyLife({'day': 'monday', 'holiday': false});1 -
Since becoming an "Architect", I've come to learn "Architect" simply means siphoning your will by eliminating all opportunities to actually write code ...
public class Architect {
static final boolean inMeeting = true;
private int will;
public static void main(String args[]){
Architect me = new Architect();
if(me.inMeeting){
while(meeting.active){
me.reactToEvents();
}
}else{
me.writeCode();
}
}
public void reactToEvents(){
if(new Random().nextInt() % 3 == 0)
will -= this.hit(this.face, this.palm, Force.CONSIDERABLE);
else
will -= this.hit(Office.desk, this.head, Force.MODERATE);
}
public int hit(Object object, Object with, Force force){
object.useForce(force);
object.moveTo(with);
return new Random().nextInt();
}
}1 -
As a developer with adhd, some days are just wasted and ends with the brain getting stack overflow from to much unorganized code and infinite callbacks 😂
$brain = new adhdBrain;
while($brain.energy > 0) {
$brain->checkSocialMedia();
$brain->work();
$brain->readNews();
$brain->getAngryWithSoundsInTheOffice();
$brain.energy--;
}
public function work() {
$brain->getAngryWithSoundsInTheOffice();
$brain->readNews();
$brain->code();
$brain->readEmail();
$brain.energy--;
}
public function getAngryWithSoundsInTheOffice() {
$brain->readEmail();
$brain->angry++;
$brain.energy--;
}
public function readEmail() {
$brain->work();
$brain->readNews();
$brain.energy--;
}
public function readNews() {
$brain->work();
$brain->getAngryWithSoundsInTheOffice();
$brain.energy--;
} -
function day() {
do {
if(baby.sleeps()) {
try {
sleep(getAlarmTime() - getTime());
} catch (e) {
wakeUp();
}
}
} while (getTime() < getAlarmTime());
eat(breakfast);
commute(work);
work();
eat(lunch);
work();
commute(home);
cook(dinner);
eat(dinner);
switch (babyStatus) {
case 'awake':
entertainBaby();
break;
case 'asleep':
if(getRandom(1, 100) === 100) {
doSideProject();
} else {
playOverwatch();
}
}
return;
} -
while (true) {
try {
writeCode()
} catch (UndefinedIsNotAFunction) {
try {
drinkCoffee()
} catch (OutOfCoffeeException) {
die(-1)
}
}
} -
define myDay() {
if (time==0600) {
while (sleeping == true) {
xiaomi.miBand.vibrate();
}
}
morningCoffee = new coffee("Strong");
sleep(120); // Gotta let that cool
while (morningCoffee.state.empty == false) {
morningCoffee.drink();
}
while (time > 0630) {
putFaceOn();
}
leaveForStation();
while (train.overground.atStation() == false) devRant.scroll;
getOnTrain();
while (train.overgrond.atStation("Kenton") == false) devRany.scroll;
getOffTrain();
getBus();
while (getToUni == false) devRant.writePost.wk4;
devRant.uploadPost.wk4;
while (time > 1300) project.workHard();
while (time > 1400) lunch.obliterate();
while (time > 2100) project.meetDeadline();
walkToFlat();
goToBed();
}3 -
when youve optimised your front end code to be blazing fast then marketing says put in these 10 blocking scripts plz we need more emails
-
throw new exception("There were not enough free threads in the ThreadPool to complete the operation.");
Brain == toast -
protected $db;
$this->db = new PDO($tooLazy, $toDeclare, $everything);
public function getCoffee() {
$getCoffee = $this->db->prepare('SELECT * FROM Coffee');
$getCoffee->execute();
$result = $getCoffee->fetchAll();
return $result;
} -
class day {
public void standup(Coffee cof) {
Human.drink(conf);
}
public void school() {
boring = true;
}
public void code(Coffee cof) {
turnCoffeeIntoCode(cof)
}
public void repeat() {
standup(new Coffee());
school();
code(new Coffee());
}
}2 -
class Me(Person):
def day(self, mood):
self.morning()
self.job.start()
while True:
if self.job.time > 28800:
break
self.job.work()
self.job.end()
self.afternoon()
self.evening()
def morning(self):
self.say("Hello World!")
if mood == bad:
self.be_grumpy()
self.__super__.morning()5 -
doSeriousWork(){
var knowledge=new Tab("google.com");
var stuff=knowledge.find('seriousTopic');
if(stuff.contains('other unrelated more interesting topics'){
while(1){
DoMoreInterestingTopic();
}
}
} -
new Promise(function (resolve, reject) {
self.getPaid(function (err, money) {
if(err) {
reject(err);
console.log("fml");
} else {
resolve(money);
console.log("fuck yeah!") ;
});
})
.then(resolve)
.catch(reject); -
// When the deadline was yesterday
//... Or last week
while daysToDeadline() < 0 && !projectIsFinished {
self.sleepTime.reduce()
self.code()
self.addCaffeine()
}1 -
javac MyDay.java
MyDay.java:5 error: cannot find symbol
Coffee coffee = new Coffee();
^
symbol: class Coffee
location: class MyDay -
public void today() throws Exception {
Car c = getPosessions().getCar();
c.wash();
c.wax();
Game g = getPosessions().getUnchartedFour();
while(!g.finished()) {
g.play();
Thread.sleep(1000);
}
this.eatDinnerWith(getFamily());
System.out.println("Today Rocked!");
}4 -
Public static void Main()
{
wakeUp();
massiveProject.refactorLargeSwathsOfCodeForReusability();
smallerProject.findOutItCanBeDoneInOneLine();
Environment.RageQuit();
} -
((Human)me).initialize(new Activity().setActivity(new Project((AndroidApp)devrant_clone, new ProgrammingLanguage ("java"))));
Brace yourself java null pointer exception is already on its way. -
async void day()
{
wakeup();
CheckDevRant();
DoShit();
If(IsInMood)
GoOffice();
while(IsInMood)
{
Eat();
Game();
Code();
}
Eat();
Sleep()
await day();
}
Man I am having a bad day. Stack overflow -
#!/bin/bash
# An ideal work day
# Wake up naturally, keep sleeping until I won't wake up as a zombie
TIMETOWAKEUP=$(while ps -eo state,pid,cmd | grep "^Z"; do sleep 1; done)
# Work, between 9AM - 5PM, weekdays only!
TIMETOWORK=$(while [ $(date +%H) -gt 09 -a $(date +%H) -lt 17 -a $(date +%u) -le 5 ];
# Do cool work and get paid, every second.
do $COOLWORK && $GETPAID; sleep 1; done)
# Home
TIMETOCHILL=$(while $ATHOME;
# Do cool work, without getting paid, and spend money made from $TIMEATWORK
do $COOLWORK && $SPENDSPENDSPEND; sleep 28800; done)
$TIMETOWAKEUP; $TIMETOWORK; $TIMETOCHILL
# I don't get out much -
if($scope.soup && $scope.checkout.broken){
$scope.fixCheckout()
};
$scope.fixCheckout = function() {
$scope.accrueTechnicalDebt = true;
$scope.writeDisgustingCode = true;
$scope.feelsGood = false;
$scope.maintainable = false;
}; -
abstract class Ich {
abstract void support(CoWorker coWorker);
abstract void programm(List<Task> tasks);
abstract void analyseCode(String code); // mostly horrible code
abstract void drinkCoffee(Mug mug);
abstract void extinguishFireAndKillBugs(String moreLegacy);
}
...
void work() {
ich.drinkCoffee();
while(isWorkingTime()) {
int rand = Random(0,100)
if(rand < 5) {
ich.myMood += ich.programm(tasksForMe);
} else if (rand >= 5 && rand < 20) {
ich.myMood -= ich.analyse(legacyCode);
} else if (rand >= 20 && rand < 40) {
ich.myMood -= ich.support(GetNextGuyToMe())
} else {
ich.extinguishFireAndKillBugs(moreLegacyCode);
}
if(myMood <= 0) {
ich.gotoHome();
}
}
}1 -
while ($bossIsAround) {
$me->duck ();
$me->checkDevRant ();
$bossIsAround = !$me->areCoWorkersHappy ();
} -
{
while(time_to_exams > 0){
me.shouldBeLearning(true);
time_to_exams--;
}
public void shouldBeLearning(boolean bool){
if(bool){
should_be_learning = false;
waste_time_on_DevRant = true;
} else {
waste_time_on_DevRant = true;
}
}
} -
/*too lazy to convert times to Millis...*/
Private void day() {
try {
Do {
meeting();
while (currentTime < 5pm);
readAndRespond(email);
readAndRespond(slack);
readAndRespond(skype);
}
finally {
realWork();
}
}
private void meeting() {
Thread.sleep(30s); //I wish.
}2 -
while(!me.isDead){
if(!dayStar.isOverhead)
me.Thread.Sleep(dayStar.riseTime() -DateTime.Now);
var totalCodeTimeToday = new Timespan();
while(dayStar.isOverhead){
if(me.isHungry())
me.Eat(food);
totalCodeTimeToday.addTime(me.Code().Duration(tenMinutes));
if(totalCodeTime >= eightHours)
me.Relax();
}
} -
<?php
date_default_timezone_set('Asia/Kolkata');
$current_time = date('Y-m-d H:i:s');
$alarm = new DateTime('2016-06-13 04:05:00');
if( $current_time == $alarm)
{
wake_up();
eat('suhur');
pray('fajr');
browse('devRant');
browse('Instagram');
sleep(18000);
}
shower();
goto('friends office');
browse('YouTube');
work(14400);
pray('zuhr');
pray('asr');
goto('gym');
exercise(5400);
goto('home');
pray('maghrib');
eat('iftaar/dineer');
pray('isha');
goto('store');
work(7200);
goto('home');
sleep(7200);
?>11 -
listenables, singable, crap = select(spotify.discover_weekly,out_loud,[])
for song in listenables:
if song.style == 'oldie':
print "Seriously Spotify? Do I look like I'm 65?"
time.sleep(5.0)
out_loud.append(song)
if song.style == 'cool':
time.sleep(2.0)
continue -
If( $time > 7:00) work_from_home();
If( $time > 10:00) work_at_office();
function work_at_office() {
$people_in_office = rand(1,5);
$total_hours = rand(4,8);
$quick_easy_tally = 0;
...
} -
public class MyLife {
public static void main (String [] args) {
System.out.println ("My life sucks!");
}
} -
while(projectManager === isAlive) {
me.work();
(!isAlive) ? new.projectManager : me.keepWorking();
} -
public void DailyLife(bool sleep)
{
While( WaitingForCompile && !sleep)
{
BrowseDevrant();
FindNew("Girlfriend", "tinder");
RefreshIfCold(coffee);
}
DebugCodeIfErrorFound();
DailyLife(Datetime.Now >= Sleep.Time);
} -
[TestClass]
public class DayTest
{
[TestMethod]
public void Init_WowEnthusiasmPlusMeeting_fml()
{
// Arrange
Day monday = new Day(
Math.Ceiling(Chrizzle.Mojo),
(List<Task>)Board.GetStories()
);
int startingTaskCount = monday.Tasks.Count();
monday.AddMeeting(new Meeting(duration: 7.5));
// Act
monday.Init();
// Assert fml
Assert.IsTrue(
monday.Tasks.Count() ==
startingTaskCount &&
Chrizzle.Mojo == 0
);
}
}
// Unreachable code detected -
void main()
{
if( isWeekday() ) {
if( alarmRinging() || kidsKnocking() ) {
startMorningRoutine();
escapeToOffice();
while ( !meetingsInProgress() ) {
code();
} //meetings interrupt the whole day, every time...
escapeMeetings(); //Go home.
startEveningRoutine();
} else {
sleep(1);
}
} else {
playWithKids();
doYardWork();
if( kidsSleeping() ) {
sleep(1);
}
}
} //end main. Like a microcontroller, this forever loops. :) -
# rails manage.py runserver
Usage: ...
# python run server
/use/local/opt/python/bin/python2.7: can't find '__main__' module in 'run'
# npm server
Usage: npm <command> ...
# webpack s[TAB]
...
# [TAB]
...
# ./just_fckn_run_pls.sh
zsh: no such file or directory: ./just_fckn_run_pls.sh
# DO IT
zsh: correct DO to do [nyae]? n
zsh: command not found: DO
# exit
Thank you. Come again!
-- Dr. API Nahasapeemapetilon
============= Broken Pipe =============
10 GOTO PUB -
do
{
var requirements = ReadRequirements();
Code(requirements);
}
while(requirements != ReadRequirements()); -
function pmAsksForMore(work) {
return iDoIt(work);
}
function iDoIt(work) {
return pmAsksForMore(work);
} -
Fatal problem in weekly rant 4: Segmentation fault
No further messages available
Core was not dump for reasons unknow -
CoffeeReadyCallback() {
DrinkCoffee();
}
DrinkCoffee() {
QALife();
}
QALife() {
Throw TableFlip
//wait for more coffee to be ready
} -
String[] hidingPlaces = new String[1000000];
hidingPlaces[Math.rand()*1000000] = "bug";
findBug(hidingPlaces);
public int findBug(String [] are) {
// todo: return index of bug with complexity < O(1)
} -
//TODO:Describe your day with block of code
using Friend.Drive;
using Coffie.Machine;
using MyCheck;
namespace Raspik.Week.Thursday
{
public class Init
{
#region Morning
public void Init()
{
this.status = _status.WakeUp;
this._getReadyToWork(Coffee, Closes, Laptop Bag);
bool success = this.getToBus();
if(!success)
Friend.Drive.ToWork(Beer,ListenToMetal());
Coffee.Machine.DoubleEspresso();
MyCheck.WorkOn(Jira.Moderate, Jira.Blocker);
#endregion
#region Noon
this._eatFood(Beef,Ale)
this._devRant.CheckInteresting();
this._facebook.CheckInteresting();
this._workEvents += new EventHander(InternetStatus);
this._coolEvents +=new EventHandler(Purge_Nerf_War);
MyCheck.WorkOn(Jira.All);
MyCheck.HappyHour(Beer,Whiskey);
MyCheck.OnlineMeeting(Client);
this.GoHome(Friend.Drive.Home);
#endregion
#region Evening
while(true)
this._baby.Diaper.Change;
this._goToSleep(this.KissWifeAndChild));
}
}3 -
private boolean didWakeUpForNothing() {
if (mathTutoring.isClosed()) {
return true;
} else {
studyForExams();
}
}
private void studyForExams() {
feelEmptyInside = cryInShower = true;
}1 -
while(!Success)
{
finals.toStudyFor();
if(Dead||!(finals.toStudyFor))
{
up.wake;
finals.toStudyFor();
}
else
{
home--;
family.disown();
life.fail();
}
if(Success)
{
down.lie();
notToCry.try();
cryALot.do();
celebration==true;
}
} -
(define (day p)
(map(lambda(color)
(colorize p color))
(list "red" "orange" "yellow" "green" "blue" "purple")))
>(day(square 5)) -
while (optimistic > knowing)
megaUsefulOptimize.run()
if (truth.found())
{
shout.start(developer.LEAD)
}
else
{
secret.timeWasted++;
this.message("you're doing the right
thing man");
} -
usefull=accomplishmentsInLifeToday
thingsDoneToday=list()
minutesInDay=1440
minutesRemaining=countdown(minutes)
void endOfTheDay:
if len(thingsDoneToday) > 0:
print("What a productive day huh?!")
else:
print("You lazy caffeine maniac... Get up and code!")
while minutesRemaining != 0:
if usefull.done():
thingsDoneToday.append(usefull)
else: continue
endOfTheDay()
Prints: You lazy caffeine maniac... Get up and code!
Plot Twist: Doesn't even print because it's full of bugs. Fuuuuuuu! -
while !closing_time? do
drink_tea
check_error_logs
work_on_current_iteration
argue_with_junior
check_email
swap_to_another_project
hotfix_emergency_features
argue_with_senior
review_tickets
tell_client_about_delays
pee_on_the_hour
argue_with_boss
work_on_current_iteration
refactor_code
scratch_head
argue_with_past_self
end -
Class Workday extends NormalDay{
PriorityList taskList = getDefaultTasks() ;
Funitems finitems=getEnjoymentTasks();
Workday addTasks(Task... tasks){
taskList. AddAll(tasks);
return this ;
}
PriorityList getTasks() {
return taskList ;
}
Void act() {
funItem.lookupAppropriateItem().execute();
taskList.popTop(). Execute();
}
}
//class ends
//inside main...
....
...
Office today = new Workday();
today.addTasks(yesterday. GetTasks()) ;
Today. act() ;
//......... -
$dow = date('l');
if($dow == 'Monday') {
$project = $_GET['project'];
while($dow !== 'Friday') {
exec('buildProject');
$dow = date('l');
}
exec('submitProject');
execInBackground('celebrate');
while(!isset($project_approval) {
exec('wait');
}
if($_GET@['project_approval'] == 'approved') {
exec('celebrateGoHome');
}
elseif($_GET['project_approval'] == 'nevermind') {
exec('burnItAllDown');
}
else{
exec('hangHeadGoHome');
}
}