« first day (90 days earlier)      last day (803 days later) » 

10:35 AM
0
Q: Use Ninject.InSingletonScope() for all classes in defined namespace

ForestCI have a set of repositories in a class lib that are required to be singletons. They share library with other classes as well - classes created as singletons. Is it possible to configure Ninject to automatically use InSingletonScope() for all classes that are matching a specific criteria - for e...

 
 
1 hour later…
11:42 AM
@Chad Well, you can use anonymous inner classes:
public void method()
{
    System.out.println("Hello from outer method");
    new Runnable()
    {
        @Override
        public void run()
        {
            System.out.println("Hello from inner method");
        }
    }.run();
    System.out.println("Hello from outer method again");
}
 
12:11 PM
0
Q: singleton autofac property is null after binding

mobygeeki have question regarding autofac. i am having a bootstrap class where i am registering my viewmodel as singleton via registertyp().singleinstance(). mytype.singletong.listproperty() == populatedata; then in my xaml i am binding the this to my ui. while i call my context.resolve() i am gettin...

 
 
3 hours later…
user142019
3:24 PM
@FredOverflow they can only capture finals, right?
 
user142019
4:21 PM
Nein.
 
4:53 PM
@rightfold Up until Java 7, you can only capture local variables explicitly declared as final. Starting from Java 8, you can also capture local variables that are deduced to be final :)
 
user142019
lol
 
"effectively final" is the term
 
user142019
What about lambdas?
 
same thing
 
user142019
So you cannot change captured variables?
 
user142019
4:58 PM
Oh wait, duh.
 
user142019
That's only possible in C++.
 
user142019
Well, and in Go if you capture a pointer to a variable but that's silly.
 
user142019
Go is great.
 
@rightfold You cannot change captured locals, no.
 
user142019
You can do this, right?
 
user142019
5:04 PM
final T x = new T();
foo(lambda { // whatever the syntax is
    T mutableX = x;
    mutableX = new T();
});
 
@rightfold Sure, modifying your own locals is fine. Otherwise, you couldn't even write a for loop inside a lambda :)
 
user142019
Yes, but for loops suck.
 
user142019
Can lambdas be recursive?
 
user142019
Whatever. Java 8 still has no type inference nor operator overloading for custom types so it's still terrible.
 
5:20 PM
@rightfold If you store a lambda in a final variable, sure :) But there is no way to get at the "this lambda", if that's what you mean.
 
user142019
Ah okay.
 
user142019
@FredOverflow What's the type of a lambda?
 
user142019
Is it somefuckingterriblelongannoyingtype<T> x = () => new T();?
 
user142019
Or does it work with interfaces?
 
@rightfold Lambdas have no type :( Java uses target typed on single method interfaces.
 
user142019
5:26 PM
LOL
 
user142019
So I can do say…
 
So it's up to you whether you store it in a Runnable or a Function<Whatever> or whatnot.
 
user142019
Runnable lambda = () => {System.out.println("Hello, world!");};
lambda.run();
 
user142019
Like this?
 
user142019
Will Java have sections? :D
 
5:27 PM
Conceptually something like that, yeah.
 
user142019
I like Go's interfaces.
 
user142019
They're implicitly satisfied.
 
user142019
type Stringer interface {
    String() string
}

type Person struct {
    Name string
    Age int
}

func (p *Person) String() string { // Person now implements Stringer
    return fmt.Sprintf("%s is %d years old", p.Name, p.Age)
}
 
user142019
@FredOverflow Meh.
 
user142019
5:29 PM
@FredOverflow Yay.
 
user142019
In C# lambdas work similarly but with delegate types instead of interfaces.
 
I predict this is going to be a huge problem. Fuck you, checked exceptions!
 
user142019
There are generic delegate types like Func<...> and Action<...>.
 
> it can throw only exceptions allowed by the function descriptor.
I predict this is going to be a huge problem. Fuck you, checked exceptions!
 
user142019
LOL
 
user142019
5:31 PM
In C#, var sq = (int x) => x * x; is illegal. :(
 
user142019
Hey @FredOverflow what about this?
 
user142019
interface A { public void foo() {} }
interface B { public void bar() {} }
public class Foo {
    public void x(A a) {}
    public void x(B b) {}
}
Foo x = new Foo();
x.x(() -> { pwnt(); });
 
user142019
It's l'ambiguity.
 
I ordered the complete That 70s Show box set today :)
It was a bargain limited for today.
@rightfold I'm sure it's a compile-time error.
@rightfold Why?
 
