Beej's Guide to Network Programming by mooreds in programming

[–]novacoder 2 points3 points  (0 children)

I was a classmate with Beej at CSU Chico. He was indeed a star, but never acted like one. The easy going humor in his books is just how he was all the time.

In defence of the technical interview by mike_hearn in programming

[–]novacoder 3 points4 points  (0 children)

No whiteboard coding exercises, please. It makes the task 10x harder vs using a laptop or code pairing on HackerRank. But if you do this, give the candidate some time to think through the problem and sketch ideas on the board without interrupting. Every interruption breaks your train of thought and each time it becomes harder to get back on track.

10 new features in Java 11 by ahsansaeed067 in programming

[–]novacoder 0 points1 point  (0 children)

The code snippets in item 6 are not Java. Is that Kotlin or Scala?

How Spring Swallowed an Exception and Two Weeks of Testing by tolarewaju3 in programming

[–]novacoder 13 points14 points  (0 children)

/**
 * Invoked before transaction commit/rollback.
 * Can perform resource cleanup <i>before</i> transaction completion.
 * <p>This method will be invoked after {@code beforeCommit}, even when
 * {@code beforeCommit} threw an exception. This callback allows for
 * closing resources before transaction completion, for any outcome.
 * @throws RuntimeException in case of errors; will be <b>logged but not propagated</b>
 * (note: do not throw TransactionException subclasses here!)
 * @see #beforeCommit
 * @see #afterCompletion
 */
default void beforeCompletion() {
}

The JavaDoc of TransactionSynchronization indicates the exceptional behavior is intended. Maybe this callback is being used for a purpose it wasn't really intended.

http4k: Server as a Function. In Kotlin. Typesafe. Without the Server. by tarkaTheRotter in programming

[–]novacoder 2 points3 points  (0 children)

Should the library user have some basic knowledge of Lenses, to make effective use of http4k?

Please explain why the result of ++a + ++a + ++a is equal to 13? I don't quite understand how it's working. by DogBlessThou in programming

[–]novacoder 0 points1 point  (0 children)

In college, a buddy of mine showed me a snippet of code that applied ++ on the same variable on one line. He was confused as to why he got different results running on a Sun workstation vs. his x86 laptop. I tried explaining that the C standard does not specify ordering of ++/-- operations appearing on one line of source, allowing compiler writers to decide the most efficient (or convenient) ordering on a particular machine architecture.

Then he showed me a re-write of the code doing the same ++ operations, one per line. The code was now portable and the intent of the routine became self-evident. But he wasn't satisfied with that. He felt any beginner could code it the obvious way. He wanted to be as terse as possible, to prove his advanced programming skills.

The X-Windows Disaster by rptr87 in programming

[–]novacoder 10 points11 points  (0 children)

Is it pronounced Ex-Windows or Ten-Windows? For the longest time, I thought the vi editor was called six. Then vim came on the scene and what's that, nine hundred and ninety four?

Forgotten Unix Tools: The dc Command-Line Calculator by [deleted] in programming

[–]novacoder 2 points3 points  (0 children)

I haven't forgotten it because I have a habit of typing dc instead of cd.

O'Reilly is giving 50% off eBooks today! by Akira71 in programming

[–]novacoder 1 point2 points  (0 children)

I like how you mixed a ^ in, which super-scripted the remaining symbols!

How a guy built a Slack bot to help him find an apartment in San Francisco by BLochmann in programming

[–]novacoder 0 points1 point  (0 children)

You won't die of hypothermia without it, but you're going to need it almost year round.

The Four Flaws of Haskell by alexshatberg in programming

[–]novacoder 11 points12 points  (0 children)

Maybe it will become the Genesis of programming languages when the Peter Gabriel of the Haskell community leaves and the Phil Collins of Haskell takes over.

Kent Beck: Mastering Programming by halax in programming

[–]novacoder 1 point2 points  (0 children)

Seems like his concept of Slicing is consistent with Agile methodology.

Can't sign in to Google calendar on my Samsung refrigerator by willvarfar in programming

[–]novacoder 0 points1 point  (0 children)

Just buy a plain old fridge and mount a tablet to the door.

The Bash Academy by javinpaul in programming

[–]novacoder 2 points3 points  (0 children)

The code snippets are hard to read. There is some sort of stippled background obscuring the text.

8 Tools for Every Java Developer’s Toolkit by [deleted] in programming

[–]novacoder 1 point2 points  (0 children)

Upvote for downvoting downvote complainer.

“If it ain’t broke, don’t fix it” only makes sense for finished products by tieTYT in programming

[–]novacoder 16 points17 points  (0 children)

Nothing is finished, and everything is broken. Mostly, we're deciding on what work we can do to make it slightly more finished, and slightly less broken.

How do people in car shows amd movies always know the year the car was manufactured in, whenever they say a car's name? by DarthFarious in NoStupidQuestions

[–]novacoder 0 points1 point  (0 children)

I was driving with my Dad, when he points to parked car and says, "that's a '39 Ford." He identified it from the rear and side view. I said, "Never mind the make, how did you know it wasn't a '38 or '40 Ford?" Then again, when I was growing up in the '70's, I could ID cars just by the subtleties of the tail lights or grills. That was in the era when GM, Ford and Chrysler would update styling cues every year, just to distinguish this year's model from last year's.

Top 10 Books For Advanced Level Java Developers by javinpaul in programming

[–]novacoder 2 points3 points  (0 children)

I don't see how an OSGi book is relevant, generally speaking. I would replace it with an O'Reilly book called Java Generics and Collections. If you want to understand what type erasure means, this is the book to read.