Re: [The Java Posse] Any thoughts on Swift?

2014-06-11 Thread Kevin Wright
to javaposse+unsubscr...@googlegroups.com. To post to this group, send email to javaposse@googlegroups.com. Visit this group at http://groups.google.com/group/javaposse. For more options, visit https://groups.google.com/d/optout. -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn

Re: [The Java Posse] Any thoughts on Swift?

2014-06-11 Thread Kevin Wright
a paid-up developer is right, but apparently only while it's in beta. So Kevin, are you the English guy with the strong regional accent on the roundups? I can't remember which accent, Newcastle or Cornwall or something. On Wed, Jun 11, 2014 at 3:12 PM, Kevin Wright kev.lee.wri...@gmail.com

Re: [The Java Posse] Any thoughts on Swift?

2014-06-06 Thread Kevin Wright
In the interests of playing Devil's advocate here, there's a very convincing argument to be made here for the middle not being the best at all: Courtesy of Erik Meijer: http://queue.acm.org/detail.cfm?id=2611829 On 6 June 2014 17:19, Cédric Beust ♔ ced...@beust.com wrote: I find all these

Re: [The Java Posse] Any thoughts on Swift?

2014-06-06 Thread Kevin Wright
Nope! C or Idris, I'll also accept Assembler. and Scala's the least bad you can get if otherwise tied to the JVM. :) On 6 June 2014 18:00, Cédric Beust ♔ ced...@beust.com wrote: So you're arguing for the Java approach then? -- Cédric On Fri, Jun 6, 2014 at 9:49 AM, Kevin Wright

Re: [The Java Posse] Any thoughts on Swift?

2014-06-05 Thread Kevin Wright
This one has also been doing the rounds recently: https://leverich.github.io/swiftislikescala/ On 5 June 2014 16:41, Josh Berry tae...@gmail.com wrote: On Thu, Jun 5, 2014 at 10:59 AM, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: How much greater? Because in Java GC is hardly

Re: [The Java Posse] Any thoughts on Swift?

2014-06-04 Thread Kevin Wright
No, ARC is emphatically *not* garbage collection. It's not new either, Objectionable-C does it, as does auto_ptr in C++ There's a pretty accurate summary of the language on quora: http://www.quora.com/How-does-Swift-Apple-Programming-Language-compare-with-other-modern-programming-languages

Re: [The Java Posse] Re: Any Excitement about JDK 8?!?

2014-03-01 Thread Kevin Wright
You can go two steps further: l.sum It relies on implicits/typeclasses though - so some people might criticise this sample for being overly complex. On 1 March 2014 02:03, Reinier Zwitserloot reini...@gmail.com wrote: On Friday, 28 February 2014 18:50:50 UTC+1, Cédric Beust ♔ wrote:

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-28 Thread Kevin Wright
As much as I am regularly frustrated by certain things in Java that are so simple and elegant in other languages such as Scala, I fully support the decision of Brian and his team to be very parsimonious in what they add to the language and how they add it. And this sharp focus allows them to

Re: [The Java Posse] Re: Any Excitement about JDK 8?!?