user142019
@FredOverflow because lambdas are untyped. :P
 
user142019
5:39 PM
You need SomeDelegateType sq = (int x) => x * x;, for example Func<int, int> sq = x => x * x;.
 
Why aren't they simply already of some standard library delegate type? That's how it works in Scala.
What about F#? By the way, I also ordered an F# book today.
 
user142019
@FredOverflow nice, which one?
 
user142019
F# is OCaml on steroids.
 
user142019
Cool.
 
5:44 PM
^ Also bought that one, heard very good things about it.
What's your opinion on TDD?
 
user142019
I like F#'s support for units.
 
user142019
@FredOverflow Is that writing test firsts, then the actual software?
 
user142019
@FredOverflow It seems backwards to me, since it's very likely you don't foresee edge-cases and then everything goes wrong.
 
Does this link work for you? I haven't been able to reach it all day :(
@rightfold yes
 
user142019
@FredOverflow it does.
 
5:47 PM
Fuck, my Internet connection keeps breaking multiple times a minute, this isn't fun.
 
user142019
@FredOverflow How about this?
 
@rightfold lol works WTF
 
user142019
F# has LINQ. :3
 
user142019
@FredOverflow your ISP wants you to use Java instead of Haskell.
 
user142019
Oracle paid them.
 
5:50 PM
@rightfold I also get lots of spam from Oracle, lately :(
 
user142019
Oracle is a terrible company.
 
user142019
I hope they go bankrupt.
 
Joey DeMaio once said "Shit goes in the toilet. We hope they die!"
Not actually about Oracle, of course, but the quote fits :)
Haha, you should totally google pictures of that guy (or should I say gay?)
 
user142019
lol
 
user142019
Guitarist.
 
user142019
5:55 PM
I'm writing web framework.
 
@rightfold Have you decided on a language yet? :)
 
user142019
What am I looking at.
 
user142019
@FredOverflow Go.
 
@rightfold Bassist, actually.
 
user142019
A bass guitar is also a guitar.
 
5:56 PM
This just in: Gay Indian confuses bass strings with pasta.
 
user142019
Expressions don't wrap to a new line - put everything in the LinkedList declaration on the same line — Zim-Zam O'Pootertoot 1 min ago
 
user142019
What the fuck?
 
user142019
Oh he deleted it. Good.
 
user142019
-33
Q: Why does i|= j|= k|= (j+= i) - - (k+++k) - - (i =+j) == 11?

Jeremy BanksI came across this code in a project I have started working on. The original developer is no longer available, and I can't make any sense of it. k = (j = (i = 0) + 2) + 1; return i|= j|= k|= (j+= i) - - (k+++k) - - (i =+j); It produces a value of 11. How does this work? What is the =+ operato...

 
user142019
LOL
 
5:58 PM
lol 23 favorites
Not sure if actual question, or an attempt to get as many downvotes as possible. — Madara Uchiha Nov 22 '12 at 21:09
 
user142019
-14
Q: hawalies Urgent

user2251748Hi I am a student and I am doing a project which is about converting a physical ancient game into a computer game. The game is called hawalies and it is similar to Philippine game called "Sungka" , and Indian game called "kalah". It consist of 4 rows and 3 columnss each filed "hole" containing 2 ...

 
user142019
What are idiots like this at? Why do they think it's a good idea to post such crap?
 
Are you actively searching for the most downvoted questions on SO? :)
 
user142019
Yes.
 
6:02 PM
13
Q: Reverse sort for question feeds and search

