Break, continue, and return are basically goto, when translated to low level machine codes :thumbsup: Also for-loop, if-else, while-do, switch, etc. Gotos are frowned because some people used it badly. Maybe they caused infinite loop or something. Maybe they forgot to free the allocated memory. Also it shouldn't be used when your high level language provides more explanatory keywords above. The reason is obviously, for maintainability and readibility purpose.
Daniel Will
Posts
-
There are many gotos, but these ones are mine -
A little hope ;) 'Air Canada Has to Honor a Refund Policy Its Chatbot Made Up'That's the most ridiculous excuse I have ever read. The AI chatbot was literally run by the company. If it said that the company is giving me full refund, the company has to give me full refund as promised, no other way. If they are unhappy, they are free to fix their chatbot. But what said has been said.
-
Bram Moolenaar, developer of VIM, dies at 62I hate this kind of news too. If I die from colon cancer, or pancreatic cancer, so be it, let people know. Why should it be kept secret? Being open is good so other people can be more wary, which diseases kill people the most, and have that part of their body checked. I hate it when I read 'rapidly spreading serious medical condition' bla bla bla..
-
I thought that Cryptocurrency was a shell game, a pyramid scheme, or a scam ...Yup, the case of Squid Game cryptocurrency showed us how cryptocurrencies are scam, in general. Most people have difficulty in trusting certain countries currency and keeping their money in that currency. Many people in my country choose to save money in SGD or USD. Yet people believe in crypto currencies, which is not backed by any country, but run by an anonymous? Now it finally happened: The maker can simply close the whole thing and run away with everyone's money. I hope more people's eyes are opened after this.
-
Deep Fake Bank RobberyUsing one factor authentification is totally foolish. The bank system should still ask for a passphrase even though the voice is matching already. Also there should be limit on how much transfer can be done in a day. In my country, one can only transfer a maximum of 20 millions IDR (about 1400 USD) in a day when you perform distant operation like this. More than that, you have to come to the bank. Like this, a hacker can't simply empty your saving. The bank will send notification to me whenever a transaction happened. The Bank in this news shold be responsible for the loss.
-
HP - stop drinking the juice that Microsoft made for youThey simply won't let you print then. Big companies these days... Sheez... I heard that Windows 11 requires mandatory Microsoft account now. If you don't have active internet connection, then you can't install OS.
-
Light mode vs. Dark modeMy eyes have used to light mode ever since Windows 3.1. It was never a problem to me. I too find the existence of 'dark mode' weird. I have never used it on PC. Aren't we supposed to work in a light environment? It's useful on mobile, when I playing with my smartphone before bed.
-
Windows Update"Oh, but our native apps are so much better!" whine them.
-
NamesI use "result" or "response" when it is really a throw away variable for debugging purposes. Using "ewww" or "blurpp" is crossing the line. We are working, not joking with friends. Even if it's a personal project, bad habits get carried to other things.
-
Updated VS2019 - why exaclty do I need to reboot?VS (which is an additional app, which we specifically download and install) shouldn't have shared components with OS / other applications. I can understand if it's OS bundled application...
-
Updated VS2019 - why exaclty do I need to reboot?Exactly. I haven't restarted my Centos server for ages. And I have installed and uninstalled tonnes of things. A software should just use it's own codes, contained in it's own folder. If several softwares shared same DLLs, and the latest/newest DLL downloaded by the new software is incompatible (in some minor things) to the the oldest software sharing the same DLL, won't this break the old software? Bad code management by M$. They might have done this to save disk space, but, as far as I know, these redistributables have very small size.
-
crap coding for myself. What variable names do you use?Err... I would never hire you if I was an interviewer. I name everything properly, even in a throw away / practice program. Habit is something that's hard to change. Have a good habit.
-
Is Xamarin Forms Dead?Use Flutter. Even that article suggests so. You can code Flutter using Visual Studio Code, which is one of the most popular editor right now.
-
CCS is worst language ever createdThat feature doesn't exist, because IMO it's something that we shouldn't do to begin with. Websites are displayed on various screen sizes, contrary to Windows App which almost definitely shown on a monitor. If you fixed the size of element b as 1/10 of total web page's height, it will be nightmare/unreadable on some screen sizes. If it's screen size, there already "vh" and "vw" as unit size.
-
comments from ms-dos 2.0 sourceSo true, man. I have manager who always give crazy deadline. "Finish this in three days!" "Our client can't wait! This new feature has to be done in one week!" "We have to do with current members!" Me: Well... well... I will simply hack here and there. There's simply no time to code them from the fundamentals.
-
The Decline and Fall of Search EnginesExcuse me... The price of an item in an online store IS a currency value. It will be processed as monetary value when people do buy the item. So, yeah, don't use floating point in anywhere of it.
-
My cat continues to teach me about my computer.Ctrl+A is faster though, for the last one. The first two are useful indeed.