2014-02-28 Thread Kevin Wright
* Java's lambda approach is unique. It is more concise than scala's (due to not needing to mention the types of the variables), and the type system does not involve monstrosities such as Function22A, B, C, ... all the way through W. As far as I know, no language, certainly no

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-26 Thread Kevin Wright
There's a lot of FUD here. Note that coopsoft here are encouraging your doubt in ForkJoin so as to try and sell you a competing alternative: http://coopsoft.com/JavaProduct.html Using the same logic I could claim that telephones are broken by design. Because nobody else can call you if you go

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-25 Thread Kevin Wright
Discussions of age won't help much here... Just consider that Java is still trying to catch up to Smalltalk in oh-so-many ways, and that Clojure is a LISP - making it older than I am. The critical factor here isn't age, so much as strength of ecosystem; the two things don't necessarily

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-25 Thread Kevin Wright
to explore ideas On 25 February 2014 21:44, Cédric Beust ♔ ced...@beust.com wrote: On Tue, Feb 25, 2014 at 12:52 PM, Kevin Wright kev.lee.wri...@gmail.comwrote: Discussions of age won't help much here... Just consider that Java is still trying to catch up to Smalltalk in oh-so-many ways

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-25 Thread Kevin Wright
orientation is overrated anyway. 3, see default methods in Java 8. Let's start counting Java 8, it's not too far away. 5, you can do some REPLy stuff in a debugger and even reload changed classes, admittedly with too many limitations. On Tue, Feb 25, 2014 at 1:52 PM, Kevin Wright kev.lee.wri

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-24 Thread Kevin Wright
On 24 February 2014 22:10, Cédric Beust ♔ ced...@beust.com wrote: On Mon, Feb 24, 2014 at 9:59 AM, phil swenson phil.swen...@gmail.comwrote: The reason I brought up Play/Akka is as far as I know is there is no equiv on ceylon/kotlin/etc. if someone wants to adopt a new language, it sure is

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-22 Thread Kevin Wright
On 22 February 2014 03:11, Cédric Beust ♔ ced...@beust.com wrote: On Fri, Feb 21, 2014 at 5:47 PM, Ricky Clarkson ricky.clark...@gmail.comwrote: To me, List(1, a) should be a type error as it is in Haskell ([1, a]) I sympathize with this view. I can't remember last time I needed a

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-21 Thread Kevin Wright
the things that Scala has to offer, but if there were equally capable alternatives then I'd be advocating those too :) On 21 February 2014 08:04, Rakesh rakesh.mailgro...@gmail.com wrote: Where yours Kevin is 1. Scala domination. 2. See 1 On 20 Feb 2014 15:15, Kevin Wright kev.lee.wri...@gmail.com

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-21 Thread Kevin Wright
of the fn method. On 21 February 2014 17:26, Cédric Beust ♔ ced...@beust.com wrote: On Fri, Feb 21, 2014 at 3:08 AM, Kevin Wright kev.lee.wri...@gmail.comwrote: Of those, only Clojure and Scala run on the Java platform and are relevant to this forum. I'd argue Kotlin and Ceylon belong

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-21 Thread Kevin Wright
: On Fri, Feb 21, 2014 at 6:08 AM, Kevin Wright kev.lee.wri...@gmail.comwrote: ntel have already released the 15-core Xeon and the 72-core Knight's landing processors. Concurrency is only getting more prevalent as time passes, and people need to grasp it by the horns now. While I can't help

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-21 Thread Kevin Wright
to a List[Any] any day. On Fri, Feb 21, 2014 at 10:52 AM, Cédric Beust ♔ ced...@beust.com wrote: On Fri, Feb 21, 2014 at 10:14 AM, Kevin Wright kev.lee.wri...@gmail.com wrote: It can directly duplicate anything available in Kotlin or Ceylon using nothing more than built-in features

Re: [The Java Posse] TDD in 2014

2014-02-21 Thread Kevin Wright
Moi? I think TDD rocks! If forced to choose, I'd pick pairing/code review in preference to TDD; but I wouldn't like to be forced to choose. As for TDD itself... I like to capture facts in the type system where I can, so that the code doesn't even compile if something is wrong. After that I

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-21 Thread Kevin Wright
On 21 February 2014 21:35, Cédric Beust ♔ ced...@beust.com wrote: On Fri, Feb 21, 2014 at 1:08 PM, Kevin Wright kev.lee.wri...@gmail.comwrote: Sure, HLists handle this with aplomb: val xs = 1 :: 'a' :: 3.0f :: hello world :: HNil And this isn't just a List of Int | Char | Float | String

Re: [The Java Posse] TDD in 2014

