Welcome, Guest. Please login or register.
October 30, 2014, 10:58:10 AM

Login with username, password and session length
Search:     Advanced search
RPGFan Community Quiz!
Persona 3 FES Quiz is now OVER!
Winner was user: Monsoon!
335178 Posts in 13724 Topics by 2200 Members
Latest Member: Rgeneb1
* Home Help Search Login Register
+  RPGFan Message Boards
|-+  The Rest
| |-+  General Discussions
| | |-+  What's the haps?
« previous next »
Pages: 1 ... 818 819 [820] 821 822 ... 900 Print
Author Topic: What's the haps?  (Read 724358 times)
Holykael1
What is a man?
Posts: 696


Member
*


View Profile

Ignore
« Reply #12285 on: April 01, 2014, 08:11:39 PM »

Quote
Those were obnoxiously puzzley and dealing with strings, lists and things of the sort was way more complicated than it needed to be.

Oh. Your prof was making you rewrite the Racket common library as a learning experience, I'm guessing. Scheme also has more typical iterative loops (although they're not as robust as what Common Lisp has, from what I remember.), and whether you use recursion or a loop is entirely down to which is going to work better in that situation.

Did they even get into closures at all? The fun stuff you can do with functions-as-objects?

The advantage with Scheme and other LISPs is that you have tail call optimization, meaning that if you DO need a recursive function, you can set it up so that it won't eventually blow up the call stack.  

