|
I took Fortran after BASIC, to say it was a breath of fresh air would be an enormous understatement! Not dissing BASIC, the instructor I had seemed to encourage the spaghettification of code, to the point of insanity, it was my first programming class and it was painful. I had a math instructor who talked me into taking a Fortran class, wow what a (pleasant) eye opener! This has nothing to do with C or C++, but sometimes I think Fortran gets a bad rap.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Make pretty pixel art on punch cards?
And of course you can exit a nested loop!
try
{
for (i=1; i<=10; i=i+1)
for (j=1; j<=10; j=j+1)
for (k=1; k<=10; k=k+1)
if (x[i][j][k] == 0)
throw new LoopyExit();
}
catch(LoopyExit)
{
}
Stunningly, I (and I suspect "we") have all seen this done, but of course not by us!
|
|
|
|
|
I was also tempted to reply something like this:
Quote: In C-like languages exiting from a deeply nested loop isn’t exactly trivial (without the use of goto, so don’t even go there).
exitloop = 0
for (i=1; i<=10 && !exitloop; i=i+1) {
for (j=1; j<=10 && !exitloop; j=j+1) {
for (k=1; k<=10 && !exitloop; k=k+1) {
if (x[i][j][k] == 0)
exitloop = 1;
}
}
}
Dumb. The dummy actually made a case for goto . So I will.
for (i=1; i<=10; i=i+1) {
for (j=1; j<=10; j=j+1) {
for (k=1; k<=10; k=k+1) {
if (x[i][j][k] == 0)
goto exitloop;
}
}
}
exitloop:
It is cleaner than his code. Don't be hung up over trivial bullshit, and get the job done. (Not that I would do it this way, but every tool has a use.)
|
|
|
|
|
Google has announced that it’ll shut down Currents, which was introduced in 2019 as a replacement for Google Plus for G Suite. It's the product so nice, they cancelled it twice
|
|
|
|
|
|
I’m shocked. Shocked! That this is going on!
TTFN - Kent
|
|
|
|
|
It's called an NFT because it's not "money".
Money in quotes there, since it is still fiat and not real money.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
2 hours?
I have no trouble with NFT's. At all. Just with the term "money".
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I started it thinking, "I won't finish this - after all, he's preaching to the choir." I ended up finishing it because it was really well done, and always interesting. Learned some new stuff. He outlines how NFTs are definitely "Money Chasing Money".
|
|
|
|
|
The letter "k" is missing.
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!
|
|
|
|
|
The days are long gone when you can just shut something down for being stupid.
|
|
|
|
|
As witnessed by the plethora of absolutely stupid ads in the SuperBowl last night. Don't watch hardly any football, but went to my uncle's yesterday and saw it. God, they have become dumb!!! When I was a kid the ads were amazing and funny. Somehow it became a race to the bottom.
|
|
|
|
|
Photons Received: Webb Sees Its First Star – 18 Times – James Webb Space Telescope[^]
What looks like a simple image of blurry starlight now becomes the foundation to align and focus the telescope in order for Webb to deliver unprecedented views of the universe this summer. Over the next month or so, the team will gradually adjust the mirror segments until the 18 images become a single star.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Are those streaks Starlink satellites?
|
|
|
|
|
They'll eventually block out everything, because a pile of them were bricked by recent solar activity and will undoubtedly be replaced.
EDIT: I just realized that it must be Musk's secret plan for a Dyson sphere!
|
|
|
|
|
Greg Utas wrote: I just realized that it must be Musk's secret plan for a Dyson sphere!
If they were in Solar orbit, you could have a point. The problem is that you seem to have dropped quite a few decimal points in calculating the necessary number of satellites, to say nothing of the dynamical instability problems.
(See Larry Niven's Ringworld, and why he had to add thrusters to the rim in its sequel, The Ringworld Engineers)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Swarm or bubble?
There are multiple types.
My personal favorite is the shell.
|
|
|
|
|
On December 21st, 2021, the "tokamak" reactor produced 59 megajoules of energy during a five second fusion pulse, more than double what it managed way back in 1997. "Jet, I thought the major was a little lady suffragette"
|
|
|
|
|
Highlights:
- "JET hit a Q value of 0.33, meaning it produced about a third the energy put in."
- "On December 21st, 2021, the "tokamak" reactor produced 59 megajoules of energy during a five second fusion pulse"
- "researchers must solve several challenges. Principally, they have to deal with the heat created in the exhaust region"
Doesn't sound good for global warming.
|
|
|
|
|
In the same way that Grammarly finds grammatical errors or opportunities for improvement in essays and emails, r2c’s tool, called Semgrep, parses lines of code to check for thousands of potential bugs and vulnerabilities. Hopefully it checks for passive voice in your function calls
|
|
|
|
|
With Microsoft detecting a 1070% year-over-year increase in ransomware attacks between July 2020 and June 2021, the company has now announced a "Security Insider" program to keep business leaders updated on the latest trends in this space. Find out about security from the people that give you reasons to know about security
|
|
|
|
|
Intel's software-upgradeable CPUs to be supported by Linux 5.18 this Spring. Insert 25 cents for an additional three minutes of GPU time
|
|
|
|
|
Given Intel's track record with software, this is cracked in 3..2..
|
|
|
|
|
According to a short Western Digital press release, the contamination issue has affected "at least" 6.5 exabytes of flash memory, which works out to a bit under 7 million terabytes or 7 billion gigabytes—that's a lot of NAND that will suddenly be unavailable for SSDs, phones, memory cards, and USB drives. An analyst speaking to Bloomberg suggested that the final total of the lost capacity could be as much as 16 exabytes. "I remember the time I knew what happiness was, let the memory live again"
|
|
|
|