Africoders 2.0
Discuss anything from latest technology trends to software development. Find your community and share your voice at Africoders!
How I got my MTN Line Working Again
- dhtml replied
- 133
- In the early hours of today, these was massive barring of MTN lines. My line was affected as well. Note: Government asked MTN to unbar the lines, however, if your NIN is not properly linked, you might still get barred in future. That is why this post is really about. I visited the official page for NIN linkages - https://ninlinking.mtn.ng/ After trying to fill the form, the form said my line does not exist. ’I then proceeded to try out the other option which is: #996*NIN# After doing this I received a message from MTN saying: Thank you for providing your VNIN ***023423432332 and consent to upd...
My MTN Line Has Been Successfully Linked With NIN
- dhtml started
- 27
- Yesterday, I made a post about the steps I took to reactivate my MTN line after it was barred. You can read it here: https://afr.ng/4dd97fc4. I know that the NCC asked MTN to unbar those lines, but the issue is that lines without NIN linkage will still need to be reactivated at some point in the future. So why not save yourself the stress now and fully activate your line? This way, you won’t have to queue at an MTN office later. After following all the steps in the previous post, I got a confirmation from MTN that my line has been successfully linked with NIN.
- L
Go - constant variables and const keyword
- dhtml replied
- 28
- Programming languages have the notion of constants which means “variables that can not be mutated once declared and initialized”. Go also has almost the same meaning, but in a different context. To initialize a variable as a constant with a value of 10, we can do something like this: $$ const DISCOUNT = 10 $$ In Go, constants mean “storing a literal to a variable”, this can be seen as a version of pattern matching in Erlang. Literals in go are constructs that can create an instance of strings, numbers, booleans, composite structures, functions, or expressions. Hence unlike many programming lan...
- L
Time in Computer Systems
- limistah replied
- 29
- Learn how time tracking is implemented from the hardware. Time is a linear monotonically increasing value and to keep track of it, a system has to be powered to take note of every tick. For a microcomputer running an operating system that can go on and off, this means there is a need to constantly update time whenever the computer comes on, but that is not the case because of some intelligent mechanisms that computer hardware and operating systems use to keep track of the current time. Real-Time Clock A Real-Time Clock (RTC) is an electronic hardware component that helps track the current time...
TECH TIP OF THE DAY
- dhtml replied
- 37
- Don’t be afraid to experiment and make mistakes…Technology is all about exploration and learning. Every expert was once a beginner who made plenty of mistakes. Embrace the learning process, and remember that each mistake is an opportunity to grow your skills and knowledge. Keep a curious mindset, and don’t hesitate to ask questions or seek help from others. With persistence and practice, you’ll find yourself becoming more confident and proficient in no time.
- L
Leap Year Challenge Exercise
- luhan started
- 25
- In your preferred language, write a program that works out whether a given year is a leap year. A normal year has 365 days, and leap years have 366, with an extra day in February. This is how to work out whether a particular year is a leap year: A year is a leap year if it is evenly divisible by 4 ; except if that year is also evenly divisible by 100; unless that year is also evenly divisible by 400. For more context, Is the year 2400 a leap year?: 2400 ÷ 4 = 600 (Leap) 2400 ÷ 100 = 24 (Not Leap) 2400 ÷ 400 = 6 (Leap!) So the year 2400 is a leap year. But the year 2100 is not a leap year becau...
Python vs. JavaScript: Which Did You Choose and Why?
- luhan replied
- 74
- Hey Africoders, I’m a web developer who’s been primarily working with Javascript for my projects. Recently, I started learning Python as part of my semester workload, and it’s been an interesting experience to learn a new language. I’d love to hear from all of you fellow coders: Python vs. Javascript: Which did you choose as your primary language and why? For me, Javascript has been my go-to for web development because of its: Front-end dominance: Javascript is king in the browser, allowing for interactivity and manipulation of web pages. Libraries like React and Angular make building complex ...
- L
Handling Events in React: A Beginner's Guide
- luhan started
- 42
- In React, events are a way to capture user interactions with your application. They allow you to respond to clicks, key presses, form submissions, and other user actions. This article will cover the basics of handling events in React, including how to prevent default behaviour and pass event data to functions. Basic Event Handling You can use the prop on an element to handle an event in React. This prop takes a function that will be called when the event occurs. Here’s an example: function handleClick() { console.log('Button clicked!'); } function MyComponent() { return (
NEVER GIVE UP ON YOUR TECH STACK!
- luhan replied
- 80
- Whenever you wanna give up on your Tech stack, Remember someone remotely earns over $200k + for being a techie providing solutions to users. Consistency got them there, you can do it and you will. DON’T STOP. FINISH YOUR COURSE, YOU WILL WIN.
- S
18 Essential HTTP Status Codes You Should Know in 2024
- Johnery replied
- 55
- 2xx Success • 200 OK: Request succeeded • 201 Created: New resource created • 202 Accepted: Request in progress • 204 No Content: Success, but no content to return 3xx Redirection • 301 Moved Permanently: Resource has new permanent URL • 302 Found: Resource temporarily at different URL • 304 Not Modified: Resource unchanged since last request 4xx Client Errors • 400 Bad Request: Client-side error (e.g., invalid syntax) • 401 Unauthorized: Authentication required • 403 Forbidden: Server refuses to fulfill request • 404 Not Found: Resource doesn’t exist • 405 Method Not Allowed: HTTP method not ...
- L
Vanilla CSS vs Styled Libraries
- Johnery replied
- 75
- When styling your webpages, you have two main approaches: vanilla CSS and styled libraries. Both have their strengths and weaknesses; the best choice depends on your project’s specific needs. Vanilla CSS refers to using plain CSS code to style your elements. Styled Libraries are frameworks or libraries that are built on top of vanilla CSS, offering features like: Faster Development: Pre-built components and utility classes can save time and effort. Easier Maintenance: Styled libraries often promote code organization and reusability. Potential for Bloat: Libraries can add extra code to your pro...