Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
golang at m.elcolombiano.com
Search
Juan Felipe Alvarez Saldarriaga
September 03, 2015
Programming
0
51
golang at m.elcolombiano.com
Juan Felipe Alvarez Saldarriaga
September 03, 2015
Tweet
Share
More Decks by Juan Felipe Alvarez Saldarriaga
See All by Juan Felipe Alvarez Saldarriaga
UI Tests con Espresso
nebiros
0
67
Aplicaciones Cocoa Touch con Swift 2
nebiros
1
55
Appcelerator's Titanium, native apps via JavaScript
nebiros
0
50
Apache Cordova or best called PhoneGap
nebiros
0
38
Other Decks in Programming
See All in Programming
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
190
Googleのテストサイズを活用したテスト環境の構築
toms74209200
0
300
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
110
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.3k
開発効率向上のためのリファクタリングの一歩目の選択肢 ~コード分割~ / JJUG CCC 2024 Fall
ryounasso
0
430
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
160
ヤプリ新卒SREの オンボーディング
masaki12
0
110
現場で役立つモデリング 超入門
masuda220
PRO
15
3.1k
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
Quine, Polyglot, 良いコード
qnighy
4
630
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
270
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
0
170
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Unsuck your backbone
ammeep
668
57k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.8k
Optimizing for Happiness
mojombo
376
69k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
GraphQLとの向き合い方2022年版
quramy
43
13k
Transcript
golang at m.elcolombiano.com Juan Felipe Alvarez Saldarriaga @nebiros
Software engineer at @ride I'm in the iOS Team, YAY!,
;-)
What is m.elcolombiano.com? A mobile website made in PHP. Reads
RSS feeds. Last month they had like 2.791.914 page views. elcolombiano.com
How it works? A background process run every X time.
This program get feeds from and process each one, also, it saves that information into a DB. The program is made in PHP. elcolombiano.com golang fits in here!
None
Rewriting a PHP program into golang… The PHP program is
OOP. All models and business logic is in PHP too. Project structure is totally different.
SHOW ME THA CODE!
And… voilà! sindyk-feeds-reader
Some stupid numbers…
PHP ✔ ~/Drive/Projects/elcolombiano-mobile-ng/bin [master|✚ 3…1] 08:14 $ APPLICATION_ENV=development time php
worker.php real 54.74 user 0.45 sys 0.19
golang ✘-1 ~/Drive/Projects/GoLang/src/github.com/nebiros/sindyk-feeds-reader [master|…2] 08:33 $ time go run main/sindyk-feeds-reader.go
-dbname elcolombiano-mobile_development real 0m8.783s user 0m2.597s sys 0m0.838s
Simple is better… Dig into other golang projects at github.
Start moving small chunks of code into golang. Stop thinking in OOP. Look first in the standard library. Avoid too much dependencies.
Thank you! Juan Felipe Alvarez Saldarriaga
[email protected]
@nebiros