Week 11/12 #DataScienceBootcamp

Week 11 (06.12.-11.12.)

  • Topic: Software Engineering
  • Lessons: Software Engineering, Code Profiling, Automated Testing, Continuous Integration, Building Python Packages, Web Deployment
  • Project: Add tests to our projects
  • Dataset: MovieLens (10k)
  • Code: GitHub

This was the last week of lectures and assigned projects, so we learned some general software engineering techniques and best practices for individual and team coding.

Software engineering metaphors

  • Bazaar: independently written code for open-source software, to which multiple developers can contribute as they see fit.
  • Cathedral: long complex code for a software built by a group of developers, based on a central plan and software infrastructure, meant to be deployed into a product.
  • Garden: maintaining code, cleaning it up and refactoring, deleting irrelevant/old code and replacing with code that meets the current needs.

10 tips for software development

Here are 10 tips for efficient software development and clean code that we got from our teacher:

  1. Know your league (Bazaar vs Cathedral)
  2. Structure your code
  3. Use git
  4. Master debugging
  5. Add essential files (requirements.txt, .gitignore)
  6. Clean code
  7. Add tests
  8. Continuous integration
  9. Verification and validation
  10. Write good documentation

Tests

Testing code is a really important part of software development, or any quite complex project, to ensure that everything runs well and doesn’t break as you make changes to the code. There are four main types of software tests:

  1. Unit Test: for a single function/class/module.
  2. Integration Test: for multiple components together.
  3. Regression Test: re-run tests after changes to code.
  4. Acceptance Test: user-level, A/B-testing, focus groups.

I started applying these tips right away on the project that I’m currently working on, and also started cleaning up a bit the code of my past projects. Next week I’ll be working only on my final project and preparing the presentation for the graduation on Friday!

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: