Ruby

  • Most Topular Stories

  • 5 reasons you are not doing code reviews

    8th Color
    Martin
    18 Apr 2014 | 7:53 am
    Whether your work in a startup of at a multinational, getting your team to start doing code review probably got stuck with the typical answer: That’s a very good idea, but… Having been there several time, and being quite convinced on the added value of code review, I listed the most common pushbacks I’ve encountered, and some ways to go past them. …I don’t have time Of course you don’t. This feature that need to be finished ASAP, and there is a module you want to refactor since months, and that is just the most important stuff… This is probably the most pervasive answer I…
  • A Kata a Day: Hours

    RubyFlow
    22 Apr 2014 | 12:19 pm
    A Kata a Day
  • Uplink Latency of WiFi and 4G Networks

    RubyFlow
    21 Apr 2014 | 9:53 am
    WiFi makes no latency promises; 4G incurs scheduling costs but offers more stable performance. To minimize latency, don't trickle data!
  • How to create simple calculator in Ruby Shoes

    Masteruby
    17 Apr 2014 | 12:00 am
    In this tutorial you will learn how to create simple calculator in Ruby GUI toolkit Shoes that looks like this: Because original Shoes is outdated and new Shoes 4 isn't released yet, we'll use Green Shoes in this tutorial. How to install Shoes Before you can install green_shoes you have to install ruby. I've included instructions about how to install ruby in previous post. If you have ruby installed by rvm, just install green_shoes with rubygems: gem install green_shoes If you have trouble with installation, you have to install ruby gtk2. Running shoes To run we need to add…
  • How do you get the TDD flywheel moving?

    RubyFlow
    23 Apr 2014 | 10:23 am
    A reader had a question about getting started with TDD, so I answered it.
  • add this feed to my.Alltop

    RubyFlow

  • How do you get the TDD flywheel moving?

    23 Apr 2014 | 10:23 am
    A reader had a question about getting started with TDD, so I answered it.
  • Introducing Lotus::Model

    23 Apr 2014 | 6:45 am
    Almost all the Ruby frameworks for the Model layer mix up business logic with database details. This kind of architecture leads to god classes, slow build times and to a general bad design. These problems are well known to legacy projects’s maintainers. What if we assign these roles to smaller components that are able to collaborate together? Imagine how life changing would be to work just with objects, without worrying how to persist them. How easy and fast would be testing them? How small and well defined would be your objects? Let me introduce Lotus::Model.
  • A Kata a Day: Hours

    22 Apr 2014 | 12:19 pm
    A Kata a Day
  • Easy way to get IDs from social network links. IDs, please

    22 Apr 2014 | 10:34 am
    I've released v1.0.0 of IDs, please. Get social network IDs or screen names from links to social network accounts.
  • Uplink Latency of WiFi and 4G Networks

    21 Apr 2014 | 9:53 am
    WiFi makes no latency promises; 4G incurs scheduling costs but offers more stable performance. To minimize latency, don't trickle data!
 
  • add this feed to my.Alltop

    Obie Fernandez

  • 8 Apr 2014 | 3:41 pm

    Obie Fernandez
    8 Apr 2014 | 3:41 pm
    Glad to announce that my latest book, The Lean Enterprise, is now widely available in print and Kindle editions on Amazon. Getting lots of great reviews already!
  • TechPeaks: Startup Life in the Italian Alps

    Obie Fernandez
    7 Jan 2014 | 6:00 am
    Last summer (2013) I was honored with an invitation to serve as a mentor for the inaugural group of entrepreneurs welcomed into the TechPeaks accelerator program. It opened my eyes to what's possible when a progressive local government achieves effective cultivation of innovation and startups. Quite an experiment the Italians pulled off last year, and the results have encouraged them to do it again this year, with notable evolutions to their program that I believe make it an even better opportunity for aspiring entrepreneurs. Here's one of the coolest aspects of it, that really sets this…
  • Robert Williams, man to watch in 2014

    Obie Fernandez
    1 Jan 2014 | 10:23 am
    I recently interviewed Robert Williams, founder of Workshop. Over the course of the last year Robert went from full-time employment, to successful freelancing, to launching a successful online business helping other freelancers to succeed using his methods. What is your background? My background is in design. I went to an expensive art school - which I now regret, because 90% of the education I use on a daily basis is stuff I learned online (mostly for free). I worked at a few design agencies after college, then in the marketing department for a large nursery - but those jobs left me…
  • Haml's little-known list_of helper

    Obie Fernandez
    20 Nov 2013 | 3:59 am
    TIL that given an Enumerable object and a block, the list_of method will iterate and yield the results of the block into sequential <li> elements. Haml %ul  = list_of [1, 2, 3] do |item|    Number #{item} HTML <ul>  <li>Number 1</li>  <li>Number 2</li>  <li>Number 3</li></ul> The list_of method also optionally takes a hash of options applied to the output li tags as attributes. Interested in more information like this? You can download my book The Rails 4 Way at Leanpub today. Final print edition on Addison Wesley coming early next…
  • Disruptive Innovation Within the Enterprise?

    Obie Fernandez
    14 Nov 2013 | 7:34 pm
    Large companies often try to tackle disruptive innovation within their existing corporate structures. But when they do, it rarely works. The limitations on what can be accomplished cascade from the executive imagination (or lack thereof) down to the rank and file innovation team members, affecting every aspect of product development and marketing. At LSM we are brought in to large companies to teach them how to do Lean Startup. We (too) frequently work with innovation teams that aren't even allowed to talk with the company's customers. Mind you these are people who are paying tens of…
  • add this feed to my.Alltop

    Polishing Ruby + Software Releases - zenspider.com

  • ruby_parser version 3.6.0 has been released!

    ryan davis
    23 Apr 2014 | 2:16 pm
    ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types. As an example: def conditional1 arg1 return 1 if arg1 == 0 return 0 end becomes: s(:defn, :conditional1, s(:args, :arg1), s(:if, s(:call, s(:lvar, :arg1), :==, s(:lit, 0)), s(:return, s(:lit, 1)), nil), s(:return, s(:lit, 0))) Tested against 801,039 files from the latest of all rubygems (as of 2013-05): 1.8 parser is at 99.9739% accuracy, 3.651 sigma 1.9 parser…
  • ZenTest version 4.10.0 has been released!

    ryan davis
    23 Apr 2014 | 2:04 pm
    ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby. zentest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. zentest only works with Ruby and Minitest or Test::Unit. There is enough evidence to show that this is still proving useful to users, so it stays. unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong. Do note that minitest 2.2+ provides an enhanced assert_equal obviating the need for unit_diff…
  • ruby2ruby version 2.1.0 has been released!

    ryan davis
    23 Apr 2014 | 1:56 pm
    ruby2ruby provides a means of generating pure ruby code easily from RubyParser compatible Sexps. This makes making dynamic language processors in ruby easier than ever! Changes: 2.1.0 / 2014-04-23 4 minor enhancements: Don’t indent defn body extra if it has a top-level rescue. Don’t indent defn body until fully processed. Don’t use simple rescue form if resbody is a return (statement keyword). (eyberg) Remove superfluous begin/end for top-level defn rescue. home: https://github.com/seattlerb/ruby2ruby rdoc: http://seattlerb.rubyforge.org/ruby2ruby
  • hoe version 3.12.0 has been released!

    ryan davis
    23 Apr 2014 | 1:39 pm
    Hoe is a rake/rubygems helper for project Rakefiles. It helps you manage, maintain, and release your project and includes a dynamic plug-in system allowing for easy extensibility. Hoe ships with plug-ins for all your usual project tasks including rdoc generation, testing, packaging, deployment, and announcement.. See class rdoc for help. Hint: ri Hoe or any of the plugins listed below. For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf Changes: 3.12.0 / 2014-04-23 3 minor enhancements: Added :rdoc plugin. Renamed History.txt to History.rdoc. Renamed README.txt to README.rdoc.
  • minitest version 5.3.3 has been released!

    ryan davis
    14 Apr 2014 | 2:42 pm
    minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Kirk Haines and I were paired up and we cracked open the code for a few test frameworks... I MUST say that minitest is *very* readable / understandable compared to the 'other two' options we looked at. Nicely done and thank you for helping us keep our mental sanity." -- Wayne E. Seguin minitest/unit is a small and incredibly fast unit testing framework. It provides a rich set of…
 
  • add this feed to my.Alltop

    Vinsol - Ruby on Rails, iOS, Android Consulting and Development

  • Full-Calendar Rails Engine

    Akhil Bansal
    7 Apr 2014 | 2:29 am
    A couple of years ago we integrated jQuery FullCalendar plugin with a rails backend. The plugin became reasonably popular and was being used in many Rails apps. Recently we upgraded it to include an efficient full-sized, drag & drop calendar functionality within a Rails Engine and release it as a gem. With Rails 4 deprecating Rails::Plugin(commit) this would come really handy. It easily blends within a rails application. Provides a great UI experience with the use of AJAX to fetch events on-the-fly for each month and hooks for user-triggered events (like clicking or dragging an event)…
  • Guide to Caching in Rails using Memcache

    Pikender Sharma
    11 Feb 2014 | 1:54 am
    Guide to Caching in Rails using Memcache 1 The post intends to cover the topics and tools that can help in implementing Memcache as caching store in Rails and debugging issues with it. To help newbies grasp it from start, it also provides references to installing and validating the memcache install without Rails too. “Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering” Installing Memcache Mac OS X Snow Leopard brew install memcached Ubuntu sudo apt-get install memcached More…
  • Let your code speak – I

    Pikender Sharma
    20 Jan 2014 | 6:45 am
    I want to make an attempt at extending the excellent review of Confident Ruby by Avdi Grimm from Viget Labs here which is best described by the below excerpt. Confident Ruby makes the case that writing code is like telling a story, and reading code littered with error handling, edge cases, and nil checks is like listening to a bad story. The book presents techniques and patterns to write more expressive code with less noise—to tell a better story. And, My favorite in the review list is BRE GTFO LOL where “BRE” stands for begin/rescue/end In our day to day Rails coding routine,…
  • [Press Release] VinSol Releases Four Spree Commerce Extensions

    kapil
    9 Oct 2013 | 1:39 am
    The following is a press release announcing launch of open source Spree commerce extensions from our eCommerce team. New Delhi, October 10, 2013 – VinSol, a New Delhi, India based premier Ruby on Rails studio and Spree Commerce premier partner, today announced the release of four useful extensions for the Spree Commerce community. The extensions include Spree Wallet, Spree Favorite Products, Spree Bank Transfer and Spree Admin Roles. VinSol believe that the extensions would provide substantial return of investment to Spree Commerce Developers as well as Store Owners. When contacted, Manik…
  • Drawing tool in iOS ( openGLES or UIBezierPath )

    Manish
    7 Oct 2012 | 11:59 pm
    New to the problem of making a drawing/painting tool for an iOS application many developers get confused on using either OpenGLES or UIBeizerPath. Sometimes sample code on apples developer website GLPAINT  points many developers to use OpenGL Views for making paint layers for an application. A major issue with this that the developers do not understand is that OpenGL Views leave very heavy memory footprints and on devices like ipad1 having 24mb of memory to use per view , this can be a pain. Trying to make a transparent openGL view which allows the user to paint on a transparent canvas with…
  • add this feed to my.Alltop

    DevInterface Blog

  • Codemotion Roma: uno sguardo al futuro della tecnologia

    DevInterface
    16 Apr 2014 | 12:31 am
    Alla conferenza hanno partecipato i maggiori esperti mondiali di innovazione e programmazione. Startup, stampanti 3d e nuove tecnologie sono stati i protagonisti dell’evento che ha visto oltre 2000 partecipanti Si è appena concluso Codemotion, la più grande conferenza tecnica dedicata agli sviluppatori in Italia. Durante i due giorni dell’evento professionisti della programmazione, studenti, semplici curiosi e bambini hanno attraversato le aule e i corridoi del dipartimento di Ingegneria dell’università Roma Tre per incontrare esperti internazionali di tecnologia e partecipare ai…
  • 7 buoni motivi per aprire un sito di e-commerce

    Claudio
    8 Apr 2014 | 1:54 am
    In questo periodo di crisi economica globale, abbiamo ogni giorno notizia di aziende costrette a chiudere. Soprattutto nel settore del commercio al dettaglio  la concorrenza si sta facendo ogni giorno sempre più serrata. Ecco quindi che l’e-commerce può diventare un’ancora di salvezza per rilanciare le imprese già sul mercato, o comunque un’idea da prendere in considerazione per chi, nonostante la crisi, vuole mettersi in proprio ed avviare una nuova attività. Vediamo quindi quali sono i principali motivi per aprire un sito di e-commerce. Un’azienda che non ha un…
  • Codemotion Roma 2014 – 9/12 Aprile: ecco il programma ufficiale

    Claudio
    2 Apr 2014 | 11:40 pm
    Innovazione e creatività saranno le parole chiave di Codemotion Roma, la conferenza internazionale dedicata alla tecnologia e aperta a tutti i linguaggi di programmazione. L’evento si svolgerà a Roma presso il Dipartimento di Ingegneria di Roma Tre dal 9 al 12 aprile. Codemotion si articolerà su 16 track tematiche dedicate agli sviluppatori, ma non solo: le aziende saranno in prima linea grazie ai numerosi talk enterprise oriented. Mobile, Web, BigData, Cloud, User Experience sono solo alcuni dei temi che verranno affrontati durante la conferenza. Non mancheranno Angular JS e Dart, i…
  • Cloud Ecommerce – Vendi i tuoi prodotti online

    Claudio
    21 Mar 2014 | 7:15 am
    Cloud Ecommerce è la soluzione per la vendita online di DevInterface. Uno strumento potente e flessibile, ideale per creare il tuo sito di e-commerce ed iniziare a vendere i tuoi di prodotti online.Il suo punto di forza è il pannello di amministrazione semplice ed efficace, con una grafica moderna e funzionale, studiato per semplificare al massimo il controllo del tuo store online. La sua interfaccia intuitiva lo rende adatto sia a chi ha già esperienza nella gestione di un negozio online, sia a chi per la prima volta vuole espandere il proprio business su internet. Alla semplicità di…
  • Gruppi Emergenti si rinnova

    Claudio
    29 Jan 2014 | 1:06 am
    Ci sono grandi novità per Gruppi Emergenti, il primo portale dedicato alla musica emergente italiana. A 3 anni dal lancio, il portale è stato completamente riscritto per migliorare sia le funzionalità che l’aspetto grafico. L’obiettivo, come sempre, è quello di dare agli artisti emergenti italiani la massima visibilità online. Anche per questo gli artisti e le strutture non vengono più visualizzati in ordine di inserimento nel portale, ma in funzione dell’attività generata. Con questo nuovo algoritmo quindi chi pubblica più contenuti viene premiato ottenendo maggiore…
 
  • add this feed to my.Alltop

    Ruby-coloured glasses

  • Classic: The Law of Leaky Abstractions by Joel Spolsky

    Taryn East
    22 Apr 2014 | 3:05 am
    Joel Spolsky's classic: The Law of Leaky Abstractions is still well worth a read today. Many of today's high-level tools abstract away the low-level details to such an extent that 99% of the time, you don't even need to know they're there. But it's that 1% of the time that's the doozy. When everything suddenly blows up because you accidentally crossed an invisible line you didn't know was there... how can you figure out what went wrong and how to fix it? The low-level detail leaks through. So often, even though you're using an abstracted, high-level tool, you often still have to learn all the…
  • Link: Female Founders by Paul Graham

    Taryn East
    16 Apr 2014 | 3:08 am
    Paul Graham (of Y-Combinator) writes some amazingly worthwhile essays. One of his recent ones is about what he's learned about Female founders Read to discover: Is YC anti-female (spoiler: no) Do female founders fare differently in startup culture (spoiler: sometimes, but that should rapidly improve) What can we do to encourage more females to be founders?
  • Heartbleed: openSSL has been compromised test your site!

    Taryn East
    9 Apr 2014 | 6:21 pm
    So, you may have read that there's a security vulnerability in OpenSSL called Heartbleed. It's pretty serious and potentially affects everyone. You should change all your passwords right now. Read more about it here: Here's How To Protect Yourself From The Massive Security Flaw That's Taken Over The Internet You can use this site to test any site you care to try: Heartbleed test
  • Quit being so negative!

    Taryn East
    3 Apr 2014 | 3:21 pm
    Interacting with other people is all about perceptions. For better or worse, we can't see inside of other peoples' heads and have to infer what's inside of them based on their actions... and also on (get this) *our* past behaviour. You thought it would be *their* past behaviour, yes? but actually unless you've known somebody a really long time - your perceptions of another person are more based on what you have done in the past, than on what they have. It's way too easy to totally miss this point when it comes up in reality - because what you think another person is doing... just seems so…
  • Speaking Eloquent Javascript - learn javascript (and programming) for free

    Taryn East
    28 Mar 2014 | 9:30 pm
    Eloquent javascript seems a nice site for learning programming for free, by working your way through a free textbook. I've only skimmed it myself - I've been working my way through Code School's Javascript path. Another that's just come out is Speaking javascript (an O'Reilly book that's also online for free) I've heard good things about both of these. Have you tried either one? If so, tell me what you think, or if you have a better (free) source, let me know in the comments.
  • add this feed to my.Alltop

    8th Color

  • 5 reasons you are not doing code reviews

    Martin
    18 Apr 2014 | 7:53 am
    Whether your work in a startup of at a multinational, getting your team to start doing code review probably got stuck with the typical answer: That’s a very good idea, but… Having been there several time, and being quite convinced on the added value of code review, I listed the most common pushbacks I’ve encountered, and some ways to go past them. …I don’t have time Of course you don’t. This feature that need to be finished ASAP, and there is a module you want to refactor since months, and that is just the most important stuff… This is probably the most pervasive answer I…
  • PullReview: Badge and integration with BitBucket and GitLab

    toch
    16 Apr 2014 | 7:32 am
    PullReview recently gets a few new features: Badge Public Review for Public Repo BitBucket and GitLab and lots more: HipChat notification Performance of the home page Profile Heartbleed Support Contact Badge Badges in README.md are a very common way to inform people about your project good health. PullReview now provides its own badges: Each badge presents a brief status as following: ✗ the number of detected issues ✔ the number of fixed issues (+ the number of issues fixed since the previous review) It will be colored depending on the progress: red if more issues have just been added…
  • 7 daily use cases of Ruby String

    toch
    11 Apr 2014 | 4:03 am
    Strings are everywhere. You deal with String instances not only every day, but probably every minute. They came from files, databases, REST APIs, or you simply use them to print results. It’s a pervasive representation, and Ruby provides plenty to ease its manipulation. But String comes with its own share of problems and you won’t always find a quick solution in the doc like how to deal with invalid byte sequence or convert back a String to a Date with an uncommon format. Below, I share 7 common use cases of String I met very often and should be useful to you. How to remove…
  • When should I use a Set in Ruby?

    toch
    4 Apr 2014 | 5:32 am
    You develop a small contact manager for a client. Contact = Struct.new(:name, :email) One important feature is the possibility to define a list of contacts. granny = Contact.new('granny', 'granny@weatherwax.me') bill = Contact.new('bill', 'bill@door.me') At first, you started with an array, contacts = [] but you realize quickly that you have to check for duplicates. You end in many places with something like: contacts << granny unless contacts.include? granny or contacts.uniq! Last time you were working with the list, you needed to send a campaign…
  • 7 slow and painful deaths by regexp

    Stéphan Mestach
    28 Mar 2014 | 7:39 am
    The road to hell is paved with regular expressions - Ilian Iliev Dot is a special char Carriage return in content Denial of Service by regexp Non escaping of special chars Over specifying Validating an URI with a regexp Write once debug everywhere DSL 1. Dot is a special char Simple elegant, you read it, you understand it # process all ruby files process_ruby_file(file_name) if file_name.match(/.rb/) # and profit But ouch it matches also sample.erb or paris_rb.html You know what? A regular expression is a program in itself and it deserves tests! Want to test it? Take the matching code and…
  • add this feed to my.Alltop

    Masteruby

  • How to create simple calculator in Ruby Shoes

    17 Apr 2014 | 12:00 am
    In this tutorial you will learn how to create simple calculator in Ruby GUI toolkit Shoes that looks like this: Because original Shoes is outdated and new Shoes 4 isn't released yet, we'll use Green Shoes in this tutorial. How to install Shoes Before you can install green_shoes you have to install ruby. I've included instructions about how to install ruby in previous post. If you have ruby installed by rvm, just install green_shoes with rubygems: gem install green_shoes If you have trouble with installation, you have to install ruby gtk2. Running shoes To run we need to add…
  • Learn Ruby on Rails book review

    9 Apr 2014 | 12:00 am
    Recently I received free copy of Learn Ruby on Rails book by Daniel Kehoe, so I've decided to write this review. Who is this book for Book is aimed at begining rails developers. So if you have no experiences with Rails, that's first book you should try. You will find out all example code on github repository and because book is part of subscription program you will get access to book updates, some other tutorials and another book about Bootstrap. What's in this book Book gives you step by step guide for creating rails application. In example application you will create mailing…
  • How to create todo list app in rails, adding, removing and deleting tasks

    4 Apr 2014 | 12:00 am
    In previous part of this tutorial we've created static pages In this post we'll learn: How to style our app with Bootstrap Showing list of all tasks Adding tasks Deleting Tasks Completing Tasks Styling our app with Bootstrap Our app is little bit boring, just html, no css. Let's do something about that we will use Bootstrap to take care of basic design Get started with Bootstrap Bootstrap is a framework for easier developing websites. To use it we have to install bootstrap-sass gem Gemfile gem 'bootstrap-sass' bundle install Styling Navigation with Boostrap Let's make…
  • Top 8 Learning resources for ruby beginner

    28 Mar 2014 | 12:00 am
    In this tutorial i'm gonna to show you some resources to learn ruby. Some are paid, some are free, it depends on you what you choose. So where to start? It depends on who you are. You have no programming background and you like reading books Learn to Program by Chris Pine This book assumes you have no programming background. You will walk through practical examples about how to write code in Ruby. You will start with basic data types like variables, numbers, strings. Then you will move on classes, reading, writting to the file, lambdas, procs. What I like about this book is it's…
  • How to install Ruby and Rails for your operating system

    28 Mar 2014 | 12:00 am
    In this post I want to show you how to install Ruby and ROR for your operating system. How to install Ruby and Rails on Windows Step 1: Get rails installer Get installer on rails installer site. Step 2: Run rails installer Go to folder where you've downloaded installer and run it: It will install Ruby with Rails and all dependencies you will use in developing Rails application Step 3: Running installer in Command prompt Try checking succesfull installation. Go to the Start Menu, select all programs and choose Rails Installer and then Command Prompt with Ruby and Rails You should see…
 
Log in