Bob

408 posts

Bob

Bob

@InquiringBob

Just a regular guy. Son, father, engineer. Try to chip in here and there with common sense. Nothing fancy.

New York, USA Beigetreten Ocak 2026
89 Folgt34 Follower
Bob
Bob@InquiringBob·
@yooyo3d @straceX You’re right, of course. Yet this was just an example of using GoTo to cleanup locally. It wasn’t trying to finish the code on the happy path where everything succeeds here, because that wasn’t the point of the example.
English
0
0
0
15
Juga
Juga@yooyo3d·
@straceX Nice example, but it leaks memory, socket and file descriptor.
English
1
0
2
196
Gracia
Gracia@straceX·
goto in C gets treated like a crime in most tutorials. the linux kernel uses it everywhere for error handling. when you need to clean up multiple resources, it’s often the simplest way to keep things correct.
Gracia tweet media
English
137
93
1.3K
80.1K
Bob
Bob@InquiringBob·
@mwdumdei @straceX It’s just different. Your variables are scoped to the if block they are declared in, so cannot be cleaned up that way. Adding steps makes the nested ifs deep and many would argue that doesn’t scale well. To me the GoTo approach is easier to read and scales better.
English
1
0
0
70
mdumdei
mdumdei@mwdumdei·
First off, the code is awful. Since the variables are local, success means you have an open file handle with no way to close it, you have allocated memory with no way to free it, and an open socket with no way to close it. The best outcome is config.txt can't be opened :). From a structural standpoint only, I would do something like this: if ((FILE *f = fopen("config.txt", "r")) { if ((char *buf = malloc(1024)) { if (int sock = socket(AF_INET, SOCK_STREAM, 0) > 0) { return 0; // need to return the handles, but... } } } if (f) { close(f) } if (buf) { free(buf) } if (sock) { close(sock) } return -1; Still has all the problems previously mentioned, but no goto and cleaner. That is why goto is discouraged. Too many coders use it in place of structured logic.
English
4
0
3
444
Bob
Bob@InquiringBob·
@loumacarichippy @terrychristian Their great great great great great grandparents were this or that. Today they were just a random cross section of society. If society is more conservative, so should they be. Whether it suits your agenda or not.
English
1
0
0
5
Lou Mac
Lou Mac@loumacarichippy·
@terrychristian "most were Conservatives" sums up why the system was wrong. Next step is replacing the rest of them with an elected and less bloated upper chamber.
English
1
2
5
815
terry christian
terry christian@terrychristian·
Idea of 'hereditary peers' in the 21st century is a laughable abomination.
Kemi Badenoch@KemiBadenoch

In the midst of all the news today, and with Parliament prorogued, many people may not have noticed that this was the final time the hereditary peers sat in Parliament before being forced out by Labour. I want to pay an extra special tribute to them. Combined they had 1784 years of parliamentary experience, wisdom and service to this country. That is not something easily replaced, and it should not be casually discarded. Most were Conservatives. All were public servants. They have brought to public life judgment shaped over decades, deep expertise, institutional memory, and a sense of duty that has strengthened Parliament and, very often, improved legislation in ways the public will never fully see. Their record speaks for itself. They have served in war and peace, in government and opposition, in defence, diplomacy, farming, business, science and public service. They have not merely occupied seats in the Lords, they have contributed to the life of the nation. That is why what has happened matters. Hereditary peers are a living part of Britain’s constitutional inheritance that Labour is casually tearing up. Labour has rubbed away another part of our heritage, not to strengthen Parliament but to replace it with political appointees, four of whom it has already had to suspend the whip from because they were so inappropriate. That contrast says rather a lot. At a time when public trust in politics is fragile, I think it is worth saying plainly that experience, seriousness and tradition still matter. Service still matters. Duty still matters. So today, as an era closes, I want to put on record my profound gratitude and admiration for our hereditary peers. Britain has been better governed because of them. The Conservative Party has been stronger because of them. And Parliament will be poorer without them. Their contribution will long outlast the petty politics that has brought this moment about.