AsadIs it possible to allow users to select the direction sorting is applied in for /questions and /search? Something like http://stackoverflow.com/questions?sort=newest?direction=desc. In terms of UI, this could be toggled by clicking on the sort tab: Right now you have to scroll to the bottom of...

would be useful
 
user142019
I like Go's simplicity.
 
Go still has no templates, right?
 
user142019
I haven't yet found a need for operator overloading for custom types or for generics.
 
user142019
@FredOverflow No.
 
user142019
The only compile-time generic types it has are arrays, slices and maps.
 
user142019
6:05 PM
There is interface{} which is like boost::any.
 
@rightfold So does Paul Dix, lol @ video title
 
user142019
And Go's reflection capabilities are supreme.
 
user142019
@FredOverflow That title LOL.
 
I think what he means is that Go will dance circles around Node and Scala.
 
user142019
Go does run circles around Node.js.
 
user142019
6:07 PM
Go uses a segmented stack, which is nice.
 
user142019
It doesn't use cdecl.
 
@rightfold What does that mean? More stack space?
@rightfold cdecl is a terrible mistake. It needs to die.
 
user142019
@FredOverflow It means that the stack is like std::deque<stack_frame> instead of std::vector<stack_frame>.
 
user142019
So you can spawn thousands of goroutines (threads) without filling up your memory with almost-empty stacks.
 
Is it still a "hardware stack"?
 
user142019
6:09 PM
I have no idea.
 
@rightfold Aha, so just calling a normal method does not create a new segment?
 
user142019
10
Q: How come Go doesn't have stackoverflows

OscarRyzI read in this presentation http://golang.org/doc/ExpressivenessOfGo.pdf page 42: Safe - no stack overflows How is this possible? and/or how does Go works to avoid this?

 
user142019
@FredOverflow I don't think so. That would be slow as a dog.
 
Anyway, if local variables are on the heap, it sounds less efficient to me.
 
user142019
@FredOverflow It uses machine instructions but it changes the stack pointer when it changes to a new segment.
 
user142019
6:11 PM
@FredOverflow Why would they be on the heap?
 
> It's a feature called "segmented stacks": every goroutine has its own stack, allocated on the heap.
 
user142019
The stacks are on the heap.
 
user142019
The locals are on the stacks.
 
user142019
Why would it be less efficient if stacks are on the heap?
 
@rightfold I thought it was implemented by some pointer on the hardware stack that points into the current Go stack frame on the heap, hence one more level of indirection. ICBWT.
> The whole scala part of this talk is just a few words for me: "I didn't get it, so now I go and spread the word that it sucks".
 
user142019
6:16 PM
@FredOverflow lolno
 
user142019
There is a CPU register in which you store a pointer to the stack. The stack instructions (push, pop) use that internally.
 
user142019
It doesn't matter whether that points to something in the heap or not, since the CPU doesn't care about heaps.
 
Ah, the monad site works again:
> Functions are space stations, parameters are astronauts and monads are space suits that let us safely travel from one function to another.
lol
 
user142019
lol
 
17
Q: Monad in non-programming terms

fig Possible Duplicate: What is a monad? How would you describe a monad in non-programming terms? Is there some concept/thing outside of programming (outside of all programming, not just FP) which could be said to act or be monad-like in a significant way?

> Here's my current stab at it: Monads are bucket brigades
Why do people keep inventing new Monad analogies?
 
user142019
6:26 PM
@FredOverflow he's bashing Option[T].
 
user142019
And he fails at it.
 
user142019
Option[T] is great.
 
The whole video is a waste of time.
 
user142019
He forgets that it's about semantics.
 
user142019
Go FTW.
 
user142019
6:29 PM
> Tuples are this totally ghetto hack.
 
user142019
Fail.
 
user142019
Go is perfect for that guy indeed:
1) One obvious way to do things.
2) Not a functional language.
 
user142019
Go is fucking awesome.
 
user142019
> The complexity of C++ (even more complexity has been added in the new C++), and the resulting impact on productivity, is no longer justified. All the hoops that the C++ programmer had to jump through in order to use a C-compatible language make no sense anymore—they're just a waste of time and effort. Now, Go makes much more sense for the class of problems that C++ was originally intended to solve.
 
