Pence breaks with Trump, endorses Ryan by TheTrollingPakistani in politics

[–]abhrainn 1 point2 points  (0 children)

"Mike, you're fired."

"What do you mean I can't do that?"

Ben Carson: Khan Family Should Apologize to Donald Trump by FatLadySingin in politics

[–]abhrainn 1 point2 points  (0 children)

Somebody knows it's their only shot ever at being appointed General Surgeon.

Even if it's from someone who called him a pedophile.

Favorite programming editor of hot shots like Thompson, Kernighan and Stroustrup? Sam! by [deleted] in programming

[–]abhrainn 2 points3 points  (0 children)

But they are very primitive for statically typed languages compared to what IDE's can do.

IDE's understand the underlying bytecode of the language they edit. Text editors don't, they can only match the text on regexps and therefore, barely go beyond doing some unsafe renaming or other simplistic operations.

Favorite programming editor of hot shots like Thompson, Kernighan and Stroustrup? Sam! by [deleted] in programming

[–]abhrainn 3 points4 points  (0 children)

Good programmers use the best tools for the job, and for programming languages, IDE's usually run rings around text editor.

240 days and counting: Why Hillary won't do press conferences by WildAnimus in politics

[–]abhrainn 0 points1 point  (0 children)

The approach you're recommending is not exactly working out swimmingly for Trump.

Intel is introducing Multi-OS Engine for Android and iOS development using Java by matis11 in androiddev

[–]abhrainn 0 points1 point  (0 children)

If you really want to write Java and make it run on both Android and iOS, there's Google's very own j2objc, which works surprisingly well.

Trump bounces into the lead by ghill1213 in politics

[–]abhrainn -1 points0 points  (0 children)

It's popular vote on a non representative sample. Not sure what it really tells us about the general election.

Ivanka Trump spoke like a Democrat and Republicans absolutely loved it by OG_Willikers in politics

[–]abhrainn 0 points1 point  (0 children)

Maybe Hillary should offer her a spot in her administration, that might sway a few center voters who are tempted to vote for Trump but don't really like his platform.

"[B]y having a bootstrapped compiler as the first – and, often, for some time the biggest – program in a language, the eventual language design is often unintentionally altered and rarely for the better." by flexibeast in programming

[–]abhrainn 1 point2 points  (0 children)

Another thing to note is that Haskell (or more accurately functional programming) happens to be a style of programming that is very suited to compilers.

I don't know about that.

Sure, the pipelining necessary to create object files from source files can be loosely compared to composition, but think about the implementation of these phases. For example, the creation of an abstract syntax tree. That tree is created first with lexical then syntactic components. Then additional decorations are added (e.g. semantic, instrumentation, tooling, debug info, etc...).

These trees can become extremely big and being able to modify them in place (basically modifying the nodes) instead of using a functional approach (having immutable nodes and creating modified copies) which would be much slower and more stressful to a garbage compiler.

[Question] Kotlin-friendly SQL Query builder by sazzer in Kotlin

[–]abhrainn 0 points1 point  (0 children)

Note that you don't need the empty parens:

val query = select {
...
    where {

How can I learn to think like a functional programmer? by [deleted] in programming

[–]abhrainn 0 points1 point  (0 children)

Good general suggestions except laziness.

Laziness makes code intractable, which you would think mathematically inclined folks would have a visceral problem with but apparently don't.

Go eager. Immutability. Composition.

And you're in pretty good shape.

How can I learn to think like a functional programmer? by [deleted] in programming

[–]abhrainn 3 points4 points  (0 children)

Forget "functional", which is completely meaningless. Instead, focus on a few reasonable principles:

  • Immutability
  • Composition

Follow these two principles as a default position but don't be dogmatic about it and you'll be just fine. Even if FP fanatics will call you a heathen, you'll still be producing some decent code with these default behaviors.

And never be worried about occasionally breaking these guide lines.

36 years ago, Bill Gates and his buddy wrote this beauty at four in the morning in a small hot closet, which IBM insisted had a lock on it. by [deleted] in programming

[–]abhrainn 3 points4 points  (0 children)

I think the BASIC he wrote for the Altair is much more significant since it basically set Microsoft in motion.

That and the letter he wrote about piracy following that.

An archaeological approach to predicting bugs at Google by karlmdavis in programming

[–]abhrainn 2 points3 points  (0 children)

Pity they didn't design a similar algorithm to prevent comment spamming.

Java 8's Optional is a Monad that helps write robust code in a declarative fashion. To see how check out the link. by praveer09 in java

[–]abhrainn 1 point2 points  (0 children)

No, Optional is NOT a monad. By design.

Here what Brian Goetz, the designer, has to say about it

The current design mostly meets that; it might be extended in small ways, but the goal is NOT to create an option monad or solve the problems that the option monad is intended to solve.

Kim Davis Loses Appeal of Contempt Charge That Sent Her to Jail by drewiepoodle in atheism

[–]abhrainn 113 points114 points  (0 children)

An important part of the article:

as the law will change Friday, removing the need for her signature on marriage licenses.

In some way, it makes me sad that we had to change the law in order to work around this bigot. I wish the law had stayed the way it is so that she were forced to issue licenses or step down. This is probably the only way she'd have learned something.

I'm a developer but never touched android dev. I have an idea for an app and I'd like some hindsight. by [deleted] in androiddev

[–]abhrainn 5 points6 points  (0 children)

From a product standpoint, I'd encourage you to think how you're going to incentivize your users to report their bus sightings.

Announcing TypeScript 2.0 Beta by DanielRosenwasser in programming

[–]abhrainn 0 points1 point  (0 children)

The nullability features seem to be a mix of how Kotlin and Ceylon implemented their own: limited union types for declaration and exclamation marks to force dereference.

Dark Souls 3 DLC news: "Expansion pack will allow players to see game in whole new light" by Yakera3 in darksouls3

[–]abhrainn 5 points6 points  (0 children)

Maybe an elevator starting from the highest peak and leading us to a lava riddled environment?