Browse by Tags

All Tags » DEV (RSS)

Printing Web Pages – the Cool Way!

When developing web applications we often run into a request to print one or more pages within the applications. In most cases, these pages will contain some type of report. There are tons of ways to do that. Most of them I don’t like, especially the trivial one that pops to mind - “open a new window with a printer-friendly version of the page and set onload=’window.print()‘” . I find it quite irritating for the user. There is another solution, which is less popular than its fellow window.open solution...
Posted by shayf | 2 comment(s)
תגים:, ,

Announcement: IronRuby Unleashed has been Released!

Good times! Right after IronRuby RC2 was released and a bit before IronRuby 1.0 RTM is out, my book, IronRuby Unleashed, is available! The print book is available from today on the InformIT web site (Sams Publishing’s book store) and will be available shortly on Amazon as well (and other book stores too). In short, IronRuby Unleashed contains all you need to start developing IronRuby applications. From Ruby language introduction, through the fundamentals of IronRuby programming (like implementing...

Use .NET Built-in Methods to Save Time and Headaches

During our everyday programming tasks we run into several repetitive code blocks that after the 20th time you implement them become really annoying. The worst case is to re-implement these code blocks every time, and the better case is to create a central class library with helper classes and methods. However, a large amount of these tasks can be achieved easily with built-in .NET methods. In this post I will go through several repetitive code blocks and show you how to implement them using built...
Posted by shayf | 3 comment(s)
תגים:, ,

Vote to See IronRuby in MIX10

Do you want to hear about IronRuby in the upcoming MIX10 conference? If so, make sure to vote for my IronRuby session - IronRuby - the Development Booster Machine . In the session I plan to talk a bit about the Ruby language and its strengths and then move on and show how .NET developers can take advantage of these stengths in several different scenarios like testing, debugging and Silverlight. YOU have the power to make it happen! Go ahead and vote! http://visitmix.com/opencallvote/Entry?entryId...
Posted by shayf | with no comments

Good to Know: Built-in ASP.NET Http Handlers

Http handlers is a really elegant infrastructure allowing you to provide special behavior to specific paths in your application. You can use them to create RSS  feeds, dynamically generate images, handle requests differently and  more. Apart from writing new http handlers, there are some built-in handlers that you can take advantage of. The built in handlers are separated into three categories (in my opinion at least): request handlers, error generators and misc. handlers. Request Handlers...
Posted by shayf | with no comments
תגים:,

Executing IronPython Code from IronRuby

One of the advantages of the Dynamic Language Runtime (DLR) is the fact that it makes sharing code between the languages that are written on top of it (and on top of the CLR as well). Therefore, it is possible to share code between IronPython and IronRuby (and any other DLR language as well like IronScheme ). This means that IronPython libraries can be used from IronRuby code and vice versa. Ruby on Rails in Python? Django in Ruby? feels like the end of days, isn’t it? perhaps we should really start...
Posted by shayf | with no comments

IronRuby Sample #3: Creating a DSL

[ This is part 3 of my IronRuby samples series. You can read the first post (Hello World) and the second post (C# Recorder using IronRuby) as well. ] The Ruby language is very powerful in general, and in its metaprogramming abilities in particular. This time I’m going to demonstrate how you can take advantage of these abilities along with Ruby’s syntax capabilities in order to create a custom DSL (Domain Specific Language) in a matter of minutes. Pay attention that these features are not specific...
Posted by shayf | with no comments
תגים:,

Just Released: IronRuby 0.9.2

We’re getting closer to V1.0! Version 0.9.2 fixes 44 bugs (some of the irritating ones like the Rails' bug with :default_url_options and the bug that prevented the RSS standard library from running). The biggest announcement in the 0.9.2 version, in my opinion, is that IronRuby now has an MSI-based installer for Windows ! no need to extract a zip file and do everything yourself anymore. Download it from: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33693#DownloadId=90621...
Posted by shayf | with no comments
תגים:,

My Presentation at Web Developers Community – Riding IronRuby on Rails

Yesterday I had the honor to present IronRuby and Ruby on Rails to the Israeli web developers community. Thanks all for coming! I had a great time! The demo and presentation can be downloaded from here: Presentation file (1.45Mb) Demo files (4.93Mb) I also add here the list of resources to get you started with IronRuby and Ruby on Rails: Ruby Official Site: http://www.ruby-lang.org IronRuby Official site: http://www.ironruby.net Mailing list: http://www.ruby-forum.com/forum/34 My blog: http://www...

Is String.IsNullOrEmpty Good or Bad?

I started to wonder about that when I was looking for an equivalent method in Ruby. Apparently, Ruby doesn’t come with such a method built-in, but you can add it very easily by using Ruyb’s monkey patching abilities. This is odd, because Ruby is the greatest language and has everything you possibly need (and IronRuby is even better! :) ). So why isn’t there an IsNullOrEmpty-like method? Well, they might just didn’t think it was important enough. And there might be a different answer, maybe the decision...
Posted by shayf | with no comments

C# Recorder using IronRuby

[This post is the second in my series of IronRuby samples. Read the first one here ] The release of Visual Studio 2010 Beta 2 and IronRuby .Net 4.0 Beta 2 CTP has brought some AMAZING abilities to the .Net world like the dynamic keyword. This keyword is a revolutionary little thing. It takes everything you know about C# and throws it away – explicit types, locating syntax errors in compilation time, compiled code… Sounds bad? well, it is just AWESOME!!! The dynamic keyword brings so much goodness...
Posted by shayf | with no comments

IronRuby Sample #1 – Hello World

A bunch of readers have asked me to post IronRuby samples. I took your advice and I am starting a series of posts where I’ll write some IronRuby samples so you can see what’s IronRuby code is all about. I’ll begin with the simplest sample and as the series goes on, I’ll try to bring you more complex samples. If you’d like to see a specific sample, please contact me and let me know about it. So the first sample is a Hello World sample. The regular Ruby Hello World app, which of course runs on IronRuby...
Posted by shayf | 2 comment(s)
תגים:,

Upcoming Session: Riding IronRuby on Rails at WDC, Israel

I’m glad to announce that another IronRuby session is getting closer, this time at the Israeli Web Developers Community! When? Sunday, 1st of  November, 2009. 17:00-20:00. Where? Microsoft Offices, 2 HaPnina St., Rannana . What? The session is all about IronRuby, with a focus on Ruby’s most famous member – Ruby on Rails. The session will  start with an overview of the Ruby language and its powerful abilities, continue with IronRuby and  the stuff it brings to your everyday work and...
Posted by shayf | with no comments

Visual Studio Tip: Compilation Symbols

There are times when we need to use different code statements for different build configurations – this means that some code will not exist in assemblies that are built in certain build configurations. Compilation symbols come to help in this case. You can set a symbol that will exist in  a specific build configuration and then use it inside your code files to write or exclude code when this project is built using this build configuration. The most familiar case of this scenario is debug and...
Posted by shayf | with no comments
תגים:, , , , ,

My Presentation at the Nes Ziona User Group

Yesterday I did a presentation at the Nes Ziona user group. My session was about IronRuby and my main goal was to show the audience what they can do with IronRuby in their everyday .Net work. First of all, thanks everyone for coming! I had a lot of fun! I discussed the following subjects: Creating internal tools and POCs with IronRuby – taking advantage of the Ruby language abilities and libraries to write code faster. Using Ruby REPL abilities in .Net apps – can be used for polishing, debugging...
Posted by shayf | with no comments
More Posts Next page »