Seagate to Shut Down One of Its Largest HDD Assembly Plants
anandtech.com106 pointsby damncabbage93 comments
[@bitemyapp] @KirinDave my first workflow video is up to
1,535 views on Youtube so far. Who knows how many people
have used my guide. I'm feeling good.
[@KirinDave] @bitemyapp It is not about your traffic, it is
about their excitement. Get over yourself.
[@bitemyapp] @KirinDave Drinking the haterade tonight. Some
of those pregger hormones transfer over?
Should ramp up theft of Clojure library authors >:)
[@KirinDave] @bitemyapp Yeah I'm hysterical that's real cool.
That covers a portion of the claim. (I'm trying to stay out of actually passing judgement on bitemyapp or his ">"-quoted defence or KirinDave's earlier claim.) function somefunction(somestring/*: string*/)/*: boolean */ {
var ret/*: boolean */;
...
return ret;
}
(See https://flowtype.org/blog/2015/02/20/Flow-Comments.html) var a: boolean = new Boolean(1);
// Produces:
// NewTypering.ts(29,5): error TS2322: Type 'Boolean' is not assignable to type 'boolean'. main = putStrLn "Hello, World!"
... you have a value that lines up with the expected return value of main "IO ()". More complicated examples, like main =
readLn >>= (\x -> putStrLn ("Hello, " ++ x))
... are doing the same thing (checking the types line up), just with more moving parts (the Monad thing you mentioned, which we're using to relate the "read line" function with the "print line" function). $('body').append('<style>.lesson,.post{visibility:visible;}</style>');
(I enjoyed reading the content, but found it infuriating to skim.) I'm of the opinion that languages around the 10 year mark
(which PHP is obviously well past) really ought to focus on
becoming the best X they can be, rather than chasing the
tail lights of constantly-moving best practice.
Would that include not adding: * Anonymous functions and closures
* Namespaces
* Late static binding
* Dynamic dispatching to static methods
* Rackup/SimpleHTTPServer-like web server
* "finally" in exception-handling
* Being able to call foo()[0] instead of the clumsy
assign-then-dereference two-step.
What does "the best PHP it can be" mean? Anonymous functions (for example) are arguably way outside the style of the PHP from ten years ago, but they're tremendously useful.
I agree, though, that compared to Haskell and Rust it doesn't give you much. Dialyzer is (intentionally) a fail-open checker that doesn't allow expressing generics; I've had a rough time getting it to tell me my code is wrong. Credo is (intentionally) just a style linter. "Just let it crash" isn't useful when you're talking about code that is going to break because of its structural incoherence (a class of errors type-checker are good at catching), and not because of transient errors in external dependencies.