|
Dan Sutton wrote: end up longer than that, with LINQ and so on
LINQ itself lends (pretty much requires) longer lines but they can certainly be formatted.
This is similar to formatting SQL in C#, Java, C++, etc when it is a string. The first try always starts out as one long string until one understands that it can be formatted in a way that makes it readable.
Dan Sutton wrote: and in some cases, splitting the line makes it less readable.
Not sure I believe that. But one can certainly reformat a long line in a way that makes it confusing. But that is a formatting problem rather than that the technique itself is flawed.
A long line pretty much starts out being difficult to read/understand regardless of how it is formatted.
Long lines will have 'parts'. So for example LINQ for a db has a data object, clauses, etc. SQL as a string has the same thing. If you write SQL in a stored proc it can be formatted in the same way.
Keep in mind of course that for C#/Java/C++ line breaks are not required. So one can write a method (and even a class) on few or even one line. But very few would claim that is a good idea.
|
|
|
|
|
Yes - I understand how to program. But sometimes, it just doesn't make sense to split the line. Often, it does. But not always.
|
|
|
|
|
|
Here's a better video than that article that debunks Agile:
Agile & Scrum Don't Work | Allen Holub In The Engineering Room Ep. 9 - YouTube[^]
These guys make a lot of sense -- and they explain that Scrum is a alteration of Agile to make it fit companies and ruins the original heart of Agile. And, that SaFE is just totally wrong.
The only thing in Agile that really matters are the principles from the original manifesto, the rest is people trying to make money off it.
|
|
|
|
|
Reminds me of a bus conversation i overheard more than 10 years ago (bus full of developers going for work)
Person 1: What development methodology does your team follow?
Person 2: Waterfallish agile.
Learnt a new buzzword on that day.
|
|
|
|
|
Boss: We're switching to Agile.
Team: We've been agile all along.
Boss: But now we'll use Scrum.
Team: Scrum won't work for our project and it will actually slow us down.
Any system for working with a large backlog of work to perform, by definition requires a large backlog of work to perform. Many managers tend not to understand that. The Agile and Scrum folk don't seem to mention the circumstances in which their systems may help.
|
|
|
|
|
After lengthy meetings, I often see people doing sprints to the coffee machine, to be first in line.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
|
Ah the simple joys of childhood, having a dog and a sense of wonder at the simplest of things. How I miss them.
|
|
|
|
|
"This dog keeps sneaking into our yard to use the trampoline I always let him have his fun”
He would be a big meanie otherwise.
I'm betting the trampoline gets more use from the dog than from his own kids.
|
|
|
|
|
It seems like there's an interesting back story of how the dog found its way on to the trampoline in the first place.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
greetings and kind regards
this is to suggest to those who are expert in AI what seems to me a useful application of the technology . id est a method of recommending career choice to those who are otherwise uncertain . assume a collection of personality profiles financial profiles intellectual profiles physical profiles etc. etc. etc. of a great many individuals happy and successful in their careers . our thus trained AI assistant can then be inquired upon by providing one's own such profiles and voila bingo presto uncertain no longer .
|
|
|
|
|
Anyone who relies on a machine to make their choices for them deserves everything they get.
|
|
|
|
|
I use this device for making critical decisions:
Magic 8 Ball - Wikipedia[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I use an even simpler and cheaper device - an old 1p coin.
Heads or tails?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: Heads or tails?
So if it lands on its edge then that is the same as the 8 ball 'Cannot predict now'?
|
|
|
|
|
jschell wrote: So if it lands on its edge
It's never happened to me yet...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
heads you write great code . tails you write greater code .
|
|
|
|
|
Maybe then, this career-recommending AI should also be accountable, and help the person in performing superlatively well in that job.
Wait ... would it mean that the AI will itself execute all tasks in that job?
|
|
|
|
|
I hope this news report is accessible internationally: Agder nedsnødd: Klarer ikke åpne skolene[^] ("Agder snowed down: Cannot open schools").
The text is in Norwegian, but you don't need to read the article to enjoy the video clip in the first image.
(If the web page is inaccessible: One guy is shoveling snow down from a roof - the snow goes significantly above his head. The third image shows the news reporter climbing through a window to get out of the house - the door cannot be opened. [They update the story now and then, and have replaced this photo with another one])
This is from Norway's southernmost county, Agder - a district where most winters bring at most a couple inches of snow to the costal towns. They were not at all prepared for this.
Religious freedom is the freedom to say that two plus two make five.
modified 3-Jan-24 8:43am.
|
|
|
|
|
Just a little snow there . Also, google kindly translated the text for me.
|
|
|
|
|
|
15 centimeters of snow - 6 inches for those of us in the US. This isn't much snow. However, the wind makes it a lot worse by creating huge drifts.
|
|
|
|
|
trønderen wrote: roof - the snow goes significantly above his head ... bring at most a couple inches of snow to the costal towns.
Myself I would be concerned, for all of the buildings, that the roofs might start collapsing.
Perhaps the roofs are designed for these rare events.
I can see from the video that the pitch on that roof is not one I would expect for such events.
|
|
|
|
|
Collapsing roofs are certainly a known phenomenon, but mostly with high mountain cabins where the entire building may be covered by a few meters of snow, with noone present to do the shoveling.(*) Not in coast towns with the Gulf stream passing by
And, the roofs collapsing are probably old ones. In my childhood (1960s), building standards required that roofs could, as a minimum handle at least 200 kg of snow per square meter. Today, the requirement is 300 kg/sqm. If you have a moderate size house of 100 sqm, there may be 30 tons of snow on you roof without risking anything. That is the amount of snow you get from 300 mm of precipitation (with none of it melting or blowing away). Newly fallen snow, still dry, may have a weight of 50 kg/cubic meter, so 300 mm of precipitation might give you 6 meters of dry snow (until it is compressed).
I guess that Norwegian building standards are rather extreme in this respect.
(*)
A friend of mine has a high mountain cabin, where they get their drinking water from a well. One particularly snowy winter some years ago, they couldn't possibly dig a vertical shaft down to the well - they dug a sloping tunnel and a snow cave over the well.
That winter, one of their cabin neighbors didn't see a trace of his cabin on the snow mesa, so he tried to do a quick triangulation from the surrounding mountains before starting to dig down. They did hit a roof, and happily dug on, down to the main entrance door ... to discover that this was the cabin next to theirs.
In the high mountains, you must be prepared for such disappointments. And you should build your cabin with a significantly stronger roof than the minimum requirements.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|