Skip to content

Instantly share code, notes, and snippets.

@letientai299
Created January 19, 2017 09:32
Show Gist options
  • Save letientai299/0b75ced954ebbd84404d854fdba220df to your computer and use it in GitHub Desktop.
Save letientai299/0b75ced954ebbd84404d854fdba220df to your computer and use it in GitHub Desktop.

Android

  • Jack
  • Testing
  • Optimization.
  • NDK

Dagger

Dagger 1 issues, which has been addressed in Dagger 2

  • Graph composition at runtime — hurts performance, especially in a per-request use case (backend scenario)
  • Reflection (i.e. Class.forName() on generated types) — makes generated code hard to follow and ProGuard a nightmare to configure
  • Ugly generated code — especially, in comparison to similarly written manual instantiation from factories

Java

  • Java 8
  • Java 9

C++

C++11

  • Lambda
for_each(s, s+sizeof(s), [&Uppercase] (char c) {
  if (isupper(c))
  Uppercase++;
});
  • Type deduction (auto)

  • Uniform init syntax: brace notation

int* a = new int[3]{1, 2, 3}; // C++11 and up

class X {
  int a[4];
public:
  X() : a{1,2,3,4} {} //C++11, member array initializer
};
  • Delete the default functions.

    nullptr type should be used instead of NULL constant.

  • Standard library:

    • thread.
    • auto_ptr
    • some new algorithm functions and data structure.

C++15

Chat system

  • fb chat head.

Misc

  • AI bot

Issue

  • Bot command not work on the web.
  • User and chat log had been deleted on Phone, but still shown on the Web (Firefox).
  • Firefox web login input show red border eventhough I didn't enter anything.
  • Console log should be disable in production.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment