Lost your sourcemaps after upgrading to Webpack 2?

While migrating an application from Webpack 1 to the latest and greatest version 2, I noticed that our sourcemaps were gone. Even though I had set the correct devtool values in my Webpack configs.

After some (read lots) of debugging, I found that the UglifyJsPlugin plugin changed its default behaviour and nowadays you need to include the  { sourceMap: true } option when configuring it.

Proper Counter Cache Migrations in Rails

A lot of people are doing a lot of heavy lifting in their database migrations when deploying. That might work well for people when their data set is ~1 000 records, but when you are working with 500 000+ records, that’s just not feasible.

There’s a lot of bad advice in terms of counter_cache and Rails so I wanted to make sure this one got some extra visibility.

http://ryan.mcgeary.org/2016/02/05/proper-counter-cache-migrations-in-rails/

Migrate to Ruby on Rails 5.x using RocketPants

At Sparta, we’ve been using a Gem called RocketPants since day 1 (roughly three years now) to easier maintain, version and develop our internal API. The Gem has since then lost a decent chunk of its community and it looks like less people are using it.

I would guess that since the Rails API Gem was merged into Ruby on Rails with the 5.0 release, the need for a Gem such as RocketPants shrunk.

Anyway, I’ve been doing some work on making the Gem support Ruby on Rails 5.0 and 5.1, and it seems like some other people were stuck on the 4.x branch of Rails because they were unable to upgrade.

RocketPants with support for Ruby on Rails 5.0 (and 5.1) : https://github.com/Sutto/rocket_pants/pull/143/files

I’ve been using it myself on Ruby on Rails 5.0 for the last year without any issues, so the whole Gem feels fairly stable.

This is not a permanent solution as the Gem has lost a big part of its community and we want to avoid getting stuck on a Gem that will not be developed any further, I will follow up in another post on how we at Sparta will migrate to another solution. Most likely we will be using the built in Rails API.

In addition, my colleague Yi got the rocketpants-rpm (provides support for making RocketPants::Base work with RPM) gem up and running for Rails 5 as well. It’s available under our Github organisation here.

 

Swedish Startup Space acquired by Breakit

Today, I have some exciting news to share with you all. Below is a press release by Swedish Startup Space and the Breakit team.

Read more:


When Swedish Startup Space launched two and a half years ago, the web site quickly became a must-visit for entrepreneurs, investors and techies who wanted to keep track what was going on in the flourishing Swedish startup industry.

The site was, in part, born out of frustration. Swedish tech companies were extremely successful, but did not get much coverage from Swedish media. If an entrepreneur in Stockholm wanted to read an article about a company that her friend started at KTH and which was now raising a huge sum of capital – she would find that article on Techcrunch instead of a local news service.

“She would find that article on Techcrunch instead of a local news service”

Anders, Pär, Einar and James saw this and decided to do something about it. The original idea was to create a community where people in the Swedish tech industry could connect, find jobs and look for events or office space. But Swedish Startup Space soon became a news service too, reaching tens of thousands of readers every week.

It became an important component of the startup ecosystem in Stockholm. For that, the four founders deserve the warm gratitude of the community.

A lot has changed in Swedish startup media since early 2013.

Swedish business journalists are now giving the startup industry the coverage that it deserves. As mainstream media coverage of startups has increased, the Swedish Startup Space founders feel that their mission has been achieved. Breakit is today happy to announce that we are acquiring the Swedish Startup Space property, in order to increase English-language coverage of the Swedish startup scene, something that Swedish Startup Space proved was popular with an international audience.

In short: This is not the end of Swedish Startup Space. In fact, it’s the opposite.

The web site will become a part of Breakit. This means that it will be backed by a professional news organization producing more content then before. You will see more articles (in English) and a few new faces among the contributors. The popular job board will live on.

Anders, James, Einar and Pär will leave Swedish Startup Space and continue to work on their other companies they’ve since gone on to start. They will however remain as honorary ambassadors at Breakit, contributing from time to time.

Olle Aronsson, co-founder, Breakit
Stefan Lundell, co-founder, Breakit