Bi-monthly news update from IsDB-BISEW IT Scholarship Programme (September 2023)Nov 09, 2023 / IT Scholarship Programme
We are back! Welcome to the September 2023 issue of Empower, the periodic newsletter of the IsDB-BISEW IT Scholarship Programme. This edition includes the following topics of note:
GitHub for Beginners
Choosing the Right Training for a Career in IT – Mehedees’s Experience
GitHub for Beginners
GitHub is one of the most popular resources for developers to share code and work on projects together. It’s free, easy to use, and has become central in the movement toward open-source software.
In this article, we’ll explain what GitHub is, what it's used for, and how to get started. So keep reading:
- What is GitHub?
- How does GitHub work?
- What is Git?
- What is GitHub used for?
- How to Get Started Using GitHub
What is GitHub?
GitHub is an online software development platform. It's used for storing, tracking, and collaborating on software projects.
It makes it easy for developers to share code files and collaborate with fellow developers on open-source projects. GitHub also serves as a social networking site where developers can openly network, collaborate, and pitch their work.
Since its founding in 2008, GitHub has acquired millions of users and established itself as a go-to platform for collaborative software projects. This free service comes with several helpful features for sharing code and working with others in real time.
On top of its code-related functions, GitHub encourages users to build a personal profile and brand for themselves. You can visit anyone’s profile and see what projects they own and contribute to. This makes GitHub a type of social network for programmers and fosters a collaborative approach to software and website development.
How does GitHub work?
GitHub users create accounts, upload files, and create coding projects. But the real work of GitHub happens when users begin to collaborate.
While anyone can code independently, teams of people build most development projects. Sometimes these teams are all in one place at once time, but more often they work asynchronously. There are many challenges to creating collaborative projects with distributed teams. GitHub makes this process much simpler in a few different ways.
First, all the code and documentation are in one place. This limits issues with access for anyone who wants to contribute to a project. Each repository also contains instructions and other details to help outline project goals and rules.
Next, coding is more creative and abstract than most non-technical people think it is. For example, say two developers are working on different pieces of code. These two pieces of code should work together. But sometimes one piece of code can make the other code fail. Or a piece of code can have an unexpected impact on how the other code works.
GitHub solves these problems by showing how both files will change the main branch. It catches these errors before pushing changes, making the coding process more efficient.
GitHub also makes it easier to track changes and go back to previous versions of a project. To explain this, we’ll need to understand the technology that GitHub is based on, Git, and talk about version control.
What is Git?
Git is open-source version control software, used for managing and tracking file revisions. You can use Git with any file type, but it’s most often used for tracking code files.
Git is the most widely used version control system in software development, and GitHub leverages this technology for its service, hence its name.
What is version control?
You’ve likely worked with some form of version control before. For example, Google Docs (as well as other Google Workspace tools) has a "Version History" tool where you can view changes to the document at different points in time. Microsoft Office has something similar with its "Track Changes" feature. Or, you might prefer saving multiple copies of a file and labelling them "v1", "v2", etc.
Advanced version control is necessary for software projects, especially collaborative ones.
Why is version control helpful for coding?
When building software, developers frequently and simultaneously update the code to add features and fix bugs. It wouldn’t make sense to make these changes to the source code directly, since any issues would affect users. Instead, developers work with their own copies of the code, then — after the code has been thoroughly tested — add this code to the main codebase.
That seems all well and good. But, with multiple contributors, things can get messy quickly. That’s especially true if there’s no way to combine everyone’s contributions into one unified codebase or see who contributed what changes. Each change must also be tracked and stored. This is helpful when something breaks and the developers need to backtrack and restore a previous version.
That’s what Git is for. When a developer wants to make a change to a piece of software, they:
- Download their copy of the source code from its central storage location (called a repository) to their local system
- Make modifications safely to their copy
- Merge their revised copy back with the source files in the repository
- Add comments explaining the changes
Git tracks all of these modifications and stores previous versions as backups. And GitHub makes it easier to see when developers make changes as a group, not just specific individual changes. This is helpful when troubleshooting complex projects.
What is GitHub used for?
GitHub allows software developers and engineers to create remote, public-facing repositories on the cloud for free. A repository, or "repo" for short, is a coding project’s files and the revision history for each file.
Once you’ve set up a repository on GitHub, you can copy it to your device, add and modify files locally, then "push" your changes back to the repository where your changes display for the public.
So, why would you prefer GitHub over developing with a private repository? Here are the key reasons why GitHub is such a big player:
The single biggest selling point of GitHub is its set of project collaboration features, including version control and access control.
To illustrate what’s possible with GitHub, imagine this scenario. You want to code an online game, and you enlist your friend to help you.
You create a repository on GitHub that stores all the files, including current and past versions, then give your friend collaborator access to this repo as well.
You decide to work on the main gameplay and screens while your partner tackles the game’s menu and settings screens. In order for you both to push your changes at the same time without interfering with the other’s work, you create a branch — a separate development area — where your teammate can build out their screens. Meanwhile, you continue work in your branch.
Once your friend finishes their work, they can make a pull request asking to combine their work with yours. If you approve, you can merge your branches, and thus your code.
Now, say another developer sees your game’s repository and has an idea to add multiplayer mode. They can fork — or make their own copy of — your repository, then add their new features.
Once finished, they can submit a pull request to you. If you approve, this forked repository merges with yours, and your game is now multiplayer.
Note: Anyone can fork a public repository, but it's up to the repository owners to accept or reject pull requests.
No software is perfect on the first go, which is why your GitHub repo also has an Issues section for listing to-dos and reporting problems with your game, discussing them, and marking them resolved.
To address these issues, you might look back at a file’s changelog to see when and where things went wrong.
To sum up, GitHub provides a centralized space where several, dozens, or even thousands of developers can seamlessly contribute to a project, without worrying about overriding anyone’s work or losing track of changes.
Easy File Management
Using GitHub means you’re not limited to one device or environment.
GitHub adds a sleek graphical user interface (GUI) layer on top of Git. On its own, Git operates through the command line (a computer’s text-based interface). Developers know how to use the command line, but for many, it’s not always the most efficient way to interact with files.
GitHub’s interface provides a clean and user-friendly way to perform Git actions as well as view file history. This is more convenient for developers and more accessible for beginners getting the hang of Git.
Another benefit that makes GitHub more accessible is its cloud-based infrastructure. A GitHub user may access their repository from any location and any device, download the repository, and push their changes.
Any GitHub user knows the platform is more than just a place to work on code. All GitHub users have profiles to display their projects, contributions, and activity on the site, and can see anyone’s public-facing profile and repositories.
GitHub’s social network is critical to its success, as it encourages developers to explore and contribute to open-source projects of all kinds. Previously, aspiring collaborators would have to personally contact project owners asking for permission to contribute.
With GitHub, it’s as easy as forking a project and then making a pull request. A project owner can then vet someone’s profile and past contributions before accepting their request.
GitHub also serves as a way to showcase projects for employers, acting as a portfolio of sorts. For example, recruiters often use GitHub to scout talent, since prospects’ code is available for anyone to review.
Thanks to the benefits we’ve learned about, GitHub has fuelled a surge of open-source collaboration, leading to the creation of many widely used software technologies. From CSS frameworks to data visualization libraries to a game you might spend too much time playing, a lot of impressive feats wouldn’t be around without open GitHub repositories.
As has been a trend with Web 2.0, GitHub has also opened up software development to anyone who wants to learn programming, fostering an engaged, innovative, and productive community.
Sure, that’s all great, but how does GitHub make money if everything is free and open-source?
The answer is that GitHub provides paid services as well, including private repositories. On a paid plan, teams can collaborate on GitHub while keeping their code behind closed virtual doors. GitHub also offers enterprise solutions that equip organizations with internal collaboration tools.
How to Get Started Using GitHub
Here’s how to get started. A quick note: You should get comfortable using the command line before working with GitHub, as Git uses the terminal as its interface.
1. Install GIT.
Install the latest version of Git on your device. You’ll need Git installed to work with your GitHub repository. There are various ways to do this, so follow the recommendations on the Git website. The Git software is free.
2. Sign up for GitHub.
After installing Git, go to GitHub’s website and create an account with your email address.
3. Start a repository.
Once your GitHub account is set up, you’ll be taken to your dashboard. To start your first repository, click Create repository. This lets you keep all of your code for your new GitHub project in one place.
4. Name your project.
On the Create a new repository screen, enter your repository name and an optional description (you can change both later).
5. Add project details.
On the same screen, add a README file (a text file that describes your project, and a best practice in development), a .gitignore (which removes irrelevant files like .DS_Store), and a license for your project.
These details make it easier for collaborators to understand your project and any guidelines you’d like them to follow.
6. Create your repository.
Click Create repository. You’ll be taken to your main repository page, which lists your files.
7. Create a local copy of your repository.
You’ll now create a local copy of your GitHub repository (or in GitHub terms, "clone" your repository) where you’ll edit your files and push your changes. On your main repository page, click the green Code button, then copy the HTTPS URL of your repository.
You already have a copy of your project on your hard drive, so why do you need to clone your repository? This is a best practice because it makes it easy to see when people added or removed files. It also makes it easier to fix merge conflicts.
8. Choose a directory.
Open your terminal and navigate to the directory you want to place your repository copy.
9. Paste your repository URL.
In the terminal, enter git clone. After this paste in the repository URL that you previously copied. Your command should look like this:
10. Clone and check your copied repository.
Press Enter to clone the repository. You’ll see a new file added to your local filesystem with your repository’s name. If you open this file, you’ll see it contains the files in your GitHub repository. These are copied versions of your repository’s files that you can edit and then push back to your repository.
11. Create a new file in your new repository.
Let’s end by creating a new file in your cloned repository, then pushing it to GitHub. In your local clone, create a new text file called hello.txt. In it, paste the text Hello, world! and save the file.
12. Prepare to push your files.
In the terminal, navigate to inside your cloned repository. Then, type git add . and press Enter. This prepares all files in your cloned repository to be pushed.
13. Commit your changes to the changelog.
In the terminal, type git commit -m "added hello.txt" and press Enter. This commits your changes to the changelog. The text in quotes is a comment briefly describing the purpose of the commit.
14. Push your cloned repository files.
Type git push origin main in the terminal and press Enter.
15. Check for your new file.
Back in your GitHub repository, you’ll see your new file added. Now you’re ready to get to work and begin collaborating on your new project.
GitHub: The Platform Behind the Software
When we think of technological innovations, it’s sometimes easy to attribute everything to one person — think Steve Jobs or Bill Gates. Of course, the reality is that software comes from minds working together. It advances thanks to the millions of professional and amateur developers working together to develop new things in new ways.
That’s the beauty of GitHub. It lowers the barrier of entry for collaboration, so anyone can pitch in their ideas toward projects of their choice, or start a project of their own.
It’s difficult to imagine the world of open-source software before GitHub. Now, it’s ready for anyone to explore, including you.
Choosing the Right Training for a Career in IT
Md. Shish Mehedee, CEO, INFORMAX TECHNOLOGY LIMITED
Course: Database Design & Development, Round-3
From Kushtia to Dhaka
The year was 2001 and Md. Shish Mehedee had just completed his BSc graduation from a college in Kushtia. Mehedee had no clear idea about what to do next. His father was the principal at the local private high school. Mehedee’s family’s financial situation forced him to think long and hard about his next course of action for his future career. He was sure about a couple of things. Firstly, he knew this much that his BSc graduation degree would not secure him a job in the competitive job market. Secondly, Mehedee was well aware of the booming IT industry of Bangladesh and wanted very much to carve out a career in this industry.
IT Training Courses in Dhaka
Losing no time, Mehedee moved from Kushtia to his uncle’s place in Dhaka as the capital was the home of the emerging IT industry of Bangladesh and began looking for a quality IT training provider. This however posed a problem. The IT training market offered numerous training courses of varying duration on a host of technologies. All the training courses claimed to be of excellent standard. Mehedee joined one such course and after completing it he sat for a job interview at a local software development company. The negative outcome of the interview made him aware of the shortcomings of the computer training course he had recently completed. The course had very little in common with the requirements of the job market. This was when he came to know about the IsDB-BISEW IT Scholarship Programme.
Mehedee applied for the IsDB-BISEW IT scholarship in Round-3 and was overjoyed when he cleared the scholarship screening process among stiff competition. He was assigned to the course Database Design & Development which was based on the Oracle database platform. The training and studying regimen in the course were a new experience for Mehedee. The regular classes, examinations and projects gave Mehedee a solid grounding in programming and modern database technologies. The entire training process of the IT Scholarship Programme was designed to encourage the trainees to work under pressure and deliver.
Professional IT Career
Mehedee got his first job offer even before his last exam was over. It was at Apex Holdings. Right after finishing his training, he took up the position of a programmer at Apex Holdings. He was assigned to their Ghazipur factory. Mehedee was however not satisfied with the job as the technology stack not varied and there was little scope for learning new technologies.
In a short span of time, Mehedee switched jobs and joined IBCS-PRIMAX, a leading software company in Bangladesh. He found the work at the new company very exciting and got ample opportunities to learn. Later on, with the assistance of IsDB-BISEW, he landed a job as a database developer at a company in Riyadh, Saudi Arabia where he stayed for two years.
At present, Mehedee is a proud owner of his own software company. The company specializes in software solutions for insurance companies. Most of the developers working in his company are also graduates of the IsDB-BISEW IT Scholarship Programme. Mehedee says “I always prefer IsDB-BISEW graduates in my company as they are hard workers and are productive from day one”.
Md. Shish Mehedee feels that the IsDB-BISEW IT Scholarship Programme is the best option for graduates with non-IT backgrounds to switch to a rewarding career in information technology. “The IT Scholarship Programme has given me professional opportunities which would not have been possible otherwise. I hope that graduates interested in IT will take advantage of the programme to achieve a fruitful career”.