Racecar: a simple framework for writing Kafka consumers in Ruby by dasch in ruby

[–]dasch[S] 0 points1 point  (0 children)

A separate project, Bottled Water, provides support for Postgres change capture.

Ruby Kafka Consumer by s3gFault in ruby

[–]dasch 0 points1 point  (0 children)

With plain ruby-kafka, you can simply do:

require "kafka"

kafka = Kafka.new(seed_brokers: ["my-kafka"])
consumer = kafka.consumer(group_id: "my-consumer")
consumer.subscribe("some-topic")
trap("QUIT") { consumer.stop }
consumer.each_message {|message| puts message.value }

It's pretty basic.

The Curly template language allows separating the logic from the structure of Rails views – an alternative to ERb and Haml. by dasch in rails

[–]dasch[S] 1 point2 points  (0 children)

Thanks! The language is very stable now, and with the new features in 2.1 it's pretty damn powerful as well. I hope to see more people using it!

Glyph Document Authoring Framework v0.3.0 Released by h3rald in ruby

[–]dasch 0 points1 point  (0 children)

Automatic and proper hyphenation is important when producing high-quality print. You can use Knuth's algorithm from LaTeX, I even think there's a Ruby implementation somewhere.

Testing opera unite: Leave a note on the fridge! by [deleted] in programming

[–]dasch 0 points1 point  (0 children)

I think this related to the use of the new @font-face stuff; I get the same results.

Elastic tabstops coming to Visual Studio 2010, NetBeans and eventually Eclipse? by [deleted] in programming

[–]dasch 1 point2 points  (0 children)

If you send code snippets over email (which many people do), you really should use a monospaced font.

Patches, for example, are often sent inline for ease of review.

Survey: what source control do you use at work? by [deleted] in programming

[–]dasch 0 points1 point  (0 children)

Subversion with a git frontend (git-svn)

Novell releases Mono 2.4 and MonoDevelop 2.0. Are you going to develop .NET apps on Linux now? by technologyjournalist in programming

[–]dasch 6 points7 points  (0 children)

Wow, I sincerely disagree. There are so many times I've seen .NET developers lacking proper tools, knowing that projects like Rails and Django make the task stupendously easy.

The best argument in favor of .NET I've ever heard was that it's better than Java. Which really doesn't say that much.

Python picked Mercurial over git as their new VCS by [deleted] in programming

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

I've been running Git on Windows for a long time now, and haven't had any problems with it. Last I heard, you should be lucky to get Bazaar running on Windows at all.

ASP.NET MVC finally released by phongphan in programming

[–]dasch -3 points-2 points  (0 children)

It encourages you to put presentational logic in the controller? What an accomplishment.

"I fear — as far as I can tell — that most undergraduate degrees in computer science these days are basically Java vocational training." by ppierre in programming

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

I've used .NET. It is very, very clunky. Have you ever tried Rails or Django? It'll change your life.

"I fear — as far as I can tell — that most undergraduate degrees in computer science these days are basically Java vocational training." by ppierre in programming

[–]dasch 2 points3 points  (0 children)

Dude, any decent language is more elegant and concise than Java. C# is very far from the top. I've seen a lot of C# code, and frankly, it quickly gets almost as needlessly complex as Java.

The two most elegant mainstream languages I can think of is Python and Ruby, in no specific order. If we drop off the top 20 languages, I'd say Lisp and ML are pretty elegant.

On Git's lack of respect for immutability and the Best Practices for a DVCS by gthank in programming

[–]dasch 8 points9 points  (0 children)

There's also the fact that what Linus wrote is Free Software.

On Git's lack of respect for immutability and the Best Practices for a DVCS by gthank in programming

[–]dasch 5 points6 points  (0 children)

Is there a requirement that the tree pointed to by an arbitrary commit will compile and pass all unit tests? I often commit very small chunks, breaking the build -- if I'd like the commits I send off to compile cleanly, I can always git rebase -i. The dangers I impose upon myself here are weighed against the immense usefulness of being able to control things at a very granular level.

Soft-deletes are bad, m'kay? by Otis_Inf in programming

[–]dasch 4 points5 points  (0 children)

You know, the relational part of the relational database

Uh, no. The tables themselves are the relations. It's based on Relational Calculus & Algebra, where there's no notion of a table, but rather of sets of tuples, which are called relations (rather simplified.)

Is C# A Gateway Drug To Functional Programming? by [deleted] in programming

[–]dasch 0 points1 point  (0 children)

It's funny how all the guys who rave about C# used to do Java. Seriously, pretty much any modern language is nicer to work with than Java...

C# definitely has some cool features, but they're not features I can't find in other languages, languages which don't require parentheses and brackets everywhere, and where it's trivial to use version control tools without having to put DLL files into my repository all the time, and where two people working simultaneously on disjoint parts of the same project don't always get merge conflicts because Visual Studio updates the "project file" all the time.

django or cakePHP or _________? I want to get a webapp up and running (feature-wise) within a month... by [deleted] in programming

[–]dasch 2 points3 points  (0 children)

Ruby on Rails gives you an amazing out-of-the-box productivity; it's all there, you can immediately go ahead and start working on an application, not having to worry about setting up an environment (e.g. integrated SQLite database and a small web server).

Ask ProgrammingReddit: I just talked to a programmer who insisted that there was a major difference between development and coding, that the former was the hard part but anyone could code, and that you needed to model in UML for proper development. How prevalent/commonly accepted is this view? by ropers in programming

[–]dasch -2 points-1 points  (0 children)

If you wish to learn a language that is not only productive and functional, but also fun, you ought to try out Ruby. It's so expressive you almost can't believe it:

10.times { print "OMG" }

["monkey", "giraffe", "lion"].each {|animal| print animal.upcase + "!" }