In Golang semicolon is necessary but the compiler have a couple of rule so that the developers don't have to write the semicolon as a termination.
Go program can omit most of it if you just follow
- if you are using closing statement like
- when input is broken into token, semicolon will inserted immediately after a lines final token if that token is
- identifiers
- integer, float, rune, string or imaginary number
- keyword break, continue, fall through or return
- operators and punctuation
By just following this rules you don't need to insert semicolon but if you are using two statements inside of if Conditions you must use it explicitly like
Final thoughts: WHY ARE YOU NOT LEARNING GOLANG ?
Go program can omit most of it if you just follow
- if you are using closing statement like
) or }.- when input is broken into token, semicolon will inserted immediately after a lines final token if that token is
- identifiers
- integer, float, rune, string or imaginary number
- keyword break, continue, fall through or return
- operators and punctuation
++, --, ) , ] or }By just following this rules you don't need to insert semicolon but if you are using two statements inside of if Conditions you must use it explicitly like
...Notice how we use semicolon inside of the if statement that is where we want Go to understand this is the termination.
if _, ok := someCall(); ok != nil {
...
}
...
Final thoughts: WHY ARE YOU NOT LEARNING GOLANG ?
π5π1
I have never laughed like this on reaction video
From the video
https://youtu.be/GjkQNAZbxKY?si=cgcU0RyzHER4RMlm
From the video
Despite JavaScript library surpassing the population of India...
https://youtu.be/GjkQNAZbxKY?si=cgcU0RyzHER4RMlm
YouTube
The Pain Of Frontend Dev | Prime Reacts
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewedβ¦
https://twitch.tv/ThePrimeagen
Become a backend engineer. Its my favorite site
https://boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewedβ¦
π8π1
For an extensive error reporting in python check this out and use it in your own case
import traceback
import sys
def divide_numbers(a, b):
try:
result = a / b
return result
except Exception as e:
exc_type, exc_value, exc_traceback = sys.exc_info()
tb_info = traceback.extract_tb(exc_traceback)
filename, line_num, func_name, text = tb_info[-1]
local_vars = {}
local_vars.update(locals())
error_info = {
"exception_type": exc_type.__name__,
"exception_value": str(exc_value),
"filename": filename,
"line_num": line_num,
"func_name": func_name,
"text": text,
"local_vars": local_vars
}
return None, error_info
result, error_info = divide_numbers(10, 0)
if result is None:
print("An error occurred:")
print(f"Exception Type: {error_info['exception_type']}")
print(f"Exception Value: {error_info['exception_value']}")
print(f"File: {error_info['filename']}, Line: {error_info['line_num']}")
print(f"Function: {error_info['func_name']}")
print(f"Code: {error_info['text']}")
print("Local Variables:")
for var_name, var_value in error_info['local_vars'].items():
print(f"{var_name}: {var_value}")
else:
print(f"Result: {result}")
β€4π2β‘1π1
Chapi Dev Talks
I am extremely active on friday and Saturday finished like more than 15 ticket that has been sitting for almost month. I need Friday and Saturday to be 4 times a week π. Two times in a Row OverTime Pay π
Guess how much is the overtime pay and if you guessed it correctly or +- 10$ you will get half
π±2
Chapi Dev Talk Group.
180
This beka guy is definitely linked with some kinda black magic spell πππππ
π€£10π1
Go and participate. Only after you joined the channel and the group else you won't be in the pool π
Forwarded from Beka (Beka)
okay I won something from chapi's channel and we're gonna do premium giveaway.
If you want telegram premium just comment something on this post and you'll be in the giveaway pool.
If you want telegram premium just comment something on this post and you'll be in the giveaway pool.
π1
Beka
okay I won something from chapi's channel and we're gonna do premium giveaway. If you want telegram premium just comment something on this post and you'll be in the giveaway pool.
Telegram
Beka
okay I won something from chapi's channel and we're gonna do premium giveaway.
If you want telegram premium just comment something on this post and you'll be in the giveaway pool.
If you want telegram premium just comment something on this post and you'll be in the giveaway pool.
π₯2π1
Don't miss this amazing Voice Chat tonight.
I think this might be the best voice chat for 2024.
Paulo's is an amazing security researcher.
Don't miss it set your calendar for Tonight.
Join the channel π
I think this might be the best voice chat for 2024.
Paulo's is an amazing security researcher.
Don't miss it set your calendar for Tonight.
Join the channel π
π8β€1
Forwarded from Codenight Info
Talk With Paulos Yibelo : Security Engineer At Amazon
Join Us on Codenight Talkshow as we welcome Paulos Yibelo, Ethical Hacker and Security Engineer who worked at INSA, Amazon and many other companies.
Get ready for an in-depth conversation about:
- Unveiling the Hidden Threats: A Deep Dive into Cybersecurity Vulnerabilities
- From Breach to Resilience: Strategies for Strengthening Cyber Defenses
- Behind the Scenes: The Art of Ethical Hacking and Security Research
Join us live on the Codenight Telegram voice chat this Sunday at 8 PM. See you there!
Join Us on Codenight Talkshow as we welcome Paulos Yibelo, Ethical Hacker and Security Engineer who worked at INSA, Amazon and many other companies.
Get ready for an in-depth conversation about:
- Unveiling the Hidden Threats: A Deep Dive into Cybersecurity Vulnerabilities
- From Breach to Resilience: Strategies for Strengthening Cyber Defenses
- Behind the Scenes: The Art of Ethical Hacking and Security Research
Join us live on the Codenight Telegram voice chat this Sunday at 8 PM. See you there!
β€17
This media is not supported in your browser
VIEW IN TELEGRAM
Show me a better marketing job please?
Flutter peps you must go here
Flutter peps you must go here
π7
Here is more
π3π2