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
52
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
71
Aplicaciones Cocoa Touch con Swift 2
nebiros
1
58
Appcelerator's Titanium, native apps via JavaScript
nebiros
0
53
Apache Cordova or best called PhoneGap
nebiros
0
40
Other Decks in Programming
See All in Programming
もう僕は OpenAPI を書きたくない
sgash708
6
1.9k
CDK開発におけるコーディング規約の運用
yamanashi_ren01
2
260
Django NinjaによるAPI開発の効率化とリプレースの実践
kashewnuts
1
290
PRレビューのお供にDanger
stoticdev
1
240
Datadog DBMでなにができる? JDDUG Meetup#7
nealle
0
160
責務と認知負荷を整える! 抽象レベルを意識した関心の分離
yahiru
8
1.5k
React 19アップデートのために必要なこと
uhyo
8
1.6k
仕様変更に耐えるための"今の"DRY原則を考える
mkmk884
9
3.2k
ソフトウェアエンジニアの成長
masuda220
PRO
12
2.2k
はじめての Go * WASM * OCR
sgash708
1
120
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
260
バッチを作らなきゃとなったときに考えること
irof
2
550
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
52k
Adopting Sorbet at Scale
ufuk
75
9.2k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Producing Creativity
orderedlist
PRO
344
40k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Thoughts on Productivity
jonyablonski
69
4.5k
Gamification - CAS2011
davidbonilla
80
5.2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Music & Morning Musume
bryan
46
6.4k
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 hola@juan.im @nebiros