2014-02-21 Thread Kevin Wright
Good point! Yes, I'll always write a prototype where I can - the whole write one to throw away principle, just to get an idea of the problem space. TDD just gets in the way there. Then for the next iteration I'll use TDD once I know where I'm heading. It's not exactly hard and fast though. For

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-20 Thread Kevin Wright
Very tongue-in-cheek... but this amused me, and it seems relevant to the discussion: http://blog.plover.com/prog/Java.html -- You received this message because you are subscribed to the Google Groups Java Posse group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-20 Thread Kevin Wright
That's an easy one :) a) The overthrow of inflexible management b) Groovy advocacy On 20 Feb 2014 14:11, Russel Winder rus...@winder.org.uk wrote: On Wed, 2014-02-19 at 17:58 -0500, Oscar Hsieh wrote: […] By the way, you do realize that saying Java programmers are not actually that

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-19 Thread Kevin Wright
ticks all the boxes that matter to ME. I really HATE virus checkers as they feel like a tax on my new hardware, preventing it from reaching its full potential. The alternative is good enough to let me do what i want to do without missing out on anything. Rakesh On 18 February 2014 23:20, Kevin

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-19 Thread Kevin Wright
On 19 February 2014 22:10, Mark Derricutt m...@talios.com wrote: On 20 Feb 2014, at 9:46, phil swenson wrote: IMO the main thing scala has going for it is Play/Akka…. You mean like Groovy and Grails? Surely *you* mean like Java and SpringMVC? -- You received this message because you are

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-19 Thread Kevin Wright
I've actually found that Scala is a very effective gateway to many of these technologies. If Hadoop is your thing, just compare cascading http://www.cascading.org/to scalding https://github.com/twitter/scalding. Working with immutability and having lambdas available leads to a far friendlier

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-18 Thread Kevin Wright
On 18 February 2014 14:45, Cédric Beust ♔ ced...@beust.com wrote: On Tue, Feb 18, 2014 at 12:20 AM, Mark Derricutt m...@talios.com wrote: On 14 Feb 2014, at 10:13, Jan Goyvaerts wrote: I think the mentioned downsides summarize it quite well: It is already obsolete - before even being

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-18 Thread Kevin Wright
On 18 February 2014 22:39, Rakesh rakesh.mailgro...@gmail.com wrote: Hi Clay, I have this theory, its called 'The theory of good enough'. I use an Android phone and tablets because they are 'good enough' to ditch Apple and its closed ecosystem. So... Judging on the openness of the

Re: [The Java Posse] Automatically starting a java process on startup

2014-02-13 Thread Kevin Wright
Would now be a good time to advocate in favour of the Play framework? On 13 February 2014 20:25, clay claytonw...@gmail.com wrote: I'd second the recommendation to use an embedded server. I was really happy with Grizzly. I couldn't see any advantages that embedded Jetty had over embedded

Re: [The Java Posse] Automatically starting a java process on startup

2014-02-13 Thread Kevin Wright
On 13 February 2014 20:49, clay claytonw...@gmail.com wrote: Sure. Play is for more full web applications with MVC and server-side generated HTML, right? Not so much. Ask Google for Play Framework REST and you'll get a ton of hits. It has JSON support baked in and everything. Dropwizard

Re: [The Java Posse] Any Excitement about JDK 8?!?

2014-02-13 Thread Kevin Wright
On 13 February 2014 21:06, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Thu, 13 Feb 2014 21:46:16 +0100, clay claytonw...@gmail.com wrote: - My employer will likely not approve any JDK 8 work for three years or so. ... which is perhaps one reason for which there's not much

Re: [The Java Posse] Automatically starting a java process on startup

2014-02-10 Thread Kevin Wright
The best advice is probably to use Jetty It seems to have much better support for running as an embedded container, I've never seen a solution with Tomcat that didn't look cumbersome. You might also investigate if you *truly* need a container. I'm guessing that your dependency on Spring demands

Re: [The Java Posse] Automatically starting a java process on startup

2014-02-10 Thread Kevin Wright
to emulate. Its irrelevant whether it is jetty or tomcat. What I need is an easy way to do : java -jar myapp.jar Cheers Rakesh On 10 February 2014 10:13, Kevin Wright kev.lee.wri...@gmail.com wrote: The best advice is probably to use Jetty It seems to have much better support for running

Re: [The Java Posse] Restful interfaces

2014-02-05 Thread Kevin Wright
On 5 February 2014 14:00, Rakesh rakesh.mailgro...@gmail.com wrote: Anyone see any issues with removing things from the url and moving to the headers? Kevin, I believe your company has used device recognition in urls and parameter values - do you think thats a good approach or just legacy?

Re: [The Java Posse] Restful interfaces

2014-02-05 Thread Kevin Wright
, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: On Wed, 05 Feb 2014 15:21:03 +0100, Kevin Wright kev.lee.wri...@gmail.com wrote: If you're thinking to serve dynamic content, then don't! It really messes with caching, CDNs, etc. A much nicer approach is to have distinct resources

Re: [The Java Posse] Restful interfaces

2014-02-02 Thread Kevin Wright
The biggest insight is *why* do REST at all? The main reason, to me at least, is because it allows you to leverage off-the-shelf HTTP caching. This is true even if you don't follow HATEOAS in full. It's true if you version via accept headers or if you version within the URL (either in the path

Re: [The Java Posse] Re: Software versioning

2014-01-18 Thread Kevin Wright
://groups.google.com/groups/opt_out. -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype: kev.lee.wright steam: kev_lee_wright My

Re: [The Java Posse] New website

2013-10-02 Thread Kevin Wright
://groups.google.com/groups/opt_out. -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype: kev.lee.wright steam: kev_lee_wright My

Re: [The Java Posse] NEED MORE CANDIDATESl SETTING UP INTERVIEWS: BUSINESS OBJECTS/SAP BW DEVELOPER]

