Create a function that describes your life, here is mine:public int alive(int age, char ethnicity, boolean status ) {
boolean kissles_virgin = status;
if(age == 30 && kissless_virgin == true) {
System.out.println("It's time to kill yourself.");
return 0:
}
if(!kissless_virgin) {
System.out.println("Congrats you finally got a social life.");
return 1;
}
else {
alive(age+1, "Arab", 0);
}
return 0;
}
[/quote]
i think you need to go outside, anon.
go for a jog or something.
Char ethnicity? You mean char *ethnicity
pretty muchwhile(1)
{
//Todo
}
print_string "it just werks";
>>52162024
False equivalence
Having sex does not grant you asocial life.
You truly are a lonely virgin, aren't you?
>>52162024
>> public
At least make ur fucking life protected, OP
>> YOLO
>>52162024
What's the point of the return statement if it's always going to return 0?public void alive(..){
Seems better.
LinkedList<Babes> babesInBar = bar.getBabes();
for (int i = 0; i < babesAtBar.length; i++){
if (babesAtBar.get(i).isSingle()){
this.makeEyeContact(babesAtBar.get(i));
this.say("Hey there, can I get you a drink?");
}
else {
this.checkPhone();
}
}
if (babesAtBar.length==0) {
this.orderWellSpirits();
this.goHome();
this.playVidya();
}
>>52162167
Not a single friend man. Almost 30 and still not kissed a girl.
>>52162250
>define babesInBar
>call babesAtBar
nowyoufuckedup.jpg
>>52162251
Be my friend, OP :D
import life
import soul
import random
import os
LIFE = life.LIFE
if soul is not False and soul is not "Enlightened":
soul.deploy(random.choice(LIFE.location))
try:
born = soul.birth()
except AbortionError as e:
soul.disassociate()
soul.free(LIFE)
if born:
# lets import soul registry characterisitcs
from soul import seed
SEED = seed(os.urandom(9241412))
person = soul.get_entity(born)
# initialize the lottery for human soul; good luck!
person = person.create("human", entropy=SEED)
if person:
for attributes in person.BASE_ATTRIBUTES:
print(attributes)
# We have a person, let's register it for death
if person is not "Dead":
# We don't want to implement judgement boilerplate
# let's import it
from soul import judgement
assigned_death = person.assign_death(
cause=LIFE.generate_future_event(SEED, fatal=yes)
age=random.choice(soul.get_random_age(SEED),
painful=False, # simple painful boolean
modifier=LIFE.natural_events, # let nature kill this human
)
if assigned_death is not False:
# Death date is registered, we can do further processing
assigned_death.destiny_mod = True
assigned_death.religious_mod = True # religious death
assigned_death.mutable = True # person allowed to change the assigned_death
else:
# Death date is not registered, force it
assigned_death.force(SEED)
# Okay we havea person created, lets active it
while LIFE.UNIVERSE is not False:
# lets insert the "born" human to the Universe
LIFE.auto_insert_instance(person)
# Parent modifier can be set here; we will set here
LIFE.random_pair("human", assign_birth=person, twin_chance=float(0.12))
# Let's go!
LIFE.run()
>>52162365if soul is not False
Absolutely no reason whatsoever to not useif soul is True
>>52162434
True, sorry I'm a bit overobse at times.
I also forgot to call judgementif person is not "Dead":
# We don't want to implement judgement boilerplate
# let's import it
from soul import judgement
assigned_death = person.assign_death(
cause=LIFE.generate_future_event(SEED, fatal=yes)
age=random.choice(soul.get_random_age(SEED)),
painful=False, # simple painful boolean
modifier=LIFE.natural_events, # let nature kill this human
judgement=judgement, # get rid of boilerplate
)
if assigned_death is not False:
# Death date is registered, we can do further processing
assigned_death.destiny_mod = True
assigned_death.religious_mod = True # religious death
assigned_death.mutable = True # person allowed to change the assigned_death
else:
# Death date is not registered, force it
assigned_death.force(SEED)
function life()
while true do
print("fugg")
end
end
>>52162251
put yourself out there
void mySortFunction(int* list, const int numElements)
{
int i, temp, newIndex;
for(i = 0; i < numElements; i++)
{
temp = list[i];
newIndex = rand() % numElements;
list[i] = list[newIndex];
list[newIndex] = temp;
}
}
Sometimes I take a very long time finishing things
>>52162024#include <iostream>
#include <string>
#include "person.h"
using namespace std;
void printChancesOfSuccess(Person p){
if(p.soUglyItLiterallyHurtsTheEyesAndNoOneEverDaresToComeCloser())
cout << "Sorry bro, you're fucked.\n"
<< "If I had eyes to see your disgusting face, i'd delete myself.";
else if(p.learnsFast() ||
p.isDetermined() ||
p.isHealthy())
cout << "Go ahead. You have a brilliant future full of money, achievments and pussies."
else
cout << "Meh, who knows.";
}
int main(){
Person me(23, MALE, WHITE|GIPSY, LEARNS_FAST|IS_DETERMINED|IS_HEALTHY|SO_UGLY_IT_LITERALLY_HURTS_THE_EYES_AND_NO_ONE_EVER_DARES_TO_COME_CLOSER);
printChancesOfSuccess(me);
return 0;
/*Sigh*/
}
static void life(){
}
>>52162024
>uses if boolean == true
>then uses if !boolean
jesus get a standard
55 push %rbp
48 89 e5 mov %rsp,%rbp
b8 ff ff ff ff mov $0xffffffff,%eax
5d pop %rbp
c3 retq
66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
>>52162968
>standards
this does not accurately represent my life
>>52162024while(true){
DailyRoutine("Soul");
}
>>52163006
oh
well then that kinda makes sense then
>>52162980
return -1?
also
>compiled c
>objdump it
>post on /g/
Just write it in asm to begin with
>>52163098
thats my life, useless and lazy
what language will god use to automate everything?
feel free to post yor own make up languages
I hope god provides python bindings
>>52163123
holy-c
>>52162138
Holy shit, this.
More accurately:int life_plan(int meToday, int myGoals) {
for (int i=meToday; i<myGoals; ){
//TODO: Figure out steps to goals
}
return SUCCESS;
}
>>52163129
what language features?
>>52163242
http://www.templeos.org/Wb/Doc/HolyC.html
>>52163242
low level interface to talk to God.
def goals_in_life():
raise NotImplementedError()
>>52162024
well, that's a very specific function. you seem unable to grasp or at least put into words the nuance of life.
>>52163274
What do you use, electrons?
>>52162812
>gives a copy of Person to the function instead the person itself.
add IS_BETA in your chain of traits.
>>52163359
>picking on this fast typed, non serious code
I will create one for you with IS_AUTISTIC.
>>52162024float proximity_to_pussy(float distance) {
return (distance <= 0) ? NOT_A_VIRGIN
: proximity_to_pussy(distance / 2.0f);
}
void findGF()
{
}
>>52162138
underrated code
>>52162024
why do they shill mr robot every day?
>>52162024
probably wont compileshort life(short age, bool In_A_Relationship, bool Finish_College, bool neet, bool Is_Rich){
if(age >= 30){
if(In_A_Relationship == false){
if(Finish_College == false){
return 1; //kill thy self
} else {
cout << "Get paid, get laid senpia" << endl;
return 0; //happiness
}
} else {
if(Is_Rich == true){ //if the qt3.14 has money
cout << "Don't fuck it up" << endl;
return 0; //happiness
} else {
if(Finish_College == false){
cout << "Did you really not finish college for a gril?" << endl;
cout << "Return your copy of SICP, you're not worthy." << endl;
return 2; //depression
} else {
cout << "Enjoy life" << endl;
return 0; //happiness
}
}
} else
return -1; //relax and try again later
}
}
>>52163900
and... neet is an unused bool
>>52162434if soul is True
useif soul
>>52162188
>wat is exit codes.
>>52162024int money = fuckBitches();
>>52162175
>I don't have anything to hide XD
>function
>not class
Why?
All of these == true, and == false.
Too many Indian programmers ITT
local function ontroll(inst, attacker, target)
if target.components.liberal and not target.components.liberal:IsFlaming() then
if target.components.liberal and target.components.liberal:IsFemenist() then
target.components.liberal:Burned()
else
if target.components.liberal and target:HasTag("faggot") and target:HasTag("clockmaker") then
SpawnPrefab("muhinevntionpng")
end
end
printf("shit\n") ;
boolean happy = true;
if(!happy) happy = true;
>>52164677
Is this real?
>inconsistent spacing
>inconsistent output string
>is Tweeter supposed to also be Tweet?
>poor indentation
>assigning variables inside the if expression
>actually using namespace std;
>>52162024
>bool gender
>>52162250
If that's Java then you've fucked up in several ways
the class should be 'Babe', 'Babes' implies that the the LinkedList consists of a class that contains yet another List or some kind
the for-loop would be much better asfor (Babe babe: babesInBar) {
//etc
}
Moreover, LinkedLists do not have a .length field, a .size() method does exist though
you should be using isEmpty() anyway
Actually, why are you using a LinkedList in the first place?
>>52165187
Beta's only deal with 1 female at a time
>>52164990
my company demands we do that, its in our coding standards
>>52162024exit()
class Year
{
public:
Year(int year) : _year(year) { }
void start()
{
std::cout << "Happy New " << _year << ", anon :) ! ";
}
private:
unsigned int _year;
};
int main(int argc, char** argv)
{
Year* twoKSixteen;
twoKSixteen.start();
}
>>52166681
Fuck, it's ->, not . .
>>52162555
Yeah going into random bars to speak with random normies is a great idea!
print("Now Tayne I can get into!"
>>52162024unsigned int ackermann(unsigned int m, unsigned int n)
{
calls++;
if (m == 0)
return n + 1;
else if (n == 0)
return naive_ackermann(m - 1, 1);
else
return naive_ackermann(m - 1, naive_ackermann(m, n - 1));
}
>>52165076
>>assigning variables inside the if expression
When people called him out on this, his excuse was "i didnt have enough characters".
Turns out he did have enough characters, and if you really needed to squeeze extra space, you can remove a lot of the spacing.
>>52168606
Or just post an image.
>>52168668
Or just not post it.
>>52164677
Rate my echo chamber implementationint isNegative(char *input){
return 1; //does a bear shit in the woods?
}
int block(tweet *post){
if(isNegative(post->content))
return 1;
else return 0; //deprecated
}
& & &
int life(void) {
return EXIT_FAILURE;
}
>>52162024
Is this Java? Normally I'd be too much of a baka to tell, but I was working on the codecademy course for it yesterday.
>>52170540
yes but the System.out.println is really the only thing that gives it away
>>52163982
You should only do that when it actually makes sense, eg. if the variable is named something like "running" or "isError"
"soul" doesn't fit the bill
>>52162024
>java function describing your life
i'm so sorry
>>52162024
Back for more Java autism, didn't even read the OP last time
Why make an entire new variable for kissless_virgin? Just pass it in as 'boolean kissless_virgin' if it's not gonna be used for anything else
in the second if-else:
Why is the 'return 1;' on a separate line?
Why are there redundant braces on that else statement?
Why is there an else statement in the first place? You could remove it and it'd behave the exact same way while being more readable
Why are you returning some arbitrary undefined undocumented integers?
at very least use constants, eg.public static final int KILL_YOURSELF = 0;
pubic static final int SOCIAL_LIFE = 1;
...
return KILL_YOURSELF;
final class Me {
}
>>52162024
>having IO in a function that does processing
JUST
>>52163900
>mixing camelcase with underscores
>capitalising first letters
>some variables don't follow naming convention at all
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>52171114
>muh side-effecting
>>52162024
so just aging by one year and being arab makes you not a kissless virgin anymore?
pls learn at least a bit of coding before you make shitty programmiing jokes
hitler did nothing wrong
>>52162024:(){ :|: & };:
#!/bin/sh
kill $(pidof yourself)