English
44
25
182
7K
Bob
Bob@InquiringBob·
@terrychristian Hereditary peers today were no more than a random cross section of society with long ties to these islands. More importantly the government just deeply changed how we are governed without a vote. Even if you were right, this was very wrong. The lords would have stopped it.
English
0
0
0
20
Bob
Bob@InquiringBob·
@jmbprime Huh? Last I checked, Trump doesn’t object to Ukraine defending itself. His points are simple. Europeans should pay for their own defence, and the killing should stop.
English
0
0
0
13
John Brennan
John Brennan@jmbprime·
Why is the United States supporting Russia and Putin instead of Zelensky and Ukraine. How does aligning with a ruthless dictator benefit the U.S.
English
608
646
3.7K
49.2K
Bob
Bob@InquiringBob·
@Shambles151 Way to ask a leading question. Should demonizing Israelis which is happening, be treated in the same way as demonizing Iranians which is not happening. We can’t know if the thing that is happening equates to the thing that isn’t happening,
English
0
0
0
25
Roger Gall
Roger Gall@Shambles151·
"Jonathan Hall KC, the UK’s Independent Reviewer of Terrorism Legislation, stated in a speech that the "demonisation of Israelis" should be treated as a hate crime under existing laws." Should demonising Israelis be treated any differently to demonising Iranians or Russians?
English
17
50
34
1.2K
Bob
Bob@InquiringBob·
@Dipshit28985545 @Nickisbackbaby The law provides unique protections to persons. Therefore it must define what a person is. So many weeks or whatever is agreed. Once the embryo meets that definition, it’s a person. Destroying it is either lawful self defense or an unlawful killing. That’s a criminal matter.
English
0
0
0
7
Dipshit289
Dipshit289@Dipshit28985545·
@Nickisbackbaby so, let's explain this. prison meant for rehabilitation of criminals back into society, Even if very bad man in prison. abortion is like if you wanted to get rid of a parasite because that's what a baby is until it leaves the womb
English
2
0
0
118
🎯Nick 2.0🎯
🎯Nick 2.0🎯@Nickisbackbaby·
Can someone explain this to me like you would a child. The majority of liberals oppose the death penalty even for horrendous crimes. But are totally fine with abortions. Why? I fail to see the logic.
English
743
79
1.2K
31.7K
Bob
Bob@InquiringBob·
@Aeon212 @Nickisbackbaby Has being made responsible for your own choices ever worked on a societal level? I think the answer is yes. So we are left with - is this a choice where consequences should be born. Literally. That’s not some unique mental gymnastic event. It’s just responsibility.
English
0
0
2
31
Aeon21
Aeon21@Aeon212·
@Nickisbackbaby Has that ever worked on a societal level ever in the history of our species?
English
13
0
11
644
Bob
Bob@InquiringBob·
@RealPostFolder Add 5mph to the limit and answer that. If they instead ask what is the speed limit on this road you answer 5mph below your actual speed. And you smile and you’re polite. If you still get a ticket maybe they will mark it down. Then you plead not guilty. 5mph come on.
English
1
0
1
402
Real Post Folder
Real Post Folder@RealPostFolder·
"Officer, I believe I was going the speed limit" Don't say what your speed was, or what you thought the limit was, just say you thought you were following the law and nothing else
Real Post Folder tweet media
English
34
1
62
9.4K
Bob
Bob@InquiringBob·
@JacquiDeevoy1 30 days from the moment you tell them in writing they have 30 days. A text message will do.
English
0
0
1
214
Jacqui Deevoy
Jacqui Deevoy@JacquiDeevoy1·
If a friend stays at your place for a few weeks while you’re away and they invite a friend of theirs to stay and that person leaves a whole load of stuff in your home, how long should you wait before you bin the lot of it? In my personal situation, it’s been over a year now.
English
97
5
41
7K
Patrick Christys
Patrick Christys@PatrickChristys·
‘Keir Starmer Jew Harmer’: A march has begun in Golders Green after today’s terror attack.
English
410
1.7K
7.9K
195.6K
Bob
Bob@InquiringBob·
@data_barbs Anecdote is not data. Feelings are not analysis.
English
0
0
0
87
Lady Barbara |Founder & Data Scientist
Muslims are actually the only few honest people left. *in my experience* every encounter with them on a business or professional level I have never felt ripped off regardless of their race they all conduct business Honestly. Again “from my experience”
English
136
653
5.2K
126.9K
Bob
Bob@InquiringBob·
@vxylily Daisy Duke.
English
0
0
0
4
lily
lily@vxylily·
What is the FIRST thing that you think about when you see this Flag??
lily tweet media
English
4.5K
58
1.1K
147.4K
Michael E. NIX
Michael E. NIX@MichaelNIXG·
If Alexandria Ocasio-Cortez runs in 2028, how likely are you to support her? A. 100% Β. 75% C. 50% D. 25% Ε. 0% Vote honestly
Michael E. NIX tweet media
English
13.7K
303
2.3K
361.6K
Bob
Bob@InquiringBob·
@NYCMayor You’re the mayor of New York. Why is my bus always late? Why does my landlord fail to maintain? Why are the roads full of holes? Why is the playground littered? Cut the irrelevant histrionics. Come back to us when you’re doing your actual job properly.
English
0
0
0
16
Mayor Zohran Kwame Mamdani
Last night, Israeli forces intercepted and boarded a humanitarian aid flotilla bound for Gaza in international waters off the coast of Greece — unlawfully detaining more than 175 people, including several New Yorkers. My team has been in direct contact with State and Federal partners as we work to confirm the whereabouts and conditions of these New Yorkers. This is a brazen violation of international law. Those detained must be released.
English
9.7K
23.2K
137.5K
3.6M
Bob
Bob@InquiringBob·
@SteveOnSpeed Ask them for a simple breakdown materials versus labor. Just that nothing detailed. Then ask them how long it will take and do they have enough people how many people. That gives you an hourly rate. You can reason with that. I think the quote is reasonable.
English
0
0
1
451
Steve · Millionaire Habits
Just got a quote for a new garage at our lake house. $70,000. Includes: Foundation. 24x30 garage. Loft area upstairs with full plumbing. Earth leveling. Running utilities, like power, water, and sewer. This is good, terrible, or about right?
English
1.2K
4
666
639K
Bob
Bob@InquiringBob·
@oelma__ All we can do, while we are here, is maximize happiness. So we need to understand what is happiness. An Anglican would tell you, not without reason, that happiness is a more perfect union with god and your neighbors. That’s their definition. Your mission is to find yours.
English
0
0
0
12
Elma
Elma@oelma__·
What..?
Elma tweet media
English
1.4K
48
387
32.5K
Bob
Bob@InquiringBob·
@zarahussain999 @reformparty_uk Awww did somebody say something about somebody else? It wasn’t about you? We have an English word for that. It’s diddums.
English
0
0
0
27
Zara Hussain
Zara Hussain@zarahussain999·
@reformparty_uk I don’t remember any comments on the Muslim community when we were attacked during the national riots
English
18
4
470
9K
Reform UK
Reform UK@reformparty_uk·
We need action now. The Jewish community needs security and cannot be allowed to suffer any longer.
English
1.7K
1.3K
7.1K
881K
Bob
Bob@InquiringBob·
@zarahussain999 @SuellaBraverman The traditional parties are all going byebye. They refuse to listen to the bedrock that built these lands. They prefer the opinions of folk who arrived last week, because their votes are more easily bought - the cheap way out. We don’t yet know restore or reform. Let’s see.
English
0
0
0
16
Suella Braverman
Suella Braverman@SuellaBraverman·
You were part of the government that utterly failed to back the banning of the hate marches. Why did your former party leader sack me when I called out the failure of the Met Police and the out of control antisemitism? You’re part of the problem.
Sky News@SkyNews

"We need more action now, not just words." Conservative leader Kemi Badenoch outlines what the government needs to do in wake of the Golders Green terror attack in northwest London. trib.al/wKcTa5R 📺 Sky 501, Virgin 602, Freeview 233 and YouTube

English
370
410
1.8K
130.5K
Bob
Bob@InquiringBob·
@lkr lol. As I grew up I had to sleep diagonally across my bedroom. It was the “box room” and by the time I was a teenager if I tried to lie straight on the floor my head would stick out the door!
English
0
0
1
241
Laura Roeder
Laura Roeder@lkr·
Something that I could not wrap my mind around as an American moving to the UK is they specify if a bedroom is a "single" or a "double". A single means the bedroom can only fit a single/twin bed and is not wide enough for a double bed to even fit in!!
Laura Lupin@bugsandfishes

Lots of property size / raising a family discourse on the timeline today that's making me feel the American mind could never comprehend the British terrace (this one is just under 800 square feet).

English
7
0
12
17.4K