« first day (427 days earlier)      last day (466 days later) » 

4:03 AM
0
Q: AdBannerView Error - 10+ Copies

Alex BoultonI am trying to implement a shared ADBannerView, but receive the following error when using my app: WARNING: More than 10 instances of ADBannerView or ADInterstitialView currently exist. This is a misuse of the iAd API, and ad performance will suffer as a result. This message is printed only...

 
 
6 hours later…
9:38 AM
0
Q: NSNotification delegate does not trigger when called in Singleton

user2981756I have a viewcontroller called "display" and a singleton called “LibraryAPI”. I tried using NSSNotification but the selector (i.e.changeResultNotificationReceived) is not triggered. Both addobserver and postobserver were successfully called. I can’t find any solution to this problem. Please help ...

 
 
2 hours later…
11:23 AM
@rightfold You wish, look at all the feed spam :D
This is the new Hello World in Java 8:
public interface HelloWorld {
    public static void main(String...args) {
        System.out.println("Hi");
    }
}
Notice anything? :)
 
user1804599
12:07 PM
@FredOverflow dot dot dot
 
1:01 PM
@rightfold That was an intentional red herring.
 
user1804599
VARIADIC TEMPLATES ARE FUNADIC
 
Java does not have variadic templates.
 
user1804599
Good.
 
Look at the first line of that snippet!
 
user1804599
lol
 
user1804599
1:06 PM
Funny. :P
 
user1804599
Hey Fred.
 
user1804599
I got Styx compiler to work. :D
 
user1804599
You can write and call functions.
 
user1804599
And you can include string literals.
 
user1804599
And call Puts. :D
 
user1804599
1:10 PM
func MyPuts (s: string) {
    Puts s;
}

func ID (s: string) {
    s;
}

func PutsTwice (s: string) {
    s
    |> ID
    |> ID
    |> Puts;
    Puts <| (s |> ID);
}

func Main! {
    MyPuts <| "Hello, world!";
    PutsTwice <| "Hello, world!";
}
 
user1804599
This program compiles and runs!
 
cool
 
user1804599
The return types are inferred!
 
user1804599
If you do MyPuts s s; you get a type error. :)
 
Is |> built-in, or library code?
 
user1804599
1:10 PM
Built-in. :D
 
user1804599
x |> f is just syntactic sugar for f x.
 
So <| is entirely optional?
 
user1804599
Yes.
 
user1804599
f <| x is syntactic sugar for f x.
 
user1804599
1:11 PM
It is like $ in Haskell.
 
#define <|
 
user1804599
Worst code ever. :D
 
user1804599
I think I will not do currying, though.
 
user1804599
And no functional programming.
 
user1804599
1:17 PM
I like imperative programming.
 
user1804599
I want to keep it as simple as possible.
 
user1804599
And if you want decent FP you need extensive complicated type inference.
 
10:19 PM
0
Q: Unit testing for Singleton through Enum throws java.lang.NoClassDefFoundError

NiranjanThis is strange and I am not sure how to explain clearly. Please bear with me and look the code snippets for details. I implemented a singleton using enum. The enum has a private constructor in which I am doing few operations and validations before constructing the object. For all these validati...

 

« first day (427 days earlier)      last day (466 days later) »