How many times have you had some innocuous looking code like this: let button = UIButton (type: . InfoDark ) button . add...
Today we’ll see how we can be more efficient ⚡️ by… being la💤y 😴. In particular, we’ll talk about lazy var and LazySequence. And cats 😸. The problem Let’s say you are making a chat app and want to represent your users using an avatar. You might have different resolutions for each avatar, so let’s represent them this way: extension UIImage { func resizedTo(size: CGSize) -> UIImage { /* Some comp
In a previous article, I talked about error handling in Swift using throw. But what happens when you deal with asynchronous workflows, where throw can’t really fit? What’s wrong with throw and async? As a reminder, a function which can fail can use throw in the following way: // Define an error type and a throwing function enum ComputationError: ErrorType { case DivisionByZero } func inverse(x: Fl
unit and acceptance testing, automation, productivity In the previous two posts of the Practical Testing in Swift series we had a look at how to test asynchronous code using XCTest, both when dealing with callbacks and delegates. In this post we'll see how to do that using Quick and Nimble, a pair of Swift testing frameworks. In case you are not familiar with them, let me introduce these two frame
January 18, 2016 I had a problem. The new iOS application that I’m working on – written 100% in Swift – was noticeably taking much longer to compile than should, given its size (~200 files). More concerning, it was suddenly a lot slower than only a couple of weeks prior. I needed to get to the root of the problem as soon as possible, before it got any worse. The first step was to add -Xfrontend -d
Don’t miss the iOS Developer Roadmap for 2018! UPD: Slides which I presented at NSLondon available here. Feeling weird while doing MVC in iOS? Have doubts about switching to MVVM? Heard about VIPER, but not sure if it worth it? Keep reading, and you will find answers to questions above, if you don’t — feel free to complain in comments. You are about to structure your knowledge about architectural
フジテレビーのMr.サンデーでアラサー女子が独り身でマンションを購入するという特集があって、これがまたすごい内容で年収350万円、貯金0円の人が2500万円の変動金利で住宅ローンでマンションを買おうとしていました。 僕はいままでは手持ち資金があって、複数の特定条件が揃う人なら購入はありでしょ、と思っていたのですが、まさか消費税が上がる直前の特需目当てとはいえ、上記のような状況でマンションの購入が検討対象に入ってしまう人がいて、それをメディアも煽るようなら、さすがにこれは「賃貸最強!」と即答するようにしておいた方がいいと感じました。というか、金利上がったら普通に破産しますよね。コメンテータの石黒不二代さんが苦笑いしながら「せめて固定金利で検討を、、、」と言っていたのは印象的でしたが、ブログのような誰が読むかわからないメディアでは、「賃貸最強!」という論調で書いておいた方がいいですね。ブログ界
これからカメラを買う方へ以下はこれからカメラを買う方が、快適なカメラライフを送れるように、先達としてデジタル一眼かっちまった兄がなんつーかぎりぎりいっぱいで送る手紙です。 対象ユーザーは、デジタル1眼レフカメラ(デジイチ)とハイエンドコンパクトデジカメ(コンデジ)で悩んじゃうような、ちょっと本気出した人です。 間口狭くて申し訳ないですけど、いくつかのファクターを上げて、各々どちらが優れているか書いていきたいと思います。 比較ポイントそれぞれ、所感を書いていきます。 できるだけ平易に書いたつもりですが、わかりにくい部分があれば突っ込んでください。 重さデジイチは、だいたい本体だけで600gはあります。レンズとバッテリを加えると、普通に1kgを超えます。 逆にコンデジは軽さが命です。比較的重たい機種でも500gは超えないでしょう。 普段持ち歩くなら、完全にコンデジ優位です。 デジイチはぶっちゃ
現在、あなたがお使いのブラウザは、Cookie(クッキー)をブロックする設定になっています。 リクナビNEXTでは、個人情報保護と利便性の観点からクッキーの使用をお願いしています(個人情報収集等の目的では使用しておりません)。お手数ですが、ブラウザの設定を変更してください。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く