Subscribe: Comments for Over It.
http://jason.diamond.name/weblog/comments/feed/
Preview: Comments for Over It.

Comments for Over It.



(a Weblog by Jason Diamond)



Last Build Date: Mon, 10 Oct 2011 23:17:44 +0000

 



Comment on Splitting CamelCase With Regular Expressions by RegEx to split camelCase or TitleCase (advanced)

Mon, 10 Oct 2011 23:17:44 +0000

[...] found a brilliant RegEx to extract the part of a camelCase or TitleCase [...]



Comment on Splitting CamelCase With Regular Expressions by RegEx to split camelCase or TitleCase (advanced) | Gravity Layouts

Thu, 29 Sep 2011 15:46:37 +0000

[...] found a brilliant RegEx to extract the part of a camelCase or TitleCase [...]



Comment on Splitting CamelCase With Regular Expressions by jmini

Thu, 29 Sep 2011 07:55:58 +0000

I got an answer on stackoverflow http://stackoverflow.com/questions/7593969/regex-to-split-camelcase-or-titlecase-advanced/7594052#7594052 There is a possible extension to the regex.



Comment on Splitting CamelCase With Regular Expressions by jmini

Thu, 29 Sep 2011 07:09:21 +0000

I just tried your regex... it works perfectly in Java... String s = "loremIpsum"; words = s.split("(? V / A / L / U / E 2) eclipseRCPExt -> eclipse / R / C / P / Ext To my mind, the result shoud be: 1) VALUE 2) eclipse / RCP / Ext In other words, given n uppercase chars, if there are follwed by lower case, it should be (n-1 chars) / (n-th char + lower chars) if there are not at the end: (n chars). If you have any idea with a regex...



Comment on jQuery Deferreds by KCL

Sun, 19 Jun 2011 00:36:14 +0000

OK. That's cool and very much along the lines of something I've been trying to do. My issue is that I have a variable number of deferred functions being called (actually the same function being called with differing parameters a varying number of times) with parameters. Any ideas about that one? My example: $.when(myfunc('a'), myfunc(b'), myfunc('c'), ...).done(funcDoneWhenAllDone); Whaddya think?



Comment on One-line lazy initialization by Chaz

Wed, 15 Jun 2011 23:11:11 +0000

Wish JS had this, amazing shorthand :)



Comment on Asserting without Equals by Arnis L.

Tue, 17 May 2011 11:30:35 +0000

You might find interesting this blog post: http://bit.ly/bY0IjN



Comment on One-line lazy initialization by Brunhilde

Mon, 08 Nov 2010 21:50:49 +0000

Gets my vote.



Comment on I fail at TDD? by Arnis L.

Sun, 31 Oct 2010 13:51:21 +0000

Making something more flexible **only** for testability doesn't sound right either. It's like marking attributes with public setters just to inject fake objects. That eventually leads to poor encapsulation, unnecessary higher complexity. Your alternative approach looks really good though. --------- My own problem with TDD is that it steals focus on problems I'm trying to solve. It's like trying to choose between NHibernate and Entity framework instead of listening to what client needs. Best way to solve that would be to become truly fluent at TDD.



Comment on I fail at TDD? by Jason Diamond

Sat, 30 Oct 2010 18:11:53 +0000

Hi Arnis. Mocking `Part` isn't currently possible because `Scanner` constructs the subclasses directly. I didn't see a need to make that more flexible. Regarding overriding `Equals` just for NUnit: I hear you and just posted a follow-up with an alternative that doesn't require that. =)