« first day (785 days earlier)      last day (4177 days later) » 

5:00 PM
I mean, most C++ books suck, but Herb's books do not even qualify as C++ books.
 
What does that do.
 
@CatPlusPlus Write it in Scala and then decompile to Java ;-)
 
I'll do that if they won't like Scala. :v:
 
Scala ( ) is a multi-paradigm programming language designed as a "better Java" — building on top of the Java virtual machine (JVM) and maintaining strong interoperability with Java, while at the same time integrating functional programming along with Java's object-oriented programming model, cleaning up what are often considered to have been poor design decisions in Java (e.g. type erasure, checked exceptions and the non-unified type system) and adding a number of other features designed to allow cleaner, more concise and more expressive code to be written. Like Java, Scala is statically ...
 
I didn't mean Scala =p.
 
5:01 PM
So what did you mean?
 
I thought the assignments name was 'Fight the system'
 
Hey guyz, do the if-s influence the complexity of the algorithm (o(n))? let's say i have just 1 for loop, but in this for loop, i have 4 if-s. Do they influence somehow?
 
Probably not, show us the code.
Does the function call itself inside the if? :)
 
no
 
5:03 PM
If the ifs are trivial, then it will probably stay O(n), but it's hard to say for sure without seeing the code.
 
Do any of you play the violin?
 
ok
 
user142019
@JosephPotts I often listen to music in which a violinist plays.
 
@JosephPotts I play the violent. When I'm mad.
 
i'll show you later, when it'll be finished.
 
5:03 PM
@ddacot If the conditions being satisfied is related to N, then maybe.
 
Greaat
 
Hah.
 
@JosephPotts That's what's wrong with music nowadays: Too much sax and violins.
5
 
Wha...what!?
 
5:04 PM
Too little*
 
user142019
I wrote my JavaScript assignments in Python and Haskell.
 
How were your grades? :)
 
user142019
9/10
 
cool :)
 
user142019
5:05 PM
no wait not 9/10
 
user142019
9.325/10 :P
 
user142019
But they round it. Those bastards.
 
well that's... delightful.
 
user142019
The only assignment I wrote in JavaScript was fizz buzz since I had Node.js already open in class.
 
@Zoidberg'-- That could be good or bad depend on the not you use. !9 would be 0. ~9 (on my machine) gives 4294967286 (as unsigned). I kind of like 4294967286/10.
 
user142019
5:08 PM
4294967286/10 would be awesome.
 
user142019
4294967286 mod 10, not so much.
 
@Zoidberg'-- Mods are always less fun!
 
Ell
@Zoidberg'-- how would you grade yourself as a programmer overall?
 
user142019
@Ell π/2π
 
Damn modules
 
Ell
5:10 PM
@Zoidberg'-- seriously? :L
is that pi/2pi?
 