2013-08-01 Thread Kevin Wright
Well, if everyone on this list were to send a copy of the latest gzipped linux kernel to nav...@lexisstaffing.com - renamed as resume.doc and attached to an email with the subject for your consideration (or equivalent)... I somehow imagine it would mysteriously resolve itself before too much

Re: [The Java Posse] Re: Java's Optional gets filter, map and flatMap

2013-06-04 Thread Kevin Wright
to javaposse+unsubscr...@googlegroups.com. To post to this group, send email to javaposse@googlegroups.com. Visit this group at http://groups.google.com/group/javaposse?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Kevin Wright mail: kevin.wri...@scalatechnology.com

Re: [The Java Posse] Re: #418: Comments should be treated as a lesser-evil 'code smell'.

2013-04-16 Thread Kevin Wright
I'd have to disagree. For constraints you're much better doing it in the type system, where the compiler can check things for you. e.g. Provide an argument of type ValidatedId instead of a String with a bunch of annotations. I'm also curious to see if the new 'Optional' type gets much adoption

Re: [The Java Posse] #418: Comments should be treated as a lesser-evil 'code smell'.

2013-04-15 Thread Kevin Wright
It should *always* be the simplest thing that could possibly work, my experience is that the bit in doubt is often the definition of work in question, especially if that definition has evolved over time. For example, working could include the need to handle malformed data, or backwards

Re: [The Java Posse] Re: Book mention in episode #415

2013-04-12 Thread Kevin Wright
I'd also recommend Rule 34 by Chales Stross, and Nexus by Ramez Naam. Both good books with some interesting takes on the evolution of VR On 12 April 2013 11:50, Jan Goyvaerts java.arti...@gmail.com wrote: Terry Pratchett's, Only you can save mankind, is probably something of the same kind.

Re: [The Java Posse] Re: Book - JavaScript for Java Programmers?

2013-04-06 Thread Kevin Wright
Cedric's just biased in favour of angular because they use ng as a prefix :) Instead of e.g. liking the way it plays up to the characteristics of javascript and the DOM, rather than trying to shoehorn logic into a paradigm that doesn't quite fit. On 6 Apr 2013 13:59, John Ament

Re: [The Java Posse] Re: Book - JavaScript for Java Programmers?

2013-04-06 Thread Kevin Wright
undisputed... are you sure you don't mean undisclosed? There must have been at least some disagreement over what percentage of their purchase price you claimed in royalties. On 6 April 2013 14:51, Cédric Beust ♔ ced...@beust.com wrote: On Sat, Apr 6, 2013 at 6:20 AM, Kevin Wright kev.lee.wri

Re: [The Java Posse] Apple attacked too...

2013-02-27 Thread Kevin Wright
Can you run Azul's Zing on it efficiently? On 27 February 2013 10:18, Casper Bang casper.b...@gmail.com wrote: On Wednesday, February 27, 2013 11:09:30 AM UTC+1, fabrizio.giudici wrote: Probably even better is going with a VM... VirtualBox - A great way to encapsulate our buggy JRE!

Re: [The Java Posse] Book reference in A Waste of Time episode

2013-02-26 Thread Kevin Wright
Escalate the thing then, it's just too good! After that you want Rule 34 by Charles Stross and Nexus by Ramez Naam. Both also very good, just not as good as Ready Player One. On 27 February 2013 03:37, Mark Derricutt m...@talios.com wrote: Ready Player One by Ernest Cline -

Re: [The Java Posse] Re: Why do seemingly intelligent people still hold incorrect assumptions?

2013-02-19 Thread Kevin Wright
I'm sure I could work out something about mining the lodes and refining then from virgin XML ore into pure annotations. Just need a shorter/wittier way to say it :) On 19 February 2013 09:44, Joseph Ottinger j...@enigmastation.com wrote: Your wrong, spring still needs lodes of xml and its

Re: [The Java Posse] Re: Why do seemingly intelligent people still hold incorrect assumptions?

2013-02-19 Thread Kevin Wright
It was the missing apostrophe in its that gave you away :) Your *true* troll tends to make that mistake the other way round… On 19 February 2013 17:39, Joseph Ottinger j...@enigmastation.com wrote: Ha! Why would I try to disguise who I am? Heck, I thought my post was absurdly obvious from the