I  didn't even get into stacks.. That subject was to introduce you to programming concepts(It was literally called Introduction to programming, only on the second semester right now I have actual regular ass "Programming" as a subject(, we never really went indepth with anything. We learned to recursion, iteration, how much resources certain algorithmns cost in relation to other more effective alternatives, manipulation of lists, strings, vectors, create abstractions and we also dealt with using procedures as arguments, functions with an unlimited set of arguments. There was a lot of emphasis on dealing with "pairs" aswell.
Im only starting to learn about stacks with x86 assembly with Push and Pop instructions, just now,  im basically 2 months into the 2nd semester.
Just to give you an example, this is as complex as we got:
Code:
(define anonimizar!  ;This is a program meant to censor any given element of a list
   (lambda (frase lista)
     (letrec ((limpa
               (lambda (i nchar)
                 (if (positive? nchar)
                     (begin
                       (string-set! frase i #\#)
                       (limpa (add1 i) (sub1 nchar))))))
                    
              (aux
               (lambda (i nome)
                 (if (>= i 0)
                     (if (string-ci=? nome (substring frase i (+ i (string-length nome))))
                         (begin
                           (limpa i (string-length nome))
                           (aux (sub1 i) nome))
                         (aux (sub1 i) nome))))))
       (if (not (null? lista))
           (begin
             (aux (- (string-length frase) (string-length (car lista))) (car lista))
             (anonimizar! frase (cdr lista)))))))
« Last Edit: April 01, 2014, 08:16:02 PM by Holykael1 » Logged

Annubis
Posts: 3663


Something something like a tiger

Member
*


View Profile

Ignore
« Reply #12286 on: April 01, 2014, 08:57:48 PM »

It's always weird to see code in English with pieces of other languages for the variables and such.
I can't recall the last time I coded in French =/ No fun allowed at work I guess.

Just sounds so selfish if you ask me. :P

WELL AT LEAST THE BUTTER DIDN'T DUMP HIM TO GO OUT WITH HIS FRIEND

=P
 
« Last Edit: April 01, 2014, 10:30:02 PM by Annubis » Logged
Klyde Chroma
Lvl. 7 Fruity Ninja and Dincrest groupie
Posts: 1585


If Hitler was an introvert, he'd be me.

Member
*


View Profile Email

Ignore
« Reply #12287 on: April 01, 2014, 09:55:13 PM »



I'd rather butter my bread my whole life, enjoy each day and die at 55 than deprive myself of it until I die, miserable, at 85.

Well in my case I won't be buttering my bread again for awhile like I did last night! For me, that type of indulgence is counter-productive to daily happiness. But for this one brief instance it was fun and sobering in some respect.

The last vice left for a ninja like me is cigarettes. I have quit way too many other things in my life that are bad for me. The smokes are my "butter" if you please.


Just sounds so selfish if you ask me. :P

My boyfriend had to start watching his blood pressure, so I had to tell him to cut down on cholesterol. I make sure he doesn't eat too much of the foods he shouldn't. If he said something like that to me I'd probably slap him (not really, say no to violence) and make an ultimatum.

I love him too much to lose him over something like butter.

EDIT: Also relevant, I just lost my grandmother who was only 61. She smoked, despite having lung problems like COPD. She was too young to go, and she had nothing but regrets at the end over it.

I agree on the butter note. When it comes to food you have options. You can learn to love eating and living off of very healthy nourishment.

But as I said, smoking is my vice as well so I sympathize with your Grandmother. I can't say, even if a doctor assured me it would end in my death if I continued puffing away, I would even consider quitting.

I am sorry to hear about your Grandmother though. It is indeed a tragic end when brought to fruition faster as a result of your own vices, against your better judgement. I don't wish that scenario for anyone. I know all too well what it is to be a victim of your own design despite how illogical and insane it may seem. Worst of all, in such a instance you KNOW within yourself how selfish the decisions you make appear which leads to all sorts of internal grief.

Your Grandmother will be in my prayers this night and you have my sympathies on that note Goose.

NOTE: I survived the 12 mile (give or take) run!!! That had to burn up a cookie or two... I feel a bit better.
Logged

Klyde Chroma / XBox Live Network
Triscal-Goddess / PSN
 Remember, DON'T do drugs... an owl will tear your face off.
MeshGearFox
Posts: 8636


HERE ON RUM ISLAND WE DO NOT BELIEVE IN RUM!

Member
*


View Profile

Ignore
« Reply #12288 on: April 01, 2014, 10:45:59 PM »

Holykael1, that looks weird to me and I forgot french. Can you give a more in-depth explanation of what it's supposed to do?

Sample input and output would be helpful.
« Last Edit: April 01, 2014, 10:48:30 PM by MeshGearFox » Logged

o/` I do not feel joy o/`
o/` I do not dream o/`
o/` I only stare at the door and smoke o/`

Lard
Posts: 5720


Member
*


View Profile

Ignore
« Reply #12289 on: April 01, 2014, 11:52:10 PM »

I got into teacher's college in Ontario.  /(^^)/

Nice timing as this is the last year it will be a one year program.

Next year they're expanding it to two years and cutting the applicants in half, so it feels nice to sneak in under the wire.
Logged

I avoid online multiplayer because my brain still works.
ultra7k
Posts: 332


Member
*


View Profile

Ignore
« Reply #12290 on: April 02, 2014, 02:07:24 AM »

I got into teacher's college in Ontario.  /(^^)/

Nice timing as this is the last year it will be a one year program.

Next year they're expanding it to two years and cutting the applicants in half, so it feels nice to sneak in under the wire.

Congrats! I did my program in BC a few years back. Unfortunately, due to an over saturation of teachers and poor timing, I never did get to work as a teacher. Hope you enjoy it, because that year goes by FAST.

What are you specializing in?
Logged
Dice
Super Happy Fun Super Girl
AMG A GIRL
Posts: 10619


Tawdry Hepburn

Member
*


View Profile WWW

Ignore
« Reply #12291 on: April 02, 2014, 02:22:16 AM »

I got into teacher's college in Ontario.  /(^^)/

Nice timing as this is the last year it will be a one year program.

Next year they're expanding it to two years and cutting the applicants in half, so it feels nice to sneak in under the wire.

You're telling me.  I was actually really considering going for it but got really disheartened by that announcement (and about 5 friends of mine are 'certified' to teach but took forever to find a non-supply teaching job).

I'm really happy you got in though.  You've got tons of experience by this point I bet. :)