He's a mod 3 programmer.
(he's an odd programmer).
 
user142019
@Ell Well, in elementary school we learned that π = pi, yes.
 
Ell
its just the symbol doesn't look that much like pi to me :L
hmm.
 
user142019
What does it look like to you? Stonehenge?
 
I'm in highschool and they've never told us that n = pi. Just the symbol >_>
 
Ell
5:11 PM
chat doesn't want to show the real pi symbol :L
more curvy
 
@Ell Looks more like cake in the font I'm using.
 
user142019
@Ell That’s because chat uses one of the most terrible fonts ever: Verdana.
 
Well, gotta go for a while. TTYL.
 
Ell
it seems everyone uses the most terrible anything with everything :L
 
@JerryCoffin Later. Have fun!
 
user142019
5:13 PM
Verdana is unreadable.
 
user142019
If they would have used a decent font (such as Arial or Helvetica Neue), I’d never have confused Mysticial with Mystical.
 
Who is Mystical?
 
user142019
@FredOverflow Nobody. At least, not afaik.
 
Oh wow, that is hard to figure out.
 
@FredOverflow He is Mystical.
 
user142019
5:14 PM
I’m going to disable Verdana on my Mac.
 
That's quite an unusual commitment.
 
user142019
Now chat uses Arial and now I can actually read everything. :P
 
user142019
π looks good, too.
 
@Zoidberg'-- You should put that in your webbing vows.
 
user142019
Webbing vows?
 
5:16 PM
You know, like wedding vows, but for the web. This chat is part of the web, right?
 
user142019
What is a vow?
 
user142019
vow |vaʊ|
noun
a solemn promise.
• (vows) a set of solemn promises committing one to a prescribed role, calling, or course of action, typically to marriage or a monastic career: the vows of celibacy.
 
Marriage vows are promises each partner in a couple makes to the other during a wedding ceremony. Marriage customs have developed over history and keep changing as human society develops. Background In secular ceremonies, vows can be chosen freely or created by the couple. Couples marrying within a religious tradition are often constrained to use the standard vows of that tradition's ceremony. Writing one's own vows In some countries it is common for couples to write their own vows. Inspirations are often taken from poems, movies, or music. Vows usually consist of what characterist...
 
user142019
Promises? Why would I ever promise anything?
 
user142019
Restricting yourself.
 
5:18 PM
Are your parents divorced?
 
object HelloWorld extends App { wait what? is println defined inside App in Scala?
 
Nope, println is in the prelude or something. It's always available.
 
user142019
@FredOverflow nope.
 
Would have explained your negative opinion in commitments :)
 
Ell
there we go, changed the font so π looks proper :3
 
user142019
5:19 PM
πππππ BUT STONEHENGE
 
@FredOverflow, then why do I have to derive from App?
 
@Ell Screenshot or didn't happen.
 
Ell
@FredOverflow srslyyy?!?!11
 
@Jeffrey Who told you you have to derive from App? Just write your own main function, no problem.
 
Ell
I will have to edit with gimp :/
 
user142019
5:20 PM
What is Scala good at?
 
user142019
Why would I use Scala instead of another language?
 
Scala is a nice mix of functional and OO.
 
user142019
awesome
 
@FredOverflow, "Here is the classic Hello World program written in Scala:". Usually the hello word sample of a language are the shortest one you can write.So I assumed you had to extend App. Weird...
 
user142019
The shortest one you can write that follows common conventions.
 
5:21 PM
If Haskell is too abstract for you, then Scala is definitely worth checking out.
 
So Int in Scala is like an object?
 
Scala has no primitives. It does not distinguish between int and Integer like Java does.
 
It's an evolved language.
 
user142019
Okay, I downloaded Scala.
 
user142019
5:24 PM
Does Scala have all those silly conventions of using singletons and a thousand superclasses and design patterns everywhere, like Java?
 
It doesn't happen often that Scala is discussed here. Even though it's strongly and statically typed (IIRC).
 
It's not for me I guess...
 
@Zoidberg'-- Scala has language support for Singletons. It's called object instead of class, but Scala programmers are sane enough no to abuse it.
Also, the function bits make so many "Design Patterns" obsolete. You won't see much GoF Patterns in Scala.
 
user142019
Awesome.
 
user142019
Otherwise I’d ditch it immediately. :P
 
5:26 PM
7
Q: If Singletons are so bad, why does Scala have language support for them?

FredOverflow Possible Duplicate: Why are singleton objects more object orientated? Why does Scala have language support for the Singleton anti-pattern? If Scala had inherited the static keyword from Java, what legitimate use cases of the object keyword would be left?

 
user142019
> A Scala trait can contain a mix of abstract interface and concrete implementation.
 
user142019
Is that similar to type classes?
 
@Zoidberg'-- Be sure to use an AbstractDitcher.
 
No. But Scala can simulate type classes with implicits.
 
user142019
Ah okay. Well, time to learn Scala. :P
 
5:27 PM
Dang, LWS is sexy now
 
What is LWS?
 
user142019
Is there also a package manager for it like npm or RubyGems?
 
@FredOverflow LiveWorkSpace
 
I don't know, sorry. Only used it for one real project so far.
 
user142019
@FredOverflow dat Russian pastebin.
 
5:28 PM
It's in sehe's pinned message.
 
@FredOverflow lousy work space !
 
the new LWS is very sexy
 
Is it down now?
 
seems to be :(
fail lws
nice new site, can't get it
 
@StackedCrooked I think it's weird that they essentially did your idea though.
A text box with compiler options
 
5:31 PM
Oh, I see that sehe pinned one of his jokes.
 
user142019
I might write Hexapoda in Scala.
 
Ell
thats the bug one?
 
@Rapptz They might be relying on shell argument substitution rules instead of doing validation.
However, I want to allow things like: g++ -E main.cpp | tail -n 50.
This is not possible with their validation.
I've actually considered to let the user program run as a bash script. If they want to use C++ then they'd have to make it a polyglot. Like this.
 
@Rapptz, you don't mean MS Office Live WorkSpace right?
 
No
 
5:36 PM
I want python tuple style in C++
 
@Rapptz, what's that then?
 
@bamboon With or without silly dance?
 
It's literally on the pinned message --->
welp, not anymore
 
@R.MartinhoFernandes do I have to understand that?
 
I see
 
5:38 PM
Python: `((12345, 54321, 'hello!'), (1, 2, 3, 4, 5))`
C++: `make_tuple(make_tuple(12345, 54321, "hello!"), make_tuple(1, 2, 3, 4, 5))`.
 
Won't work in C++ because of the comma operator.
 
@bamboon Hell, I'm into Robot doing it python tuple style.
 
You could make it less noisy with #define _ make_tuple ;)
 
@FredOverflow Why not?
 
@StackedCrooked I think he means the python style
 
5:43 PM
"Won't work in C++"?
 
... o_O
 
@bamboon Ah.
 
___PRETTY_FUNCTION___ ?
 
It's an ugly macro for generating a pretty function signature.
 
for pretty functions
 
5:49 PM
Ah.
I see.
 
MOTHER FUCKER I HATE WINDOWS 8
Everytime I click a link in this chat it opens it up in Firefox and then IE just SPAWNS itself.
"Hey, HEY did you know I'M PART OF WINDOWS 8 HEY USE ME."
No, NO I don't want to use you or your cheesy vagina, IE. Shut up and go back to your kitchen and DON'T MAKE ME A SANDWICH BECAUSE YOU'RE BAD AT IT.
 
@ThePhD That's weird. Are you sure Firefox is set as the default browser?
 
@StackedCrooked It is. I've checked many times. I just have to try and pin down how exactly it happens, because it doesn't happen othertimes but consistently happens when I open links from people.
 
Does it only happen in this chat?
 
5:56 PM
Apparently not: Skype is throwing me under the bus too. :c
Sometimes I wish I could delete IE and get away with it. ._.
 
@ThePhD Do this to turn it off (It doesn't actually uninstall)
 
user142019
@StackedCrooked you can also use std::type_info::name and abi::__cxa_demangle from <cxxabi.h> in some implementations.
 
@Zoidberg'-- Yeah, I'm just playing.
I sometimes use demangle actually.
 
user142019
I used demangle in an exception class that carried a stack trace.
 
You can obtain the stack trace using demangle?
Or you mean the stack trace was encoded in its type somehow.
 
6:05 PM
@Rapptz Woooo, time to reset and WATCH IE BURNRNRNNN.
 
user142019
No, using backtrace from GNU. The symbols it returns are mangled, so I needed to demangle each of them.
 
user142019
If __cxa_demangle returned out of memory, I just throwed std::bad_alloc even though the ctor was noexcept. XD
 
Can't you choose what browser to install at Windows setup now?
 
-7
Q: How to run a script whenever there is net activity?

Ashish GaurHow can I call a shell script whenever there is some network activity on a system ? So far as I have researched I have got this : Create a fake url in a browser which can call a script which eventually starts my app. Here is the site from where I got it http://ubuntuforums.org/showthread.php?t...

^^ Check out the first revision.
 
user142019
6:07 PM
lolwat
 
oh god, we are fked
 
And on his meta post, he's making a shit-load of excuses over how he's "doing it" for a mentor.
This is even worse than the 100,000 emails question.
 
user142019
lol the 100,100 emails question was funny.
 
user142019
> Can we get a link to this “blog”? We might want to subscribe too!
 
@Jeffrey Only if you're in the EU and you don't have one of the 25 million bugged copies.
 
6:18 PM
@DeadMG, only in the EU? That's a shame...
 
United States v. Microsoft was a set of civil actions filed against Microsoft Corporation pursuant to the Sherman Antitrust Act of 1890 Sections 1 and 2 on May 18, 1998 by the United States Department of Justice (DOJ) and 20 states. Joel I. Klein was the lead prosecutor. The plaintiffs alleged that Microsoft abused monopoly power on Intel-based personal computers in its handling of operating system sales and web browser sales. The issue central to the case was whether Microsoft was allowed to bundle its flagship Internet Explorer (IE) web browser software with its Microsoft Windows operatin...
 
"A number of videotapes were submitted as evidence by Microsoft during the trial, including one that demonstrated that removing Internet Explorer from Microsoft Windows caused slowdowns and malfunctions in Windows." wat
 
I like the nsfw-text spidey images
 
@TonyTheLion I illustrated your sentiment on this page's Goggles.
 
6:26 PM
I replied appropriately
 
user142019
I’m going to use CMYK for Hexapoda.
 
You're gonna print stuff?
 
user142019
Nope.
 
user142019
But I mean those colors. :P
 
6:38 PM
posted on December 09, 2012 by Scott Meyers

Today I received something rather remarkable:  a copy of my More Effective C++ from its thirtieth print run . So many printings is uncommon for any technical book, but it’s particularly surprising for this one, because our understanding of what it means to apply C++ effectively has undergone considerable change since the book’s initial publication in 1996. For me, that makes a thirtieth

 
6:49 PM
@StackedCrooked "A primary schoolchild is the totally best!" ...?
 
Xeo
> That’s the kind of thing that warms a fellow’s heart: his inability to publish correct code being used as an argument to expand the standard library.
lol'd
 
@melak47 That's what it says.
 
It sounds as if everything in Japan is translated with Google.
 
Xeo
@StackedCrooked lol, Ro-Kyu-Bu.
 
You know that? Cool. I'm not familiar with it.
 
6:52 PM
neither am I. what is going on
 
However, the text probably sounds different than intended.
I think it means, the best one (the winner) is one of the primary school girls.
 
Xeo
@StackedCrooked Eh, I watched the first episode.
 
So I guess it was boring.
 
Haider.
 

« first day (785 days earlier)      last day (4177 days later) »