본문 바로가기
[android] FlatBuffers ( json 보다 좋은 format? ) [android] FlatBuffers ( json 보다 좋은 format? ) http://frogermcs.github.io/flatbuffers-in-android-introdution -Facebook 이 대부분의 Android app 에서 JSON 을 FlatBuffers 로 바꾸면서 많은 성능 향상을 이루었다고 발표했다. -FlatBuffers 는 Google 의 cross-platform serialization lib 이다.원래는 game 개발을 목적으로 생성되었으며, UI 를 가진 앱들의 기본인 16ms rule 을 따른다. -FlatBuffers 가 효율적인 이유는? Serialized data 가 flat binary buffer 라서 parsing 이 필요없다. -> 빠르다 Buff.. 2019. 1. 24.
[Android] save POJO to SharedPreferences [Android] save POJO to SharedPreferences POJO 를 SharedPreference 에 저장하려면 GSON 을 쓰는 방법도 괜찮다.POJO params 에 대한 encoding, decoding 등을 지원하므로.. Android, decoding, Encoding, field, GSON, member field, Param, POJO, SharedPreference, [Android] save POJO to SharedPreferences 2014. 3. 25.
[Java] Reflection Tutorial - Getter and Setter Java, Reflection Tutorial - Getter and Setter Getter 와 Setter 의 경우 일일히 getter setter method 를 얻어와야 한다. Setter 의 경우에 return value 가 있을 수도 있다는 것을 알아야 한다. 100% 정확한 방법은 아니지만 general 한 방법의 (POJO) getter, setter 는 아래와 같은 방법으로 조회할 수 있다. public static boolean isGetter(Method method){ if(!method.getName().startsWith("get")) return false; if(method.getParameterTypes().length != 0) return false; if(void.cl.. 2013. 12. 4.
[Spring] Spring framework 개요 #4 Spring framework 개요 #4 의존관계 주입 ( DI, Dependency Injection ) * Dependency Injection 의 약자로 IoC로 명확한 의미가 전달되지 않아 만들어진 용어이다. * 의존관계( Dependency relationship)은 UML 에서 ---> 로 나타낸다.A ---> B 는 B가 변하면 A 에 영향을 미친다는 의미.대표적인 경우가 A가 B를 사용할 경우이다. * Dependent ObjectRuntime 시 의존관계를 맺는 대상 혹은 실제 사용대상인 object. * 의존관계 주입은 다음 세 가지 조건을 충족한다.1. 클래스 모델이나 코드에는 runtime 시점의 의존관계가 드러나지 않는다. 즉 interface 에만 의존한다. 2. 런타임 시점의 .. 2013. 7. 3.
[Spring] Spring Framework 의 개요 #1 Spring Framework 개요 #1 스프링이란? Spring = Spring Container + 공통 프로그래밍 모델 + 기술 API SpringContainerApplication Context 라고도 불리는 스프링 런타임 엔진 공통프로그래밍 모델설계 원칙 및 design pattern. IoC / DI오브젝트 생명주기 및 의존관계를 관리서비스 추상화Tech IndependentAOP모듈화 스프링의 성공 원인 1. 단순함 ( Simplicity )EJB의 복잡성을 비판하며 등장.객체지향 개발모델.POJO를 강력 추천 2. 유연성 ( Flexibility )다른 framework와 결합하기 쉽다.항상 framework 기반의 접근과 spring을 확장해서 사용하는 것을 추천한다. 스프링의 효과적 .. 2013. 6. 23.
반응형