Have a job interview at the university library that I really want to work at on Friday. Took the day off work to attend this interview, and here's hoping it goes well! I really really really want this job, pay increase not withstanding!

I really hope you get it!  A friend of mine's mum went from Teacher > Librarian for her school -- says it was the best switch ever for her.  Do well, take a shot of somethin' funny for that liquid courage, be confident, research some possible questions and answers (actually saved my butt a few times; or at least kept me sharp), and tell us how you did! :)
Logged

http://society6.com/Dice963
http://www.redbubble.com/people/dice9633

Support your local Dice (and pitch her ideas)!
Tomara
Posts: 2130


Member
*


View Profile

Ignore
« Reply #12292 on: April 02, 2014, 03:20:42 AM »

Quote
EDIT: Also relevant, I just lost my grandmother who was only 61. She smoked, despite having lung problems like COPD. She was too young to go, and she had nothing but regrets at the end over it.

My dad is approaching that age as well and honestly, I'd be surprised if he reached 70. No COPD, but he does have a bunch of heart problems and since he hurt his leg last year (the bone won't heal because he's so unhealthy) he moves around even less. Rarely leaves the house. I have yelled, begged, cried and encouraged, but he won't change. It sucks, because my dad used to be pretty badass. Now you could just replace him with a big rock and no one would notice. No wait, we would, because rocks don't yell or complain.

Mom won't quit smoking either. She did promise she'd only do it in the garage after painting the living room lovely light colours, but that didn't even last a day. You know, back when I still lived at home, my Wii was yellow.

Worst part is, they actually have some pretty good examples of how wrong things can go. My aunt, one of dad's elder sisters, also died at a fairly young age. Basically ate herself to death.

I'm fine with people living the way they want to live, but there is nothing great about being unhealthy all your adult life. Those people aren't happy because they eat as much as they want, they're miserable because they are struggling with diabetes to the point of losing feet or eyesight. Because it feels like they're having a heartattack whenever they go up the stairs. Because they can't keep up with the kids let alone grandchildren. They hate either themselves for it or the world for turning them into what they are. Or maybe they'll just hate everyone and everything and become isolated from society. That happens too.

Anyway, not saying people should just drop everything that unhealthy, because there is no need for that. Moderation is an awesome thing.
Logged
Dice
Super Happy Fun Super Girl
AMG A GIRL
Posts: 10619


Tawdry Hepburn

Member
*


View Profile WWW

Ignore
« Reply #12293 on: April 02, 2014, 03:58:12 AM »


I'm fine with people living the way they want to live, but there is nothing great about being unhealthy all your adult life. Those people aren't happy because they eat as much as they want, they're miserable because they are struggling with diabetes to the point of losing feet or eyesight. Because it feels like they're having a heartattack whenever they go up the stairs. Because they can't keep up with the kids let alone grandchildren. They hate either themselves for it or the world for turning them into what they are. Or maybe they'll just hate everyone and everything and become isolated from society. That happens too.

THIS.  Oh man.

My dad is really paying the piper now because of it.  He had a sort of minor "elephantitis"-like problem (though nothing too severe) going on with his leg that he never got checked out (but he just had it operated on now when it 'got worse'), he constantly smokes (pack a day at least), ate poorly (now he eats better, but still eats like 2 chocolate bars for dessert), he has really high blood pressure (and has since had two -- albeit minor -- heart attacks and about 5 new prescription medicines to keep it under control), an infected wound he needs to get bandages changed for---  SO YES YOUR FUCKING LIFESTYLE MATTERS.

I don't doubt that in a past life my dad was on some battlefield, swinging an axe into the enemy army with three arrows sticking out of him -- he's just that kind of 'tough' and hard-to-kill guy, but MOMENTO-FUCKING-MORI.  It bugs me that he's going through so much, he's finally retired but now he's at medical appointments anywhere from 2-5 times a week.  What's the point when just about all of it could have been avoided?  I help him as much as I can, but I've told him I have little sympathy.  I'm not trying to sound like an ass, but I've been telling him for over 10 years to 'smarten up' about some of his nastier habits, and now they've come to really bite him in the ass.

It's ironic, but the whole issue with girls' perceived higher expectations to be slender and beautiful and all that garbage have probably made me more conscious about what I eat, how I live, or constantly wanting to do some sort of physical activity.  I wasn't really born with a staggering amount of vitality to begin with, that makes me want to keep my body healthy in other ways.

Maybe it's also people feel somewhat immortal (you're the hero of your own life, right? You can't die!), but then that 'one thing' can happen to you and tell you otherwise.  I definitely think that 'one thing' for my dad was having two heart attacks. 

Enough in this world can kill you; I'll be damned if it's something I do to myself that contributes.
Logged

http://society6.com/Dice963
http://www.redbubble.com/people/dice9633

Support your local Dice (and pitch her ideas)!
Kevadu
Posts: 3765


Some guy

Member
*


View Profile Email

Ignore
« Reply #12294 on: April 02, 2014, 05:26:53 AM »

That's a very good point, Dice.  Poor living habits don't just make you suddenly drop dead at 55.  It tends to be a long and drawn-out process.  And no matter how much you might think, "I don't care if I die at 55" now, when you're actually 55 I seriously doubt you're going to end it all just because you have high blood pressure and diabetes.  Especially if you have a family.  No, instead you're going to live with it.  And it's going to suck.

On the flip side of the coin, I know a guy who's over 75 and still incredibly healthy and energetic.  He goes mountain climbing regularly.  I can only hope to be doing so well when I'm that age, but it seems like something worth shooting for...
Logged

Lard
Posts: 5720


Member
*


View Profile

Ignore
« Reply #12295 on: April 02, 2014, 06:11:36 AM »

You're telling me.  I was actually really considering going for it but got really disheartened by that announcement (and about 5 friends of mine are 'certified' to teach but took forever to find a non-supply teaching job).

I'm really happy you got in though.  You've got tons of experience by this point I bet. :)

Thank you! :D

I had no idea if I'd get in or not because my grades are good, but not spectacular. I'm guessing it was the experience that got me in.

As for jobs.....well Ontario apparently has some sort of a program going with BC. My friend at Ottawa U is doing Teacher's College this year and she was telling me about it. I don't know enough about it at this point, but I will be bugging her about it in a year's time.

