Category Archives: IT

Best Practice for Coding

1. Annotation always write before the code 2. Remove the console.log message and the redundant code once done. 3. For Javascript, prefer console.debug() when you have to have temporary logging in the code. 4. killall python 5. If need more data … Continue reading

Posted in CS Research&Application, Intern&Job, IT, Uncategorized | Tagged , , | Leave a comment

Web Basics

1. authentication: who you are authorization: what you can do cookie: more physical session: context (teaching – learning, lecturing) session cookie (bank login) persistent cookie (remember me option) token – certificate 2. multi-thread context thread thread pool blocking I/O single thread … Continue reading

Posted in CS Research&Application, IT, Uncategorized | Tagged , | Leave a comment

Technology Podcast notes

1. Fixed mind set VS growth mind set Behavior changes brain, learn something, like playing guitar Praise process and work, don’t always say you are smart or talented We can always be better 2. 四小时鼓掌赢20美元 目标便宜(赢钱到赌气) 成本束缚(鼓掌一个小时不愿放弃) 布莱希特论戏剧 不要沉浸在剧情中 生活是场大戏,也是可以改变的 … Continue reading

Posted in IT, Uncategorized | Tagged , | Leave a comment

Programming Reflection May 17

1. Array is easy to index specific element with index, it’s easier to calculate the difference between different elements than linked list. 2. LeetCode Trap Rain Water problem: iterate left and right elements for each element in the input array, … Continue reading

Posted in CS Research&Application, Intern&Job, IT, Uncategorized | Tagged , , , | Leave a comment

Leet Code Summary and Reflection

  Array Tips: keep two points and shrink from left and right to center, check to meet certain requirement (sum equals a target number) until left index is over right one. Problems: Two Sum, 3Sum, 3Sum Closest, 4Sum, etc.   … Continue reading

Posted in CS Research&Application, Intern&Job, IT, Uncategorized | Tagged , , | Leave a comment

Make it work first, don’t over engineering

Nowadays, Test Driven Development (TDD) is so popular that software engineers are a group of people full of curiosity and spend a lot of time on learning and testing, like unit testing, integration testing and system testing. They design the test … Continue reading

Posted in CS Research&Application, IT, Uncategorized | Tagged , , , , , | Leave a comment

Object Oriented Design Tips

Even though functional programming is more and more popular nowadays, but Object Oriented programming is still the main stream in industry. Object Oriented Design (OOD) skills are basics for professional programming and used widely in interviews and professional development because … Continue reading

Posted in CS Research&Application, IT, Uncategorized | Tagged , | Leave a comment