pppp
doya's Introduction
doya's People
doya's Issues
Refactoring案
DoyaRankItemAdapter.S3GetImage は不要じゃないか?
S3のデータはURLで参照できるので S3 を直接叩く必要はないんじゃないか?
DoyaRankItemAdapter.getView は重いんじゃないか?
getView() は描画される度に呼び出されるメソッドなので、その中に通信処理を埋め込むのは重いと思う。特に Jedis に関してはコンスタントラクタで一度に読み込めば良いのでそちらに移すべきじゃないか?
使っていないコードを捨てる
EULA違反のユーザを排除する機能
AWS S3 APIを追い出す
beta 版をリリースする
ビルドして確認するのが面倒に思うことがあるし、他にも協力者ができるかもしれないので、開発途中版をベータ版としてリリースする
タイムラインの画像を適切なサイズに縮小、拡大して表示させる
AWSS3に画像を保存した画像を閲覧する
広告を仕込む
オススメ。どっちでも良いと思う。
- metaps DirectAd: http://directad.metaps.com
- GAME FEAT: https://www.gamefeat.net
API 20 にアップデートする
Android Studio 0.8 使いたいから API 20 にアップデートしましょう。
タイムラインで画像とその情報を表示させる
ProgressDialogをけす
アップロード画像を制限する
アップロード画像を以下のように制限する
- MaxWidth: 600px
- MaxHeight: 600px
- Size: 400Kbytes
これより大きな画像が選択された場合には画像処理で小さくする。
ボタンを押したらポイントが変化するようにする
Redisでrankingを実装する
Redisにはランキングにピッタリの zscore という形式がある。
scoreの値を操作する ZINCRBY key increment member
というコマンドでランキングを実装できる。
key を image_ranking とすれば以下のようにランク付けできる。(image_url3が最もrankが上)
redis> ZINCRBY image_ranking 1 image_url1
redis> ZINCRBY image_ranking 5 image_url2
redis> ZINCRBY image_ranking 100 image_url3
これを取ってくるには以下のようにする。
redis> ZREVRANGEBYSCORE image_ranking -inf +inf WITHSCORES LIMIT 0 10
これで、スコアの高い方から10個までのアイテムをスコア付きで取得できる。
ブログを書く
今回のアプリを作成して勉強になったことをまとめる。
- 忘れないように大事なことはメモる
- 分からなかった部分は調べる(質問する)
- 改善すべき点を version2.0 の issueに追加する(https://github.com/vortispy/Doya/milestones/version%202.0)
- 次のアプリの案を考える
ランキングで画像とポイントを表示させる
outOfMemory Errorの対策
AWSS3に画像を保存する
タブをスワイプで移動させる
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.