Clojure macros are tricky, but fun. I'm making good progress on this scoping macro. Maybe it'll even be useful.
Advanced Test Driven Development, Refactoring, & Clean Code: A Master Course.
13 weeks, two hours every Wednesday, starting April 3rd. Be there! And tell all your nostr friends!
https://www.ubmeevents.com/event/f37334be-1ee9-4bda-8a12-bba636756769
Well, it looks like I'm going to have to write a significant clojure macro. Wish me luck!
Robin Williams... RIP...
From: satboi<-MelvinCar... at 01/26 10:03
> Good morning 🙏 🌄 smile my boi
CC: #[4]
Good Morning Nostr,
My lovely wife and I have retired, once again, to our Northern Hidewawy. The weather is awful -- foggy, slushy, rainy -- ugh. But life is good and I'm looking forward to relaxing with her and seeing friends.
I just watched (re-watched) one of Rich Hickey's remarkable talks from 2018. The first half is all about the problems with "Maybe" and "Nilable". The second half if much more clojure specific; and makes a promise that I think he has yet to fulfill. So you can skip that if you are not a clojurian.
How did I get wrapped into this? Nevermind. Nevermind.
From: (mleku1) at 01/24 15:21
> just to let you know, i was following you
>
> i now rate you below uncle bob
CC: #[4]
CC: #[5]
Science can explain and inform. Policy requires honesty and judgement -- two things that our politicians are seldom known for.
From: (graycat) at 01/24 08:15
> I just don’t think science can get us all the way to a policy recommendation. That requires values and prioritization.
CC: #[4]
Good Morning Nostrs.
Today on X someone said:
Scientific consensus is well established on climate change issue: It is human made, and drastic reduction of emissions is required.
To which I replied:
“Consensus” is a political term that is used to obscure the actual science. It’s an argument from authority, with that authority being usurped by the arguer.
The actual research indicates rising levels of CO2 and rising temperatures; but does not suggest “drastic” anything.
In short, the research is interpreted, then summarized, then reinterpreted, then re-summarized, in a game of “telephone” that warps and obscures the actual results of the research to align with the goals of the politicians.
Do you know how to use a slide rule? This is my father’s from long, long ago. 
My ears are burning!
From: arctan<-DerekRoss at 01/12 11:57
> We talk about you at work every now and then Bob, cheers.
CC: #[4]
There is no network!
This. Is. The. Way.
There is something very pleasing about _numerically_ calculating that e^iπ=-1.
(defn cadd [[xr xi] [yr yi]]
[(+ xr yr) (+ xi yi)])
(defn cmul [[xr xi] [yr yi]]
[(- (* xr yr) (* xi yi)) (+ (* yr xi) (* xr yi))])
(defn cscale [[xr xi] s]
[(/ xr s) (/ xi s)])
(defn cprn [[xr xi]]
(prn (double xr) '+ (double xi) 'i))
(defn compound [balance rate periods]
(let [period-rate (cadd [1 0] (cscale rate periods))]
(loop [balance [balance 0]
periods periods]
(if (zero? periods)
balance
(recur (cmul balance period-rate) (dec periods))))))
(cprn (compound 1 [0 3.141592653589793] 100000))
-1.0000493492396174 + 1.0335963488293152E-9 i
Today I had a comment on a code review which left me pretty confused.
I would really appreciate if some of you coders out there (some of which have written books and that :) ) could share your thoughts.
The questions are:
1. Is there a code smell here?
2. Do we really need to make variables out of duplicated strings under ALL circumstances?
I have an example here
The documentation the reviewer presented to back up their argument is here: (I know it's for Go, but should still apply)
They have a compelling case, but from my experience, the closest thing I can come up with in terms of code smells, its the "primitive obsession", but that doesn't quite apply.
Please help?
nostr:npub19mun7qwdyjf7qs3456u8kyxncjn5u2n7klpu4utgy68k4aenzj6synjnft, nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft
From: (ThyLobster) at 01/05 11:39
>
> The questions are:
> 1. Is there a code smell here?
Yes, but it's not a big one. Personally, in the case you presented, I would keep the duplicated string for two reasons. First, it reads better. Second, I do not trust that the two strings will remain duplicated. Some marketting or UI Designer will likely want to rephrase them and could easily make them different.
> 2. Do we really need to make variables out of duplicated strings under ALL circumstances?
No. I would take it case by case.
CC: #[3]
CC: #[4]
Another lesson I learned long, long ago: Don't drink and code! 8 hours bottle to throttle.
A lesson I learned long, long ago. Don't drink and tweet. (or post on _any_ social network).
From: (mainvolume) at 01/02 13:53
> Homophobia must be a bitch, besides racism, since gay appears black too.
>
>
> Don’t mind me, whiskey talking
CC: #[4]
CC: #[5]
Harvard President Resigns! Hoo Rah!
Well, I meant speculations about the root causes, not if there was a runway collission.
Thanks for your links: In 2019 the number was 1753. So it seems the numbers are just "back to normal" after some years with low number of flights.
The ICAO runway safety statistics end at 2010, unfortunately: https://www.icao.int/safety/RunwaySafety/Pages/Statistics.aspx
I will check the yearly reports.
https://www.nytimes.com/interactive/2023/08/21/business/airline-safety-close-calls.html
From: Peter1187<-mazin at 01/02 10:26
> Well, I meant speculations about the root causes, not if there was a runway collission.
> Thanks for your links: In 2019 the number was 1753. So it seems the numbers are just "back to normal" after some years with low number of flights.
> The ICAO runway safety statistics end at 2010, unfortunately: https://www.icao.int/safety/RunwaySafety/Pages/Statistics.aspx
> I will check the yearly reports.
CC: #[4]
It is not speculation that there was a collision on the runway. The two most likely causes are pilot error, or ATC error. There is a small chance that the brakes on the coast guard plane failed and that it rolled onto the runway; however, both the pilot and ATC should have noticed that long before the A350 collided with it.
As for statistics, the FAA reports 1760 runway incursions in FY23, 1730 in FY22 and 1574 in FY21. That is a number that should be going down, not up.
https://www.faa.gov/airports/runway_safety/statistics/
CNN reports 7 close calls "this year" reporting in March of 2023.
https://www.cnn.com/2023/03/11/politics/close-calls-airplanes-runways-what-matters/index.html
Since March there have been others, including a collision between two private jets.
https://www.cnn.com/2023/10/24/us/houston-hobby-airport-grounded-flights-jets-collision/index.html
From: Peter1187<-mazin at 01/02 10:01
> As usual we will have to wait for the official report. It is too early to speculate. Do you have an statistics that collissions on runways are becoming more frequent lately?
CC: #[4]
The collision of an A350 and a coast guard plane, on the runway in Tokyo was horrible. All 379 passengers and crew on the A350 got out safe. The crew of the coast guard plane died, except for the captain who is in critical condition and on life support.
CNN reported this as an event when everything "goes right". The anchor was talking about the evacuation of the A350; and, yes, _that_ went right. But collisions on runways are becoming much more frequent lately, probably due to inexperienced pilots and air traffic controllers hired after the experienced folks were retired early due to Covid.
IMHO.
Really well done.
You can't make this stuff up.
https://x.com/WallStreetSilv/status/1741391243613979106?s=20
Damus is the most popular client for the iPhone, and is very useful. I will be sending @jb55 20K sats every month for using it. I suggest you send what you feel is fair.
Yes, that's the town. When we were there the river was so fast and violent it made a sound like a frieght train. Our hotel was right across the street. It was surreal.
From: pam<-DerekRoss at 12/24 18:02
> Is this town Aguas Calientes? The jungle rising into the mists of the mountains and the river running through it, sounds like an incredibly picturesque scene! The ancient Inca citadel always looked mystical. Did you hike up the Andes Mountains? Machu Picchu sounds awe-inspiring!
CC: #[4]

