|
I know this question is kind of stupid, maybe it's a just a part of writing code but it seems defining simple functions can really hurt performance severely... I've tried this simple test:
def make_legal_foo_string(x): return "This is a foo string: " ...
Started by ooboo on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I actually find your example kind of silly in many ways - a function that... .
Many factors (performance, readability, maintainability) feed into the equation.
Figuring out what to make into a function and what to just include inline is something of an art .
|
|
Hi all,
Despite an earlier question ( asked here ), our project is constrained to using glDrawPixels, so we have to do some hackery.
One of the feature requirements is to be able to have a magnified view show up on a clicked region of an image; so, looking...
Started by mmr on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Texture-mapping is a core, basic, everyday, run of the mill... .
Please, pretty please with loads of sugar, molasses, sprinkles and a mist of high-fructose corn syrup on top and all over, explain why you cannot just use texture-mapping to draw this imagery .
|
|
Is it in general very hard to port JavaScript code to another browser platform?
Started by Dimitri C. on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
I could keep going but ppk (quirksmode....
Name iframe s ...
Here are some common problems:
eventing AJAX id vs.
See quirksmode for the everything cross-browser.
But if you don't, then it can be a real bitch .
Not if you use a library like jQuery or Prototype .
|
Ask your Facebook Friends
|
I'm coding in an embedded language called JS.
I want to be able to call three functions in any order. (ABC, ACB, BAC, BCA, CBA, CAB.)
The trick? The language doesn't have user-defined functions.
It does have a conditional and a looping construct.
I think...
Started by Nosredna on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Perhaps some kind of mutant state-machine, viz:
int CODEWORD=0x123; while (CODEWORD) { switch(CODEWORD&15) { case 1: /// case 1 break; case 2: /// case 2 break; case 3: //// case 3 break; } CODEWORD=CODEWORD>>4; }
DRY, no preprocessor, no array.... .
|
|
I have an old dedicated server running an out of date version of Fedora Core. As a result of the age of the distro, its repositories are no longer maintained, so the software on the server is getting badly out of date, and I would like to bring things...
Started by matthock on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Upgrading a distro that old may mean upgrading through a couple of versions (as a direct upgrade between that... .
Of the two I would recommend the second option, or a mix of the two: use the VPS to hold and run the site while you upgrade the main machine .
|
|
Will all parents who brought atheists into this world be judged severely by God?
Started by God Of The Atheists on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at yahoo):
And god with your terrible human emotions will be severely judged by god and you know what that means.
|
|
Spurs depth is severely underrated
Despite not having their best player and their primary backup pg, the Spurs are 12-7 thanks to the likes of Splitter, Leonard, Neal and Green.
In the last five games, Splitter is averaging 15 points and 6 rebounds in...
Started by Wonder Bread Kid on
, 15 posts
by 9 people.
Answer Snippets (Read the full thread at insidehoops):
Guy just knows how to ball....
Re: Spurs depth is severely underrated
Green is also a solid player.
Easily a 20/10 PF/C given starter minutes.
I haven't.
Re: Spurs depth is severely underrated
I was just about to make a thread about Splitter.
|
|
My left nipple at the base is severely cracked to the point of bleeding. I can't nurse my LO on my left breast anymore (she's 15 wks old and is a strong sucker) and I try and pump as much as I can. The problem is it bleeds and gets in the milk, soni throw...
Started by mooneywifey on
, 11 posts
by 9 people.
Answer Snippets (Read the full thread at babycenter):
It works great and you don't need to wipe it off to... .
It comes in a tube and you can find it in stores with nursing supplies .
Try lanolin.
I know, for me, I need to apply lanolin religiously .
Why are you throwing it out?
I'm going through the same thing .
|
|
Need Advice - Package Came Severely Damaged Edit: Added Pictures.
Hi Guys,
I need some advice. Recently on an impulse I bought a second hand laser off of a member here in the B/S/T section.
I PMed him, we settled on a price, payment was sent via paypal...
Started by InfinitusEquitas on
, 25 posts
by 13 people.
Answer Snippets (Read the full thread at laserpointerforums):
Good luck! Re: Need Advice - Package Came Severely Damaged Hopefully it was insured....if not perhaps!)(Non-working head...PM me if you have....
Especially.
Re: Need Advice - Package Came Severely Damaged These situations are so unfortunate...
|
|
Severely disfigured cow
I don't know if any of you have seen the video online.
Apparently, a cow got too close to a moving train and basically had half of its head lopped off. It almost looks as if part of the brain came off with the front of the face...
Started by IIIClovisIII on
, 13 posts
by 11 people.
Answer Snippets (Read the full thread at randi):
I found the video, holy cow!
I do have to wonder.. .
|