Additionally, there's always international schools abroad. I like living in other countries and international schools have good schedules, don't treat you like crap (from what I've heard) and pay very, very well.

Congrats! I did my program in BC a few years back. Unfortunately, due to an over saturation of teachers and poor timing, I never did get to work as a teacher. Hope you enjoy it, because that year goes by FAST.

What are you specializing in?

Thanks! :D

I'll specialise in English and hopefully History. So what are you doing now if you're not teaching?

Also, sorry about your grandma, Star :(

It was a shock when I lost mine and it took a long time to get over.
« Last Edit: April 02, 2014, 06:13:34 AM by Lard » Logged

I avoid online multiplayer because my brain still works.
Holykael1
What is a man?
Posts: 696


Member
*


View Profile

Ignore
« Reply #12296 on: April 02, 2014, 09:45:32 AM »

Holykael1, that looks weird to me and I forgot french. Can you give a more in-depth explanation of what it's supposed to do?

Sample input and output would be helpful.

It's Portuguese not French xD.
Ok I will translate the objective of the exercise as best as I can.
Ok so imagine you have a Sentence "John and Ann will go to Tony's birthday" as a string, you give the program that string and a list of names like (list "John" "Ann"), the program will censor those names(using # as a replacement for each character in the name) in the sentence and return "#### and ### will go to Tony's birthday".
The program will accept a string and a list as arguments and censor the elements of said list if they are present in the string.
Logged

ultra7k
Posts: 332


Member
*


View Profile

Ignore
« Reply #12297 on: April 02, 2014, 12:38:48 PM »

You're telling me.  I was actually really considering going for it but got really disheartened by that announcement (and about 5 friends of mine are 'certified' to teach but took forever to find a non-supply teaching job).

I'm really happy you got in though.  You've got tons of experience by this point I bet. :)

Thank you! :D

I had no idea if I'd get in or not because my grades are good, but not spectacular. I'm guessing it was the experience that got me in.

As for jobs.....well Ontario apparently has some sort of a program going with BC. My friend at Ottawa U is doing Teacher's College this year and she was telling me about it. I don't know enough about it at this point, but I will be bugging her about it in a year's time.

Additionally, there's always international schools abroad. I like living in other countries and international schools have good schedules, don't treat you like crap (from what I've heard) and pay very, very well.

Congrats! I did my program in BC a few years back. Unfortunately, due to an over saturation of teachers and poor timing, I never did get to work as a teacher. Hope you enjoy it, because that year goes by FAST.

What are you specializing in?

Thanks! :D

I'll specialise in English and hopefully History. So what are you doing now if you're not teaching?

Also, sorry about your grandma, Star :(

It was a shock when I lost mine and it took a long time to get over.

Also sorry to hear about your grandma Star...

Kael, I specialized in History and English at the secondary level as well! Since I'm not teaching now, (graduated from B.Ed in 2010) I managed to find work in Education Management at the college level. Granted, it's education management in name, but I'm responsible for handling and vetting copyright for instructors that want to put together a coursepack based on a bunch of other articles. I've actually been fortunate as it kind of happened to fall into my lap. When I started out at the college, I didn't think I'd be here for more than a year or so, but it has slowly grown to three.

It's a lot less glamorous than it sounds, but it pays the bills, and I still get to be a public sector employee and all the benefits that come with it. That being said, I have an interview for a better paying position at the university here doing something similar.

In B.C. It's pretty depressing unless you teach French/Music. Those are the teacher candidates that get hired right out the gate. For the rest of us, it's a mix of luck (aka who you know) and trying to fight your way to the top of the pile.

One of my friends graduated the year before I did, she still has not found work as a teacher. As it is, she's working on her +15/Masters degree in special ed, and still no bites.
Friend 2, who has a masters degree in history and can teach French is living the good life. Turns out during his interview, the person knew his mom and well, the interview didn't go much further than "here's your orientation date".
Friend 3, who graduated the year after I did specializing in elementary school, has just managed to land a TOC job.

On top of that, most districts here seem to like to hire a lot of retired teachers for the TOC pool, so that didn't really help either.

A ton of other people I went to school with ended up moving overseas to teach English. If you can land a gig a Canadian accredited school then that's a sweet gig because you are paid like a Canadian teacher and you have lower costs of living. In most cases they pay for your rent and such.

Anyways I had bills, no interviews and I needed a job other than my part time gig at a bookstore so I ended up going down the college staff route, but hopefully your luck is better than mine.
Logged
Annubis
Posts: 3663


Something something like a tiger

Member
*


View Profile

Ignore
« Reply #12298 on: April 02, 2014, 12:54:13 PM »

Holykael1, that looks weird to me and I forgot french. Can you give a more in-depth explanation of what it's supposed to do?

Sample input and output would be helpful.

It's Portuguese not French xD.

Yeah, but I'm French. It's me relating.
(and I thought it was Spanish... close enough)
Logged
Starmongoose
Contributing Editor
Posts: 5299


Vicious Feminist

Member
*


View Profile

Ignore
« Reply #12299 on: April 02, 2014, 12:56:53 PM »

Holykael1, that looks weird to me and I forgot french. Can you give a more in-depth explanation of what it's supposed to do?

Sample input and output would be helpful.

It's Portuguese not French xD.

(and I thought it was Spanish... close enough)

Are you trying to give him a heart attack? :P
Logged

SAVE THE PENGUIN!



Here to suck the fun out of games.
Pages: 1 ... 818 819 [820] 821 822 ... 900 Print 
« previous next »
Jump to:  



Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!