Posted on Leave a comment

Android: Things every beginner should know

Things every beginner should know

1. Difference between @+id and @id
2. Using @string res for providing Strings in XML
3. Using @android and ?attr constants
4. Difference between SP and DP
5. Use of Drawables and Mipmaps
6. Using Vector Drawables
7. Setting End/Start Margin
8. Using Getter/Setter Generator
9. Using Override/Implement Generator
10. Understanding Contexts Properly

Posted on Leave a comment

Shunting-yard algorithm

Shunting-yard algorithm

In computer science, the shunting-yard algorithm is a method for parsing mathematical expressions specified in infix notation. It can produce either a postfix notation string, also known as Reverse Polish notation (RPN), or an abstract syntax tree (AST). The algorithm was invented by Edsger Dijkstra and named the “shunting yard” algorithm because its operation resembles that of a railroad shunting yard. Dijkstra first described the Shunting Yard Algorithm in the Mathematisch Centrum report MR 34/61.