Re: [The Java Posse] remove ask toolbar

2013-02-02 Thread Kevin Wright
I think that, now the genie is out of the bottle, anyone who cares *must* sign it. If the petition exists and doesn't get many signatories, then it sends a very clear message to Oracle that people aren't overly concerned and they can continue their profiteering shenanigans, even whilst we all

Re: [The Java Posse] about java chat rooms

2013-02-02 Thread Kevin Wright
What are you asking here? How to aggregate multiple messages with a threading/actor/ring buffer model? How to display a sequence of messages on the command line, or a web page, or in a swing app? How to model people, message and rooms within Java 's OO paradigm? As it stands, your question is

Re: [The Java Posse] remove ask toolbar

2013-02-02 Thread Kevin Wright
2013 15:30:57 +0100, Kevin Wright kev.lee.wri...@gmail.com wrote: It would be better for the thing to not exist at all than for it to not meet the target. Well, this democracy (at least, in the internet declination). If just a handful of people sign it, it means it's not an important

Re: [The Java Posse] Episode 404...

2013-01-22 Thread Kevin Wright
There's hope.. At least one place in the US is most definitely metric. Not once have I seen an episode of E.R. where the doctor cries: one third of a fluid ounce of epinephrine, stat! On 22 January 2013 17:04, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Tue, 22 Jan 2013 17:50:34

Re: [The Java Posse] Acer C7 Chromebook

2013-01-16 Thread Kevin Wright
I wouldn't jump to that conclusion… http://www.geek.com/articles/chips/samsung-chromebook-runs-ubuntu-20121121/ On 16 January 2013 09:58, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Wed, 16 Jan 2013 10:30:17 +0100, Rakesh rakesh.mailgro...@gmail.com wrote: Not used on myself

Re: [The Java Posse] Is retaining failed credentials legal?

2013-01-14 Thread Kevin Wright
That depends on what you mean by retain. Personally, I *hate* websites that force me to type in my password again because some other field failed validation. For bonus annoyance points they test the captcha as well. On 14 Jan 2013 21:20, Markos Fragkakis markos.fragka...@gmail.com wrote:

Re: [The Java Posse] Re: From Project .Lombok Group on the JSR process...

2013-01-07 Thread Kevin Wright
On 7 January 2013 11:13, Casper Bang casper.b...@gmail.com wrote: On Sunday, January 6, 2013 11:24:41 PM UTC+1, Simon Ochsenreither wrote: OpenJDK is as much open source as Android: it is in the licensing sense; but not in the community and collaboration sense. Someone should probably

Re: [The Java Posse] Re: From Project .Lombok Group on the JSR process...

2013-01-07 Thread Kevin Wright
On 7 January 2013 12:57, Casper Bang casper.b...@gmail.com wrote: In Scala at least, I'm finding almost the entire community still think of themselves as Java programmers. Java nowadays is first and foremost a platform, and you're still programming against Java even if you're not not using

Re: [The Java Posse] Re: Keeping Track of Multiple Passwords

2012-12-18 Thread Kevin Wright
, visit this group at http://groups.google.com/group/javaposse?hl=en. -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype

Re: [The Java Posse] Re: Keeping Track of Multiple Passwords

2012-12-17 Thread Kevin Wright
At this point, you're probably being over-paraniod in the wrong direction! So far as I'm aware, you're at higher risk of having your card cloned from a cardholder-not-present transaction over the phone, or from day-0 exploit that logs your keyboard/clipboard, or from a remote website being

Re: [The Java Posse] Re: Don't be evil(?)

2012-12-16 Thread Kevin Wright
Stop corporation tax entirely. Tax is NOT a cost, even though it's typically accounted as such. Tax is a distribution just as dividends are, and you don't very often see companies seeking to minimise dividends because they're cash leaving the company that should be treated as a cost.

Re: [The Java Posse] Re: Don't be evil(?)

2012-11-14 Thread Kevin Wright
Someone will ALWAYS find a way around whatever laws are put in place, perhaps a better approach would be to play these companies at their own game. A game where brand is *everything* Prime-time TV adverts, funded by government, in which the worst tax evasion offenders are daily named and shamed.

Re: [The Java Posse] Re: Don't be evil(?)

2012-11-14 Thread Kevin Wright
their tax! and given that the only people with access to said tax revenue are the government... On 14 November 2012 12:17, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Wed, 14 Nov 2012 13:08:01 +0100, Kevin Wright kev.lee.wri...@gmail.com wrote: Prime-time TV adverts, funded

Re: [The Java Posse] Re: java.util.OptionalT (Java 8)

2012-10-26 Thread Kevin Wright
It's worth mentioning some of what Scala says no to then. Primitives Static methods Checked exceptions Disjoint multiple constructors null Default mutable collections Non-returning statements Special-case syntax for string concatenation, catch blocks and Enums It can't say no to null entirely,

Re: [The Java Posse] java.util.OptionalT (Java 8)

2012-10-25 Thread Kevin Wright
Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype: kev.lee.wright steam: kev_lee_wright My point today is that, if we wish to count lines

Re: [The Java Posse] Returning Void

2012-10-21 Thread Kevin Wright
On 21 October 2012 23:48, Reinier Zwitserloot reini...@gmail.com wrote: On Monday, October 15, 2012 2:42:11 PM UTC+2, Simon Ochsenreither wrote: Unfortunately, introducing this kind of concept is exactly the kind of thing java does NOT do, and languages like Scala DO do: it's not a matter

Re: [The Java Posse] So, nobody uses Java on the desktop, right?

2012-10-19 Thread Kevin Wright
Now would be a good time to point out the etymology of the word prove! Contrary to current usage, its original meaning is test. So a proof is just a test, and not necessarily one that has been passed! http://en.m.wiktionary.org/wiki/prove#section_1 On Oct 19, 2012 8:54 PM, Josh Berry

Re: [The Java Posse] Returning Void

2012-10-15 Thread Kevin Wright
On 15 October 2012 12:01, Reinier Zwitserloot reini...@gmail.com wrote: On Monday, October 8, 2012 1:33:06 AM UTC+2, Simon Ochsenreither wrote: I think it is an interesting example how some pragmatic and superficially simpler approach tends to break down and cause complexity in both the spec

Re: [The Java Posse] Returning Void

2012-10-15 Thread Kevin Wright
Void isn't quite right though. It corresponds to return, but with no useful information, which isn't the same thing as not returning at all. It's the difference between an empty tuple and a thrown exception. On 15 October 2012 13:47, Casper Bang casper.b...@gmail.com wrote: Yes, java has no

Re: [The Java Posse] Returning Void

2012-10-07 Thread Kevin Wright
Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype: kev.lee.wright steam: kev_lee_wright My point today is that, if we wish to count lines

Re: [The Java Posse] Re: Java Lambda Question

2012-10-03 Thread Kevin Wright
(int[] performance) -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype: kev.lee.wright steam: kev_lee_wright My point today

Re: [The Java Posse] Re: Java Lambda Question

2012-10-03 Thread Kevin Wright
from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en. -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright

Re: [The Java Posse] Re: Java Lambda Question

2012-10-03 Thread Kevin Wright
moved to add declaration-site variance. Not impossible, just challenging. On Oct 3, 2012 6:37 PM, Kevin Wright kev.lee.wri...@gmail.com wrote: On top of this, reification forces you to even some aspect of your type system at the byte code let level. Imagine if Java already had reified

Re: [The Java Posse] Re: Java Lambda Question

2012-10-02 Thread Kevin Wright
Coming from the other direction, I'd be very surprised if other JVM languages don't begin offering a solution based on invokedynamic once Java 8 adoption takes off. Given that Oracle will be optimising the VM for this pattern in particular, the benefits in terms of size, performance, and interop

Re: [The Java Posse] Re: Java Lambda Question

2012-10-02 Thread Kevin Wright
directions. The main concerns are much more along the lines of offering as much added value while preserving backward compatibility, two objectives that are, sadly, very strongly at odds with each other. -- Cédric -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn

Re: [The Java Posse] Re: Java Lambda Question

2012-10-02 Thread Kevin Wright
, did you read them? You're not answering, might I know why? :-) -- Kevin Wright mail: kevin.wri...@scalatechnology.com gtalk / msn : kev.lee.wri...@gmail.com quora: http://www.quora.com/Kevin-Wright google+: http://gplus.to/thecoda kev.lee.wri...@gmail.com twitter: @thecoda vibe / skype

Re: [The Java Posse] Testing Actors in Akka, the book

2012-09-29 Thread Kevin Wright
Akka's own documentation is rather good, and free, and has dedicated sections to cover all the relevant functionality via both the Scala and Java APIs. Having said that (and my opinion may be seen as controversial here)... You may find it easier to start learning the Scala API and then apply

Re: [The Java Posse] Testing Actors in Akka, the book

