Do you ever feel lost on the internet?
-
Are there simply too many phenomena to keep track of? Don't worry: wikipedia has your back!
Random highlight(s):
"The Fox (What Does the Fox Say?)" - A song and associated video by the Norwegian comedy duo Ylvis prepared for their upcoming television show. The song's verses note the noises other animals make, but in the chorus, ask what noise a fox makes, at which point the song offers nonsense phrases like "gering-ding-ding-ding-dingeringeding!" and "fraka-kaka-kaka-kaka-kow!", while the video takes a similarly funny turn. The video saw over 43 million hits within a few weeks of its release, topping music charts, and leading to Ylvis being signed for more music by Warner Bros. Records.[187]
Benny Lava – A video created as a soramimi to Kalluri Vaanil by Indian dancer Prabhu Deva.[244]
League of Ireland fan – An interview clip with a possibly intoxicated man claiming to be a supporter of Irish soccer team St Patrick's Athletic.[289][290]
Eh, bored now...
-
The key to life in the technology industry: be OK with not knowing everything.
-
-
@RaceProUK used POKEMON REFERENCE!
It's not very effective...
-
} catch (PokemonReference é) { //no comment }
-
catch(Exception e) { //gotta catch 'em all }
-
Discourse used CONFUSE!
I'm just gonna leave this here.
https://www.youtube.com/watch?v=C_9DCRxKhuY
-
#THIS TOPIC IS NOW ABOUT PÖKĘMĂNS!!1one
http://bulbapedia.bulbagarden.net/wiki/Main_Page
My favourite plokemon is ????? wich is one of 'l) m) ZM-type glitch Pókémón!!!! It's sūpēr-ĕffēctívě!!1But this one is a lady poakèmàn (apparently). and
this one
has a rocks for a face too!!!Dõ you know there are
over nine-hundred-thousanddifferent pokėmåns and they all løøkcompletely ridiculous!!?
-
Dõ you know there are over nine-hundred-thousand different pokėmåns and they all løøk completely ridiculous
Damn, thought I was done posting Youtube responses. Apparently I'm not.
https://www.youtube.com/watch?v=74yK4-_3K0E
[size=8]
Wait, was there a topic to this thread? I can't remember what it was. Oh well.
Yay, Pokemans!
[/size]
-
-
An antipattern I've been using lately is
catch(Exception e) { Logger.Log(e);}
where Logger.Log is just an empty method with a breakpoint in it.
-
An antipattern I've been using lately is
catch(Exception e) { Logger.Log(e);}
where Logger.Log is just an empty method with a breakpoint in it.What does that do?
-
It lets me know when an exception is thrown, such that I could theoretically write code to handle it. Most of the time it's just easier to prevent the exception from happening in the first place.
Edit, clarify: these are personal/hobby projects that I'm talking about.
-
I feel like it'd make more sense for Logger.Log to actually do something (like, say, log a message), and then set the breakpoint on the place where you actually call it (in the catch block).
Unless that's what you actually meant, in which case ignore what I just said.
-
I guess if you know that you've handled every exception then sure, ditch the
try
in the first place.I think there should be one 'master'
try
block which surrounds each iteration of the main loop, and a correspondingcatch
block which tries to put you back into a state where you can keep running, or give up. (Ideally every iteration of your main loop ends with the moral equivalent 'commit this frame's transaction' because then you have a defined state you can fall back into...)Then again, if you builld an API function
doStuff(a, b, c)
then it's kind of friendly to have abool doStuffWillWork(a, b, c)
that can be called first to avoid the exception. If you haveT &Vector::operator[](size_t i)
which throws ifi
is out of range, then it's nice to havesize_t Vector::size()
you can call first...
-
I feel like it'd make more sense for Logger.Log to actually do something (like, say, log a message), and then set the breakpoint on the place where you actually call it (in the catch block).
Well part of it is that I haven't yet decided what I'm actually going to do with the logs, and the other part is that for some reason I found it easier to have the breakpoint at just one place, and just step out of the method any time it is hit. I mean, I know I'm doing it wrong, it's just a case of not yet having taken the time to do it right.
I guess if you know that you've handled every exception then sure, ditch the try in the first place.
I definitely do want the try in there. If I ever get to the point of distributing the app to people other than myself I'm going to want to know if anything goes wrong. The only point of my setup is to have some kind of marker that “hey, something could go wrong here”. Really the point of this whole thing is: I just wish C# had checked exceptions.
-
I just wish C# had checked exceptions.
Aha! Anders Hjelsberg thinks <a href=""http://www.artima.com/intv/handcuffs.html">you should be using Java! (well, kinda, ok it's a stretch but, he just doesn't want checked exceptions in C#...
-
Well, they could at least have provided something like
noexcept
(or better: a way to statically prove that your method won't throw), instead of going ahead and designing a language where every single line of execution could potentially throw.
-
The pokemon thread is elsewhere: http://what.thedailywtf.com/t/the-offical-child-animal-precious-color-abduction-cruelty-stone-recognition-appreciation-thread/5221
-
An antipattern I've been using lately is catch(Exception e) { Logger.Log(e);} where Logger.Log is just an empty method with a breakpoint in it.
Did you know that Visual Studio allows you to break on an exception even if it's caught? You just invented "Break when an exception is thrown", but harder and less flexible.
-
-
Did you know that Visual Studio allows you to break on an exception even if it's caught? You just invented "Break when an exception is thrown", but harder and less flexible.
Did you know that Visual Studio runs on Mac OS X, FreeBSD, Android and a variety of Linuxes* (but not Gentoo, because that would be silly...)
* Linices? Linuxen?
-
Now that you mention Linux, does Monodevelop have that VS feature?
-
Linuxes
Linux distributions.
There is only one Linux kernel. There are multiple distributions built around it.
</pendant>
-
There is only one Linux kernel.
Is it timeshared between all the users? It's very fast actually....
-
Sometimes I feel like slapping people over the Internet...
Just a random observation there.
-
Did you know that Visual Studio runs on Mac OS X, FreeBSD, Android and a variety of Linuxes* (but not Gentoo, because that would be silly...)
- Linices? Linuxen?
@Buddy obviously does C#...
Really the point of this whole thing is: I just wish C# had checked exceptions.
.. unless he's talking about Mono, he's on Windows.
-
-
Sometimes I feel like slapping people
what's holding you back?
over the Internet
oh ...