SPAM random annoying things

rynnor

Rockhound
Moderator
Joined
Dec 26, 2003
Messages
9,353
Assembler is a bit OTT, probably. Any language will do, really, as long as the tooling and online resources are good. Python has an excellent web-based interactive tutorial, for example.

I fancied Basic as the language most of us started on in the day - Microsoft do a free 'MS Small Basic' which is a cut down version of basic for beginners and lets you slowly progress to VB then onto C# etc.
 

Moriath

I am a FH squatter
Joined
Dec 23, 2003
Messages
16,209
We started on Ada when I did mine twenty years ago. Non of this flashy java muck.
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,925
Because people who learn C# think the solution you posted is in any way optimal. Fuck me that's terrible. You do a per-character copy in reverse and then do a full string compare? Two iterations for something that needs exactly one pass is rubbish old bean.

The best way I can think up requires a byte array (assuming ascii) half as long as the input array and one pass over the input array.

issa trick no? half of input stringlength -1 or something and compare the bits. should be doable in one pass I think but I've forgotten most of my C. I was going to say chop the input in half and count bits, but that would also allow asdfasdf or asdfzasdf eg wrongness :(
 

mooSe_

FH is my second home
Joined
Sep 5, 2008
Messages
2,904
tbh in the exam it wouldn't have mattered if the code was really inefficient. In all the coursework you get a better mark for writing good code, but in this stupid exam it just had to compile and output the right thing. You could've written the most horrifically inefficient unreadable solution and would've still got 100% if it compiled without any warnings.
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,925
that's shit man. can't you complain or something? in my courses we get marked down if we don't use good design and standards and shiznit and stuff/
 

mooSe_

FH is my second home
Joined
Sep 5, 2008
Messages
2,904
Well it was just this 1 exam which in the grand scheme of things doesn't actually count for that much so it's not really worth complaining about imo. I'll still be able to pass if all my coursework is ok because that counts for 90% of it (and is actually marked properly!). This was the second time they'd given us this exam because the first time they set the question too hard and everyone failed. This time most people seemed to have passed so it's just me whining because I suck.
 

Billargh

I am a FH squatter
Joined
Oct 29, 2007
Messages
6,481
Magnum Ammo on Bad Company 2, what an overpowered bag of fucking balls, the fact you need like 40h+ playtime before you reach it makes it twice as fucking balls.

And on that note, getting into games after they've been out years and not many people play any more.
 

Edmond

Is now wearing thermals.....Brrrrr
Moderator
Joined
Apr 21, 2008
Messages
11,537
Went into a shop today to get a drink and something to eat and they guy in front of me was buying a can of strong cider (white lightning or something like it) anyway he had really heavy booze breath already, you could smell it all around him. He left the counter and I stepped up to pay, looked at the guy behind the counter and we both gave each other that look of WTF!. (it was midday)

As I left I followed this guy out and he got into a car next to my van, I looked across to see him put his seat belt on, open the can of cider and guzzle about half of it, he started his car and drove off.

I could not believe it, and he will be the sort of idiot that will never get caught either
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,925
Well it was just this 1 exam which in the grand scheme of things doesn't actually count for that much so it's not really worth complaining about imo. I'll still be able to pass if all my coursework is ok because that counts for 90% of it (and is actually marked properly!). This was the second time they'd given us this exam because the first time they set the question too hard and everyone failed. This time most people seemed to have passed so it's just me whining because I suck.

stll harsh though. hope you make it next time. in my school we need passing grades for every single thing; no compensating lows with highs or any of that.
 

DaGaffer

Down With That Sorta Thing
Joined
Dec 22, 2003
Messages
18,517
Not knowing who's going to be running your company a month from now. Uncertainty when you're doing budgets is always fun.
 

Yoni

Cockb@dger / Klotehommel www.lhw.photography
Joined
Dec 11, 2003
Messages
5,025
Buying a new dress for Xmas party and the shop only demagnetising said dress so I couldn't wear it ;(
 

soze

I am a FH squatter
Joined
Jan 22, 2004
Messages
12,508
I think they left the tag on it and only deactivated it.
 

Chilly

Balls of steel
Joined
Dec 22, 2003
Messages
9,047
yeah but you need to be punctuation agnostic, which means you cant actually predict where the middle of the string is.
 

Bodhi

Once agreed with Scouse and a LibDem at same time
Joined
Dec 22, 2003
Messages
9,346
When the missus is pissed off with you as you haven't booked the time off for her birthday. Which is in February.

Lol wut?
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,925
yeah but you need to be punctuation agnostic, which means you cant actually predict where the middle of the string is.

m04r tricks. I actually think I had this too when I had to write and compare something like 10 different sorting algos. did that in Java though.still amazed that my fast sorts could do like a billion objects that fast, where as the slow sorts were rather...slow :)

edit: actually it doesn't matter if you don't know the middle as long as you're only off by one.
 

Users who are viewing this thread

Top Bottom