Do you think Computer Science equals building websites and mobile apps?
Are you feeling that you are doing repetitive and not so intelligent work?
Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long?
Do you want to understand the soul of Computer Science?
If yes, read SICP!!!
This is the first post of this SICP Goodness series, in which I discuss some of my own findings from reading the book SICP.
Create a React App: npx create-react-app my-app
Install ESLint and Prettier in VSCode.
In the project directory, run npm i prettier eslint-config-prettier eslint-plugin-prettier -D
In User Settings (ctrl + ,), put in the following:
{ "editor.formatOnSave": true, "[javascript]": { "editor.formatOnSave": false }, "eslint.autoFixOnSave": true, "eslint.alwaysShowStatus": true, "prettier.disableLanguages": [ "js" ], "files.autoSave": "onFocusChange" } Create an .eslintrc file: { "extends": ["react-app", "plugin:prettier/recommended"] } If your project is not under git, run git init.
This blog post is a summary of the excellent Pluralsight Course by Cory House.
Editor and Configuration First of all, editor of choice here is surprise surprise VS Code. I’m actually happly surprised that Erich Gamma is behind this.
Use EditorConfig to manage, well, editor configurations. Tabs VS spaces, etc. Note that VS Code need to install a plugin for it to work.
The example .editorconfig file:
root = true [] indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true charset = utf-8 [.
Raymond Hettinger is a python core developer. I recently find that his python teaching videos are of very high quality and amusing at the same time. They are usually packed with tips and wisdoms here and there, so I think some written version of his videos might be helpful as references.
Here is the one about new style python class.
Code in the video:
This is a series of blog posts going through the great book Growing Object Oriented Software Guided By Tests, typing in code chapter by chapter, trying to add some of my own understanding where things may not be easy to grasp in the book. I highly recommand you get a copy of the book and follow along with me. Happy coding.
This post covers Chapter 19 Handling Failure, which is also the last chapter in the book related to this project.