Originally posted by Troll
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
A challenge to the coders here
Collapse
X
-
-
Originally posted by Troll View Postvar pulse = 0;
while (pulse>0) {
shag(pulse);
pulse++;
}No, because pulse starts of as zero, so the while clause is never true, so pulse never increases. He's dead Jim.Originally posted by Bacchus View Postwouldn't you end up shagging until your stack overfloweth?
Fail. Why on earth would you ever allow the woman to even touch the remote control?Originally posted by minestrone View Postpublic void testWoman( Male me , Female woman) {
assertEquals( me.wantsBeer() , woman.getsBeerWhenManWants() ) ;
assertEquals( me.wantsSex() , woman.getsNakedWhenManWants() ) ;
assertEquals( me.wantsFootballOnTv() , woman.getsSkyControllerWhenManWants() ) ;
}
I strongly typed there, no polymorphism in that method.
If Roses are redCode:METHOD valentine_poem. DATA: lr_descr TYPE REF TO cl_abap_typedescr, lr_roses TYPE REF TO zcl_flowers, lr_violets TYPE REF TO zcl_flowers. lr_roses = zcl_flowers=>factory( zcl_flowers=>c_roses ). lr_violets = zcl_flowers=>factory( zcl_flowers=>c_violets ). " Poem logic IF lr_roses->is_permitted_colour( 'red' ) EQ abap_true AND lr_violets->is_permitted_colour('blue') NE abap_false. lr_descr = cl_abap_typedescr=>describe_by_data( me ). ASSERT lr_descr->absolute_name EQ 'ZCL_HAIKU'. ENDIF. ENDMETHOD.
And violets sometimes blue
This is a HaikuDown with racism. Long live miscegenation!Comment
-
-
FTFYOriginally posted by Troll View Postvar pulse = 140;
var stillWarm=true;
while ((pulse>0)||(stillWarm)) {
shag(pulse);
pulse--;
}Comment
-
Talk about overcomplicating your code!
while (true) {
shag();
}
I believe this has the same effect.Comment
-
Never has a man been heard to say on his death bed that he wishes he'd spent more time in the office.Comment
-
Leaving aside that would do nothing, I've optmised it using MMX assembler for you:Originally posted by Troll View Postvar pulse = 0;
while (pulse>0) {
shag(pulse);
pulse++;
}
mov esi, women
mov ecx, pulse
pxor mm7,mm7
loop:
movq mm0, [esi]
pshagusw mm0, mm7 ; shag 4 women simultaneously
add esi, 8
dec ecx
cmp ecx, 0
jz loopWill work inside IR35. Or for food.Comment
-
And you wonder why you're not getting any!Originally posted by VectraMan View PostLeaving aside that would do nothing, I've optmised it using MMX assembler for you:
mov esi, women
mov ecx, pulse
pxor mm7,mm7
loop:
movq mm0, [esi]
pshagusw mm0, mm7 ; shag 4 women simultaneously
add esi, 8
dec ecx
cmp ecx, 0
jz loop
Comment
-
easy to see why there are so many sad lonely singletons on this site.
Hard Brexit now!
#prayfornodealComment
-
Implementing Singleton in C#Originally posted by sasguru View Post
easy to see why there are so many sad lonely singletons on this site.
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment