Skip to main content

Documentation

Documenting everything is extremely important. It gives everyone the information they need whenever they need it. Github makes it very easy to have beautiful pages written in markdown rendered automatically. It's nice and easy to do. Creating a README in the root of the project is common practice and is even automatically rendered when the project is open in Github, under all the file names. I've been looking at quite a few different projects and they all have README files. It usually includes an introduction to the project, how to set it up, how to run it, how to contribute to it, major credits to people, etc... Essentially, it holds important information about the project that anyone has access to.

Along with the README file, we can comment on our actual code so hackers who read the code can know what does what. It allows the creator to recall what they wrote in the past and it invites new people to understand what has been written. It is really important that comments are written. It doesn't affect the softwares performance at all, but it makes it more professional and inviting for others to work on it. You can never have enough information.

Comments

Popular posts from this blog

Swift 4

There are a lot of languages out there to choose from when it comes to programming. Some are similar to each other and some are different from each other. Some are designed for a single purpose and some are designed for multiple purposes. A general programming language that was built to account for modern safety, performance, and software design patterns which is safe, fast, and expressive is a language called Swift. Swift is currently in it's fourth stage and the project became open source on Github in early December 2015. It is written with the languages; C++, Python, and Objective-C. It is associated with it's very well designed and detailed website called swift.org . Swift is used to create a good language for uses ranging from mobile to desktop to cloud services programming. For the most part, this language is being used by developers to develop applications for macOS, iOS, watchOS, and tvOS. Although it is open source, Apple has not allowed the Github community t...

Automated Testing

Automated testing is a very useful feature that is simple to implement in any open source project. It allows the testing to be automated to ensure that nothing will break when things are changed. In the open source world, code is changed quite often so having automated testing can make it easy to track and manage errors and we can know if the code is properly written to pass the tests. Overall, it is very beneficial in open source programming. Travis CI makes it very easy to link your Github page and the repos on it. It is very easy to get started and I would recommend it to everyone! I always used to do my testing by outputting the results and comparing it with whatever I had in my head, now, it does it all on it's own.

Atom, My New Code Editor

Recently I started looking into a couple code editors for school. There were two that caught my attention; Atom and Visual Studio Code. After playing around with both of them, I decided to stick with one. Overall, they do similar things, but my decision is solely based on my bias. I personally am not a fan of Microsoft's software so I was not motivated to experiment with Visual Studio Code. Atom is a free to use code editor and can be downloaded at  https://atom.io /. The interface by default is dark, and it looks really nice in my opinion, but it can easily be changed by going into Settings>Themes It is really easy to customize it to how you want it to look. There are many things that can be changed, one controversial one being the spacing between tabs. It is really easy to get started with Atom. As soon as you start the program, you are greeted with a welcome page and we can easily start to edit anything we've been working on. The best part about Atom is that...