サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
衆院選
railsware.com
Mocking ES6 module import with and without Dependency Injection ES6 module system is a great addition to JavaScript language, but sometimes it’s at odds with writing tests, because you need to mock imported function. Usual solution is to use Dependency Injection akin to what is used in Angular.JS. You need to wrap the whole module into some function and explicitly pass required dependencies. While
If you have already started playing with swift, you probably thought about how to include third party libraries into your project or how to distribute yours. Apple provides a mechanism to distribute code via frameworks (eventually, for iOS too), so making a custom framework, which will include both ObjC and Swift code is very easy. But let’s dig deeper and create a pure Swift module, like apple do
MVC is not sufficientEvery day iOS apps become more cumbersome and bulky, which makes MVC approach not sufficient. We are seeing more and more classes for different purposes: app logic extracts into services, models extends with decorators, view separates into partials and so on. And – what is more important – there are now a lot of dependencies that need to be managed somehow. Singleton is often
This article is about gotchas you should be aware of while building your API with Ruby on Rails. Controller tricks: API on MetalSooner or later each Rails developer come to a point when he wants to build his first API. Among the first things you have to take care of are your controllers. If you want your API to be fast (and I bet you do) then you should consider using ActionController::Metal. The
Railsware Blogon product management, engineering, design, culture and many more... Over the past 17 years, Railsware has grown from a team of four to over 200 craftspeople. Guided by our values of high-quality craftsmanship, we ditched the initial outsourcing model early to build a product studio instead. And now Railswarians build damn good products both in our offline workspaces in … Autumn is b
Recent 3.2.9 release bugfix has brought an issue for through associations. inverse_of usage can solve the problem only partially (polymorphic associations are still affected). UPDATE: patch that introduced this issue has just been reverted in rails master. Few days ago Rails 3.2.9 was released. Among the bugfixes a fix for through associations is present, and since 3.2.9 join model instances are b
PostGIS http://postgis.refractions.net/PostGIS adds support of geographic objects to the PostgreSQL object-relational database. In fact, PostGIS “spatially enables” the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI’s SDE or Oracle’s Spatial extension. PostGIS follows the OpenGIS “Simple Features Specification for SQ
My Enumerable::Lazy patch was accepted into ruby trunk few days ago. So, in ruby 2.0, we can go like this: a = [1,2,3,4,2,5].lazy.map { |x| x * 10 }.select { |x| x > 30 } #=> no evaluation a.to_a #=> [40, 50], evaluation performed - no intermediate arrays generated. Why?Ruby is awesome language, and while being an imperative one, still allows us to write an elegant, functional programming style co
TroubleThere are some cases when you may need to access application session in your tests: User signup or registration flow is too long.Application use another backend and store result into session.In each story you must repeat the same steps. You can actually use some shared code but it does not speed-up tests anyway. Nowadays if you want to access session in cucumber/capybara acceptance test you
What if you have several servers with different users, ssh-keys, and even port numbers? How to manage all this stuff flexibly ? This tutorial covers poorly documented Capistrano features for advanced servers and roles configuration. Many of them obtained via digging into Capistrano sources. This article covers following Capistrano topics: roles configurationserver configurationThe way HOSTS, ROLES
Products If you’re an investor or Railsware products user, check out Mailtrap, Coupler, and SmartChecklist Services If you're an entrepreneur looking for a tech partner, we will help you to succeed with your product
このページを最初にブックマークしてみませんか?
『Railsware Product Studio』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く