Mm? I'm not too fussed about that, myself. The real trouble is when people want to `int value = <calculation>; bool result = value;`
Personally, I like to bool result = !!value;, but that often makes co-workers wince, so I'm forced to bool result = (value != 0);, which is so wordy. ;)
Hmm. I didn't know that post can be slower. I always thought that post looked nicer, but that might be because that's how I first saw it being done. I guess I could change styles.
user4704
It's usually a triviality in terms of performance.
@JoshPetrie I can't think of any time a simple increment like that couldn't be replaced logically with a post-increment or vice-versa.
user4704
The result of a post-increment operation is the un-incremented value.
user4704
So you need a copy.
user4704
1:15 AM
So languages that cannot support (via the language or via the tools) the requisite analysis to determine that a copy would go unused can't necessarily avoid the copy.
she's been used to dumbphones so far so I think it'll be a shock at first to see the battery die in a day or so lol
> The Desire 300 comes with a 1650mAh battery with above average longevity. Quoted talk time on 3G stands at 11 hours and stand-by is excellent at 26 days. In reality, with lighter use you’d be able to have the phone last nearly two days which is okay.
well she talks on the phone for work a lot, so I'm positive she spends at least 4 hours per day in calls
it's especially annoying on holidays because whenever we go out somewhere half the time people from work are calling her because some shit stopped working or they don't know what to do
also she mentioned she bought it to be connected to the internet at all times
perhaps it would be best if I told her how to stop that 3G connection when it's not needed
@VaughanHilts I've worked with compilers which weren't smart enough to convert post-increment to pre-increment, even in trivial cases. Not in many years, admittedly, but programmers tend to have long memories.
True story: Four years ago, I was working at a company which was making Xbox 360 and PS3 games in C++, and which had a no-constructors and no-destructors policy; all initialisation and deinitialisation had to occur inside manually-called "Init" and "Deinit" methods. They had this policy because of a compiler bug on the PS2, a decade earlier, which resulted in constructors not being called on class instances inside statically-declared arrays.
@AlexM. They came up with a strategy for dealing with the problem at the time, and then it just became a not-to-be-questioned policy, instead of being a coping strategy for a real issue.
I keep thinking about how Unity does initialization for some reason
with its Awake -> Start chain
and how everything you set in an eventual constructor can be overwritten by unity
Windows Phone 8.1 review: A magnificent smartphone platform It's a 0.1 update that feels like a 2.0 update. http://arstechnica.com/gadgets/2014/04/windows-phone-8-1-review-a-magnificent-smartphone-platform/
> That Halo 4 spoiler is nothing short of rude and retarded. I haven't played it yet, I didn't know it, and by putting it right in the text I had already read it before processing the fact that it said "spoiler". There is literally no reason why it should be in this article.
@Savlon Thanks, it feels great to know I'm not alone and shouldn't give up. I did do a lot of trial and error that taught me a lot but where did you learn everything else then? — CodeOfGenius20 mins ago
what's up with people starting programming thinking it's some sort of arcane art
everyone thinks it's an arcane art until they actually get into it. I don't understand why.
I get a lot of praise from some of my coworkers because I can program, like I must be some kind of genius. And when I say programming is easy, it's just some of the problems you have to solve with code that can be hard, I get the strangest looks.
I'm not sure if it's amusing, flattering, or irritating, but it's probably all three
no one ever believes me though
they're all like "I could never learn to program. I'm not even gonna try, even though I keep saying over and over that I want to."
I'm a tutor because I honestly like anyone who wants to learn and I enjoy helping them. It's like a breath of fresh air compared to the rest of the world. But I don't want to do all the grading and stuff, so I have no intention to actually teach.
for the most part, people don't ask for tutoring unless they really want to learn something. there are a couple vampires there, but they're not common.
Mysticial over at the lounge told us about uni professors sending death threats to him if he doesn't tell them what algorithm he used in his yCruncher (his program helped set a new world record @ computing Pi)
all of the profs I've had for tech related classes have worked in the industry for quite a while. a few work full time as programmers and just teach one or two classes because they want to. those part time profs really don't get paid enough to do it for any reason other than loving it.
pay for the full time profs is fairly nice, but even those have already spent decades as programmers.
1024 in binary is 10000000000 that has 10 zeroes. multiply binary by 2 means shifting one digit to the left. multiply by 1024 means shifting 10 to the left. shift 10 to the left 5 times. convert to decimal. multiply by 6.
at least that was my first thought
if that didn't work, I'd just do actual multiplication on paper
err wait, it would be shifting 4 times, not 5, I think
actually I forgot how to multiply on paper years ago, and only refreshed my memory on it recently to help implement my giant number class for project euler problems.
@AlexM. you're basically the exact demographic whose opinion is relevant, I finalized that decision on using truly exact math in my scripting language because I feel that gameplay programmers don't need to waste time fucking around with side effects from numeric approximations
Well either way :P the tradeoff is speed of course
I think it's a good trade because nobody should do super heavy stuff in the language anyways, just controlling the engine
Also maybe one day it can even have a speed advantage, because so far it's been a HELL OF A LOT EASIER writing an optimizer for a language where the math is exact instead of floating point
I'd greatly appreciate yours (and anyones really, @Almo?) comments on the subject though
Reminds me a bit of an old paint program which didn't save the raster image which was painted, but instead saved the set of brush strokes and other operations which had been used to generate the raster image. Was typically much smaller that way.
Specifically, PlanetSide 2 - my own team bunches up where I don't want them? I drop a bunch of mines and a sticky grenade there. They move or they die.
ArmA II was also like that when I played it: When I lay down covering fire, I don't care if you're friendly or not, you'll die before I have the chance to notice the difference.
Given I'm almost 40, my reactions aren't the best by now, but I make it up by being support and laying down explosives. Lots and lots of explosives. ;)
> The Cokeville Miracle is about an Elementary School hostage crisis that occurred on May 16, 1986, in Cokeville, Wyoming, United States, when former town marshal David Young, and his wife Doris Young, took 167 children and adults hostage at Cokeville Elementary School. David Young entered the school with his wife transporting a large gasoline-filled device that appeared to be a bomb.
what's up with americans and messing around schools
> Doris Young tried numerous times to calm the children by telling them to "think of it as an adventure movie", or that they "would have a great story to tell their grandchildren".
> In the classroom, David Young held the gasoline bomb, with the triggering mechanism attached to a shoelace tied around his wrist. He demanded a ransom of two million dollars per hostage and an audience with President Reagan
> David Young was the only police officer in Cokeville for 6 months in 1979. After being fired for misconduct, he moved to Tucson, Arizona. He returned on May 16, 1986 with his wife Doris. At 1:00 pm, they pulled up to the Cokeville Elementary School and unloaded a gasoline bomb, along with four rifles and nine handguns. David Young went to the school office, handing out a manifesto entitled "ZERO = INFINITY" and announcing "This is a revolution!".
> Teachers were confused and baffled by David's nonsensical and strange writing and due to this deduced that Young and his wife were mentally ill and delusional. Meanwhile, Doris Young went from classroom to classroom, luring 167 children and teachers to a first-grade classroom by telling them there was an emergency there.
> 76 of the hostages suffered injuries, mostly flash burns and other injuries from the exploding bomb. Several children reported seeing angels in the classroom that day, including many children which claimed to have seen a "beautiful lady" who told them to go near the window. Other children reported seeing an angel over each child's head.
actually I'm pretty sure that nothing happens in russia, except on roads, where russia is actually more interesting than any other country, except japan
I'd love to have a bird's eye view over what happened on that mountain
I'm so curious :(
one of the searchers wrote a book which contained journals and manuscripts that were censored by the government
and after his death all of his work was burned
> On the 26th, the rescuers came across the team's abandoned campsite. It was deserted and the tent was badly damaged as if something had ripped through it. Oddly, it appeared not as if something had tried to get into the tent, but rather like someone had ripped their way out. Tracks were found leading away from the camp and, 500 meters away, the found the first two hikers next to the remains of a campfire - both of them were dead, shoeless, and in only their underwear.
what could possibly make you try to get out of your tent that way
it certainly didn't allow them to untie the tent and get dressed
outside there were -18*C
so I guess they had a really good reason to run away like that
also after that they made a campfire near a tree
and waited there for a while until trying to return to the tent
> Thibeaux -Brignollel’s skull showed evidence of having been struck by a heavy object. Zolotarev and Dubunina’s chests had been crushed inward, shattering several ribs and causing massive internal damage. Strangely there were no indications of what may have caused this severe trauma and, even more bizarrely, the corpses showed no signs of bruising or soft tissue damage.
but I'm sure there is some anticlimactic answer to this
like, russians performing some nuclear weapon testing (there were signs of radiation on the guys)
and sending some troops to kill the people there for seeing something or making sure they won't be seeing anything
> The searchers were startled to observe that Dubinina’s head was tilted back; her stretched mouth wide as if emitting a silent scream. Upon closer inspection the rescuers realized that her tongue had been ripped out by the root.
Now this is the interesting part: Yuri and his wife were killed in a car crash in the mid 1980’s a few short years before the partial declassification of the Dyatlov papers. According to this source all his papers, records and private notes of the Dyatlov Pass Incident have gone missing.
^ the guy who wrote that book
this shit makes me want to get near the people who were there if they're still alive
I dunno enough about avalanches either, but it would explain everything except the tan bodies, the missing tongue, and the radiation. but the bodies probably tanned from laying in the snow for a few weeks, the tongue is gone because that's one of the first things scavengers go after, and the radiation was not in the original report, though I can't find who added it or whether it's reliable.
> A chance meeting between on a train with a medical assistant at the accident site – Maria Ivanovna – revealed that she recalled 11 bodies being discovered and not nine. Two were hurriedly removed to a destination unknown to her.
well yeah not sure how reliable everything is
but at least everyone seems to agree about the tent bit
> marktheaardvark 99 points : 10 hours ago reply FYI "taman shud" translates to English as "it has finished" or "it has become finished." Source: Speak fluent Farsi
@IcyDefiance yeah
even if the answer was an avalanche and animals eating out the tongue and stuff