@rightfold from?
 
user142019
6:34 PM
 
But yeah, we should finally ditch C++. I'll give my collection of a dozen or so C++ books to charity.
> Homeless? Get your C++ book for free!
 
user142019
lol
 
user142019
fail
 
Why?
 
user142019
6:37 PM
If they sell the computer they have a lot of money.
 
Why does Google find this when searching for "computer bum"? lol
 
user142019
I have no idea.
 
user142019
It's time to stop slacking and actually work on Luna.
 
@rightfold Your web framework? What will it do?
 
user142019
Pony is my web framework.
 
user142019
6:39 PM
Luna is something I'm building on top of that web framework.
 
user142019
 
An anti-werewolf website?
 
user142019
I'mma take a shower brb.
 
user142019
@FredOverflow lol
 
Monads are Burritos, I think I've never given it a try yet...
 
user142019
6:58 PM
Back am I.
 
7:26 PM
> Programming book pornography. The idea that having a pile of thick, important-looking programming books sitting on your shelf, largely unread, will somehow make you a better programmer. [...] This is why I considered, and rejected, buying Knuth's Art of Computer Programming. Try to purchase practical books you'll actually read, and more importantly, put into action.
> As an author, I'm guilty, too. I co-wrote a programming book, and I still don't think you should buy it. I don't mean that in an ironic-trucker-hat, reverse-psychology way. I mean it quite literally. It's not a bad book by any means. I have the utmost respect for my esteemed co-authors. But the same information would be far more accessible on the web. Trapping it inside a dead tree book is ultimately a waste of effort.
wow
> I'm not a fan of object orientation for the sake of object orientation. Often the proper OO way of doing things ends up being a productivity tax. Sure, objects are the backbone of any modern programming language, but sometimes I can't help feeling that slavish adherence to objects is making my life a lot more difficult. I've always found inheritance hierarchies to be brittle and unstable
 
user142019
:P
 
user142019
> objects are the backbone of any modern programming language
 
> Object-oriented programming generates a lot of what looks like work. Back in the days of fanfold, there was a type of programmer who would only put five or ten lines of code on a page, preceded by twenty lines of elaborately formatted comments. Object-oriented programming is like crack for these people: it lets you incorporate all this scaffolding right into your source code.
 
user142019
Not in Haskell! Oh wait, Haskell is not modern.
 
> Something that a Lisp hacker might handle by pushing a symbol onto a list becomes a whole file of classes and methods. So it is a good tool if you want to convince yourself, or someone else, that you are doing a lot of work.
 
user142019
7:32 PM
I don't understand derivatives.
 
In math?
 
user142019
Yes.
 
Don't worry, I'm sure derivatives are just space suit burritos or something.
 
user142019
Well, I know how to approximate a slope.
 
What exactly are you having problems with?
 
user142019
7:34 PM
 
user142019
Is f' the derivative of the function that gives the green curve?
 
user142019
Or cyan lol.
 
dunno
 
user142019
So if you apply a derivative to x you get the slope at x?
 
user142019
Oh wait.
 
7:38 PM
f'(x) is the slope of f at x
 
user142019
The derivative is the slope. :L
 
user142019
@FredOverflow Yes, but what is f'.
 
A function that, when given an x, will give you the slope of f at that point.
 
user142019
> At each point, the derivative of f(x) = 1 + x sin (x x) is the slope of a line that is tangent to the curve.
 
user142019
@FredOverflow No shit lol.
 
user142019
7:41 PM
Ah I see.
 
Note how both functions "touch each other" (wow that sounds gay) at x. If you choose a different x, you get a different brown line.
 
user142019
So the derivative is the slope of line L at x such that L is tangent to f(x).
 
makes sense
 
user142019
 
Note that the derivative is almost always different for different values of x, hence i is itself a function of x.
@rightfold Not all functions can be differentiated.
 