2012-09-29 Thread Kevin Wright
for questions on Akka or Scala, and you'll leave the answer in a place where it can more easily be found by the next person to ask! On 29 September 2012 20:26, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Sat, 29 Sep 2012 21:09:16 +0200, Kevin Wright kev.lee.wri...@gmail.com wrote: Akka's

Re: [The Java Posse] Scala course by Coursera, taught by Martin Odersky

2012-09-28 Thread Kevin Wright
It might be here: http://www.gimp.org/source/ On 28 September 2012 15:58, Ricky Clarkson ricky.clark...@gmail.com wrote: Where's the source code? On Fri, Sep 28, 2012 at 11:51 AM, Andreas Petersson andr...@petersson.at wrote: Currently in the course. After staring at Martin Odersky videos

Re: [The Java Posse] OutOfMemory Errors

2012-09-26 Thread Kevin Wright
YourKit is arguably the best product currently on the market for profiling, but it will cost you $$$ On 26 September 2012 10:29, Rakesh rakesh.mailgro...@gmail.com wrote: considering the target server is in Amazon and my local machine running Jvisualvm is on a Mac on my work network

Re: [The Java Posse] Would you advise Arch for Java development ?

2012-09-11 Thread Kevin Wright
Don't be conned by the speed argument, you'll only be gaining 2-3% at best. What arch, gentoo, etc. really get you is configurability, but you WILL be paying for that by spending more time in actually doing the configuration and maintaining it. It's a trade-off, if you want to be able to

Re: [The Java Posse] Why is Oracle so slow?

2012-09-04 Thread Kevin Wright
EcmaScript might not, but I'm pretty sure that HTTP does. Is there a browser/OS combo out there nowadays that WON'T offer to install a certificate in a well-known format? Even cUrl has certificate support. Personally, I think that web devs should be legally obliged to download at least 10% of

Re: [The Java Posse] Why is Oracle so slow?

2012-08-30 Thread Kevin Wright
On 30 August 2012 08:32, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Thu, 30 Aug 2012 08:23:39 +0200, Ryan Schipper psychodr...@gmail.com wrote: The Australian DSD (our version of the NSA) indicated recently that 85% of the incidents they investigated could have been avoided

Re: [The Java Posse] Apple vs Samsung

2012-08-30 Thread Kevin Wright
Finally... Someone managed to capture my own opinion of the whole patent mess in a simple cartoon. http://www.smbc-comics.com/index.php?db=comicsid=2718#comic Fairly sure I'm not alone here in feeling that pretty much puts it into perspective. On 25 August 2012 19:02, phil swenson

Re: [The Java Posse] Why is Oracle so slow?

2012-08-30 Thread Kevin Wright
On 30 August 2012 12:28, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Thu, 30 Aug 2012 10:15:41 +0200, Kevin Wright kev.lee.wri...@gmail.com wrote: Isn't that a bit like saying: Well okay, snails may seem slow, but you only think that because you haven't seen the sloth yet

Re: [The Java Posse] Opinions: How long to wait for Jigsaw?

2012-08-30 Thread Kevin Wright
I always figured that anyone who wanted lambdas that much would be sailing the choppy JVM waters on a differently lingual boat by now. It's not as though you even have to change your ops infrastructure or much of your tooling to do so. (hint: rename scala.jar/clojure.jar/groovy.jar/whatever.jar

Re: [The Java Posse] (empirical) Study on Scala vs. Java: Scala takes slightly more time, results in slightly less code.

