Harisu Profile
Harisu

@fanyui1

Followers
205
Following
303
Media
50
Statuses
255

Tech enthusiast interested in open source and cloud (I swear am not and alien 👽 )

Cameroon
Joined March 2016
Don't wanna be here? Send us removal request.
@fanyui1
Harisu
8 months
Do you remember when you joined X? I do! #MyXAnniversary
0
0
0
@fanyui1
Harisu
1 year
soil health diagnostics, and personalized farming advice. By leveraging the Gemini API, we create a robust and accessible solution that addresses the unique challenges faced by farmers, ultimately leading to improved crop yields and sustainable farming practices. #buildwithgemini
1
0
1
@fanyui1
Harisu
1 year
Vote for farmer guide Farmers Guide aims to empower farmers in Africa by providing them with an AI-driven platform that offers essential agricultural knowledge, real-time crop disease detection, accurate weather forecasts, https://t.co/RpcypJFSF4
Tweet card summary image
ai.google.dev
Empowering farmers with AI-driven crop disease detection.
1
1
2
@fanyui1
Harisu
1 year
Hack the #Gemini API @Gemini with @udacity over the weekend and got a certificate looking forward to more awesome usage in projects https://t.co/l5WsACvhhq
0
0
2
@RebaseCodeCamp
Rebase Code Camp
2 years
Experience interactive, engaging and hands-on training, to meet industry requirements in the tech job market. Rebase Code Camp shall be opening its doors to a new batch of students this July. Apply Now to secure your spot. Contact us: 652627809 | rebaseacademy@gmail.com
0
2
5
@fanyui1
Harisu
2 years
Finally releasing v1 of the #golang walkthrough tutorial I have been working on.
0
0
9
@fanyui1
Harisu
2 years
If the failure of the app causes the function to terminate then success block needs not run as such it brings up another point. You do not have to use else for error handing but rather continue the code at the same root level as the control flow that initiated the error check.
0
0
0
@fanyui1
Harisu
2 years
we log and then end or exit the program in entirety. These are typical when the control flow is checked at the level of main. One thing to note with go and error handing is that. Immediately after checking for errors, you should always deal with the error before the success.
1
0
0
@fanyui1
Harisu
2 years
3. Logging the error. In some cases, it's sufficient to just log a message of the error and continue execution or terminating. These are when the error is not of paramount importance then we log and continue however if the context here is main and in the case of terminating
1
0
0
@fanyui1
Harisu
2 years
2. Retry attempt: The second way of dealing with errors will be to retry the operation being performed with some certain criteria and limits in most cases you want to have a sentinel which limits how much times you retry and if it still continue failing you want to stop retrying.
1
0
0
@fanyui1
Harisu
2 years
1. Propergate the error back to the caller: this is usually when the error happens within a function that was called by a parent function the caller function will have to forward back the error to the caller and then terminate.
1
0
0
@fanyui1
Harisu
2 years
Handling error in go is by use of control flow. Also, when errors occur there are usually a number of ways in which the error can be dealt with. This also usually depends on the operation that was being performed and or the context in which we are operating.
1
0
0
@fanyui1
Harisu
2 years
When dealing with functions that return error it is great to understand that there are two possible values for the value of type https://t.co/KYE93BOhQ7 can be nil or non nil with nil representing that no error occurred and any other thing apart from nil means there was an error.
1
0
0
@fanyui1
Harisu
2 years
to be an error, it is paramount to ensure that the function returns two results one which is the actual result and another which represents the error. Simply put the error should always be the last value in the list of returns from any function that potentially throws and error.
1
0
0
@fanyui1
Harisu
2 years
detect and know why it fails if it does happen. This is where error handling comes in handy. We therefore infer that error handing is a very crucial aspect of writing reliable and maintainable go code. When ever we create functions for which we have as a possible outcome
1
0
0
@fanyui1
Harisu
2 years
possibility of errors for writing or reading from the sources. Hence we in order to know why these error or failure happens need to write our programs with assumptions of and to take control of errors when they occur. Event for the most reliably operation we should be sure to
1
0
0
@fanyui1
Harisu
2 years
Errors and Error handling in #go: It is worth noting that even the most well written program will and can encounter errors and as such success is not usually a surety and guaranteed outcome.For instance if your program performs and input or output it will have to assume the
1
0
1
@fanyui1
Harisu
2 years
or abnormally completed. By Normally, we mean the caller function executing a return statement or falling off the end. Abnormally the caller function panicking.many function calls can be deferred and they are executed in the reverse of the order in which they were deferred.
0
0
0
@fanyui1
Harisu
2 years
One thing to note about defer statement is that the function and argument expressions are evaluated when the statement is executed, but the actual call is deferred until the (caller) function that contains the defer statement finishes. The "finished" here means either normally
1
0
0