user142019
7:45 PM
@FredOverflow What about constant functions?
 
When f is a constant function, then f' is 0 for all x.
Because the slope of the tangent of a constant function is 0.
 
user142019
f and f' are functions, not constants.
 
right :) f'(x) = 0
 
user142019
@FredOverflow right.
 
user142019
So if you plot f(x) and f'(x) for all x you basically get the same two curves on top of eachother.
 
7:47 PM
Nope: f(x) = 42 and its tangent are indeed the same function, but f'(x) = 0 lies on the x axis.
 
user142019
Oh. :L
 
user142019
How about sin x? I know the derivative of sin x is cos x.
 
Do you need this for school, or are you just curious?
 
user142019
Curious.
 
user142019
May be useful im Futur.
 
7:48 PM
Right, because at x = 0, the sine is 0, but the tangent has a slope of 1. (It ascends in a 45° angle.)
And at x = 90°, the sine reaches its maximum, the tangent has a slope of 0 (horizontal), and cos(90°) = 0. Isn't it beautiful? :)
By the way, if you derive sine four times in a row, you get back to sine again. That is, sin'''' = sin :)
sin -> cos -> -sin -> -cos -> sin
 
user142019
 
user142019
^ Plotted this.
 
Can you see/imagine the tangents of the red line at 0, 90, 180 and 270?
 
user142019
No. :L
 
Their slope is exactly the value of the blue line.
 
user142019
7:53 PM
Why doesn't the slope hit the red curve?
 
Compare the slope of the four green tangents with the corresponding values of the blue function.
It's 1, 0, -1 and 0.
Note that the second and fourth tangent are two different functions (const 1 and const -1), but they have the same slope 0.
And cosine crosses the x axis at those points :)
 
user142019
All I see is the outline of a mustache. :L
 
user142019
Well, there's always a vertical difference of 1 between the green tangents and the blue curve.
 
@rightfold I showed you four special cases. At all other points, the tangents will cross the function on at least another point :)
@rightfold Only in the four special cases. For 45°, the vertical distance is 0.
 
user142019
7:59 PM
That's where they cross right?
 
right
 
user142019
I still don't see how cos x is the derivative of sin x. xD
 
Oh, that is a mystery to me as well :)
 
user142019
@FredOverflow I don't see them cross anywhere except at 40º.
 
user142019
°º you use a different degree symbol.
 
8:01 PM
@rightfold They cross at 45 and 225.
@rightfold Mine is below the ESC key :)
 
user142019
I use MASCULINE ORDINAL INDICATOR (that sounds gay) and use DEGREE SIGN wut.
 
user142019
It means like 1st in 1º or 50th in 50º.
 
user142019
@FredOverflow I have § and ± below ESC.
 
user142019
º is option+0.
 
What is option?
 
user142019
8:04 PM
The Option key is a modifier key present on Apple keyboards. It is located between the Control key and Command key on a typical Mac keyboard. There are two option keys on modern Mac desktop and notebook keyboards, one on each side of the space bar. Apple commonly uses the symbol to represent the Option key. From 1980 to 1984, on the Apple II family, this key was known as the closed apple key, and had a black line drawing of a filled-in apple on it. (See command key for information about the history and the "open apple".) Since the 1990s, "alt" typically appears on the key, as well, f...
 
me no mac
 
user142019
Similar to alt on inferior systems.
 
alt+0 does nothing here
 
user142019
It even has a Unicode code point! U+2325 ⌥ option key
 
> Here is an a la carte menu of features or properties that are related to these terms; I have heard OO defined to be many different subsets of this list. [...] So OO is not a well defined concept. [...] Because OO is a moving target, OO zealots will choose some subset of this menu by whim and then use it to try to convince you that you are a loser. :)
> In that case, the only way OO can be defended is in the same manner as any other game or discipline -- by arguing that by giving something up (e.g. the freedom to throw eggs at your neighbor's house) you gain something that you want (assurance that your neighbor won't put you in jail).
 
user142019
8:06 PM
Object-oriented programming is a way of keeping data and functions together.
 
user142019
However the fuck that's implemented is irrelevant.
 
user142019
It can be done though classes (Simula-style), classes (Smalltalk-style), structs with function pointers, prototypes, whatever.
 
And since not all functions need to operate on data, it makes sense to put as little functions as possible into a class. Strangely enough, not many Java programmers seem to agree.
 
user142019
OOP in Go is übernice.
 
So why don't they rename it to GOOP? :)
 
user142019
8:10 PM
type Person struct {
    name string
    age  int
}

func (player *Player) CelebrateBirthday() {
    ++player.age
}

func main() {
    person := Person{
        name: "rightfold",
        age: 18,
    }
    person.CelebrateBirthday()
}
 
Ah, so you can write member functions outside of a class? Or is that even the only way?
@rightfold What is the purpose this? Making your dog feel bad by putting fake dog poo in your house? :)
> i like old VB but the new OOP VB.net piss me off. if i want OOP, i go with C#. i use VB for the spaghetti code and damn it that's how i like it. seriously, i love VB because i don't have to code it the OOP way but how do you reuse your code if you don't use OOP?
wat
 
user142019
> How do you reuse your code if you don't use OOP?
 
user142019
That's why they invented fucking subroutines.
 
Many OO folks don't seem to realize that instead of inheriting code, you can simply use it.
 
user142019
Pro tip: you can reuse code without OOP.
 
8:22 PM
> Making something ridiculously complex for the sake of making it simple is like trying to put out a fire with gasoline. Some programmers just need to take a deep breath and write code that is a delicious salami sandwich, and not an extravagantly prepared four course meal that tastes like shit.
Those analogies lol
 
user142019
Sonic hedgehog is a protein that in humans is encoded by the SHH (sonic hedgehog) gene. Sonic hedgehog is one of three proteins in the mammalian signaling pathway family called hedgehog, the others being desert hedgehog (DHH) and Indian hedgehog (IHH). SHH is the best studied ligand of the hedgehog signaling pathway. It plays a key role in regulating vertebrate organogenesis, such as in the growth of digits on limbs and organization of the brain. Sonic hedgehog is the best established example of a morphogen as defined by Lewis Wolpert's French flag model—a molecule that diffuses to for...
 
user142019
My favourite protein.
 
Was that discovered before or after Sega released their famous Jump'n'Run? :)
 
user142019
It was named after the Sega character.
 
user142019
Similar to Pikachurin.
 
8:24 PM
Does it collect coins and go super-fast through the body?
 
user142019
> The name of this "nimble" protein was inspired due to Pikachu's "lightning-fast moves and shocking electric effects".
 
> As for the main article, here's a true life example: a co-worker once made a "Convert" class, that didn't have any non-static member, just a few conversion methods. To top it off, he instantiated with "new" rather than just on the stack (this is in C++) and bloody LEAKED IT. Wow.
 
user142019
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO‌​OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO‌​OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO‌​OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
 
> The most common is the C coders who keep using char* and such in C++, complete with fixed sized buffers, overflows and other fun bits (or when using higher-level languages, can't wrap their heads around a closure). That said, they tend to have to type a lot more to do as much damage as the overzealous OO programmer, so I tend to prefer the C coder (and I can fix their code with small local patches instead of ripping apart some grandiose framework).
 
user142019
I prefer somebody who can actually program.
 
8:27 PM
Those are hard to find.
 
user142019
Not some cargo cult noob.
 
user142019
@FredOverflow I see one each day.
 
When you brush your teeth?
 
user142019
Ja.
 
You only brush your teeth once a day?
No wait, that's not a valid conclusion.
 
user142019
8:30 PM
@FredOverflow No. :P
 
user142019
I brush almost twice a day.
 
user142019
Sometimes during weekends I don't feel like it and I don't give a shit.
 
Brushing your teeth only once a day is not object-oriented.
 
user142019
new Caries();
 
You leaked caries. But at least you made sure it's initialized in case it's a POD :)
 
user142019
8:34 PM
@FredOverflow I'll be sure to keep a pointer around until I visit the dentist.
 
user142019
@FredOverflow I prefer C over Java because C allows you to write to-the-point code.
 
user142019
And C++ is just an inconvenient clusterfuck.
 
@rightfold wat
 
user142019
@FredOverflow wat wat
 
What is "to-the-point code", and how does C support it?
 
user142019
8:46 PM
Code that doesn't contain irrelevant crap like checked exceptions.
 
user142019
I like C.
 
There is so much wrong with C, but it certainly meets its design goals.
 
user142019
What's wrong with C?
 
user142019
Okay, the declaration syntax. :P
 
The preprocessor
 
user142019
8:51 PM
And the preprocessor.
 
Yeah, it sucks twice.
The "module system".
 
user142019
Go is like C but better.
 
user142019
They should name it C++. Oh wait.
 
You must declare functions first before you can call them. It really gets in my way of top-down-thinking.
 
user142019
Unfortunate though that Go has packages instead of modules. :'(
 
user142019
8:52 PM
@FredOverflow It's terrible.
 
Absence of a bool type prior to C99 also sucks.
And that whole array/pointer-confusion.
 
user142019
_Bool lol
 
user142019
Array to pointer decay in C is nice.
 
user142019
In C++ it's terrible.
 
unscoped enums also suck
Lack of RAII makes robust C code unreadable.
Also, lack of a real string type. Fuck you, char arrays.
 
user142019
8:55 PM
@FredOverflow Nah.
 
@rightfold Do I need to go on? :)
 
user142019
No.
 
user142019
I'm making a new graph.
 
@rightfold Robust C code is full of gotos (or even worse, heavily nested ifs) and manual release.
 
user142019
No.
 
8:56 PM
@rightfold Another sine/cosine graph? :)
 
user142019
@FredOverflow Robust C code is full of functions.
 
user142019
@FredOverflow no a bar chart.
 
@rightfold Write a C program to copy a file. It's not gonna look pretty if you cover all possible error scenarios.
@rightfold wat
 
user142019
@FredOverflow I'm almost done.
 
user142019
@FredOverflow not really.
 
8:58 PM
in C#, 7 secs ago, by FredOverflow
var square = x => x * x   // Why does this not work?
I trolled the C# room.
 
user142019
:)
 
What happened to your testicles?
 
user142019
I binned them.
 
user142019
And edited the message.
 
user142019
:D
 
user142019
9:02 PM
@FredOverflow I'm going to do quicksort manually to sort the bars.
 
Fuck I almost forgot I have University tomorrow! Somehow it felt like Saturday today :(
Or should I simply tell my students to stay at home and not come to the Scala seminar, because Go will drink its milkshake?
 
user142019
 
user142019
@FredOverflow :D
 
@rightfold I don't understand that expression, by the way. How does a language make milkshake?
 
user142019
9:10 PM
I have no idea.
 
user142019
shake(milk)
 
@rightfold How come C is below the C bar? :)
 
user142019
No idea.
 
user142019
C is less awesome than C.
 
user142019
Java is -Haskell.
 
9:11 PM
I would have estimated much worse :)
Can you plot those languages on a 2D useful/dangerous graph? :)
 
user142019
@FredOverflow Tell them that Scala sucks and that Go will run circles around Scala.
 
user142019
@FredOverflow Sure.
 
user142019
Gimme a few minutes.
 
user142019
 
user142019
I haven't really got any idea of Java's safety.
 
user142019
9:23 PM
You can surely not modify any random pointer, right?
 
user142019
In C# you can. :L
 
user142019
Also: don't miss PHP.
 
user142019
PHP does random side-effects even when you didn't ask for them.
 
lol, I only just noticed PHP in the diagram :)
 
user142019
"in"
 
10:00 PM
I'm gonna sleep now. Have a nice one.
 
I bet you people use spaces for indentation. Ugh.
 
user142019
Bye.
 
8 messages moved from Lounge<C++>
 
user142019
7 messages moved to Java
 

« first day (90 days earlier)      last day (803 days later) »