Git Product home page Git Product logo

camstudy-android's People

Contributors

jja08111 avatar

Stargazers

 avatar  avatar

camstudy-android's Issues

Gson 대신 다른 convertor 사용하기

이 기능으로 해결하는 문제
Gson은 Kotlin의 특징을 100% 활용하지 못하는 컨버터이다.

내가 생각한 솔루션
Kotlinx Serialization이나 Moshi와 같은 툴로 대체

소켓 통신 예외 처리 개선

이 기능으로 해결하는 문제
예외처리가 일부분만 되어있어 프로덕션에는 문제가 될 수 있음

내가 생각한 솔루션
모든 요청마다 성공, 실패 응답으로 나누기

AuthRepository의 existsInitInfo 타입을 Result나 다른 타입으로 수정하기

이 기능으로 해결하는 문제

아래의 코드를 보면 주석이 없이는 설명하기 어떤 값이 어떤 의미를 담는지 이해하기 어렵다. 이를 개선해야한다.

/**
* `currentUserIdStream`이 `true`인데 이 값이 `null`인 경우 서버와의 연결을 실패한 경우이다.
*/
val existsInitInfo: Boolean?

내가 생각한 솔루션

existsInitInfo 타입을 Result나 다른 타입으로 수정하거나 아니면 아예 구조를 바꾸기

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.