2012-08-28 Thread Kevin Wright
The line that most caught my attention was: *One hypothesis (based on interviews) is that Scala’s automatic type inference actually made debugging more difficult.* Anecdotally (I didn't do a study), this is absolutely true! One practice that I'm seeing repeated over multiple teams is to

Re: [The Java Posse] (empirical) Study on Scala vs. Java: Scala takes slightly more time, results in slightly less code.

2012-08-28 Thread Kevin Wright
by 'accident', it can have unintended consequences, but it does help with understanding the code as well. Matthew Farwell. 2012/8/28 Kevin Wright kev.lee.wri...@gmail.com The line that most caught my attention was: *One hypothesis (based on interviews) is that Scala’s automatic type inference

Re: [The Java Posse] (empirical) Study on Scala vs. Java: Scala takes slightly more time, results in slightly less code.

2012-08-28 Thread Kevin Wright
correction: I'm finding libraries written in Scala to be far more powerful and usable than libraries written in Java. On 28 August 2012 10:18, Kevin Wright kev.lee.wri...@gmail.com wrote: Speaking of which... Programming languages nowadays are rarely used in isolation. The size of code

Re: [The Java Posse] Apple vs Samsung

2012-08-28 Thread Kevin Wright
I cured my other half of this illness by repeatedly asking her to Miele the floor, AEG the chicken, Amstrad tonight's episode of Dr. Who and Colgate her teeth. Now we vacuum the floor, use sticky tape and glue sticks, and photocopy documents. I feel it's important to not indoctrinate the kids in

Re: [The Java Posse] JavaDoc and Comments

2012-08-22 Thread Kevin Wright
If I can draw your (collective) attention to page 15: http://www.waterfall2006.com/Refuctoring.pdf On 22 August 2012 06:42, jon.kipar...@gmail.com jon.kipar...@gmail.comwrote: Yes, my comments about javadoc were written with the public library in mind, specifically something prepared for the

Re: [The Java Posse] Re: JavaDoc and Comments

2012-08-20 Thread Kevin Wright
On 18 August 2012 14:34, Fabrizio Giudici fabrizio.giud...@tidalwave.itwrote: On Sat, 18 Aug 2012 15:28:07 +0200, Graham Allan grundlefl...@gmail.com wrote: On 18 August 2012 13:47, Cédric Beust ♔ ced...@beust.com wrote: [snip] Anyone who tells you that comments are made unnecessary by

Re: [The Java Posse] Twitter Bootstrap ?

2012-08-20 Thread Kevin Wright
Absolutely! It's now firmly embedded into my core web toolkit alongside scalate and backbone.js, not regretted the choice for even a moment. On 20 August 2012 13:32, Jan Goyvaerts java.arti...@gmail.com wrote: This project was recently brought to my attention:

Re: [The Java Posse] Re: JavaDoc and Comments

2012-08-18 Thread Kevin Wright
I've seen this tactic before, and it *does* work. If you can't comment trashy code to explain it, then you find yourself refactoring more to make it explain itself. The policy is most effective when used in an environment that practices code reviews and/or pair programming. On Aug 18, 2012 1:05

Re: [The Java Posse] JavaDoc and Comments

2012-08-17 Thread Kevin Wright
As a rule of thumb, I won't comment WHAT a piece of code does, unless it's e.g. a heavily-optimised algorithm that would otherwise be hard to understand. That kind of information is far better conveyed through DSLs, literate programming, etc. and I consider it to be a code smell if the logic is

Re: [The Java Posse] Re: JavaDoc and Comments

2012-08-17 Thread Kevin Wright
Interesting... That summary makes me revisit my own opinion :) I've now court it down to this: Document INTENT, don't document details that can (and should) be intuitive from reading the source code. On Aug 17, 2012 7:23 PM, Vineet Sinha vin...@architexa.com wrote: I agree with most of the

[The Java Posse] Kotlin sheds a few features

2012-08-13 Thread Kevin Wright
Saw this tweeted earlier today: http://wiki.jvmlangsummit.com/What_Kotlin_Doesn%E2%80%99t_Do_and_Why Does anyone on this list have any knowledge of the workshop session quoted in that document? -- You received this message because you are subscribed to the Google Groups Java Posse group. To

Re: [The Java Posse] Experiences with java-based webapps and new template engines

2012-08-09 Thread Kevin Wright
Jade http://scalate.fusesource.org/documentation/jade.html in scalatrahttp://www.scalatra.org/+ twitter bootstrap http://twitter.github.com/bootstrap/ + backbone.jshttp://backbonejs.org/ Mostly, the client-side code is implemented in JavaScript, but I find that Jade is particularly efficient at

Re: [The Java Posse] Re: Experiences with java-based webapps and new template engines

2012-08-09 Thread Kevin Wright
It's never that clear-cut :) A server-side framework can speed things up a great deal by handling less/sass/scss compilation, js minification, template pre-compilation, etc. all at compile time (and yes, this is how I use scalatra) It also allows you to work with a much cleaner, DRYer syntax

Re: [The Java Posse] Groovy love

2012-07-31 Thread Kevin Wright
acceptable to claim that unit testing can effectively replace static typing? On Jul 31, 2012 8:23 AM, Russel Winder rus...@winder.org.uk wrote: On Mon, 2012-07-30 at 10:41 +0100, Kevin Wright wrote: Unit testing *cannot* prove correctness by itself, try this for a thought experiment: This argument

  1   2   3   4   5   6   7   8   9   10   >