TheSwamp

Code Red => .NET => Topic started by: kdub_nz on November 29, 2016, 09:10:17 PM

Title: Gems & other stuff ...
Post by: kdub_nz on November 29, 2016, 09:10:17 PM
(https://static1.squarespace.com/static/518f5d62e4b075248d6a3f90/t/583aa5b1bebafb6551322268/1480238530975/?format=1000w)
Title: Re: Gems ...
Post by: huiz on November 30, 2016, 02:21:09 AM
 :2funny:
Title: Re: Gems ...
Post by: Jeff H on November 30, 2016, 02:50:07 AM
 :-D :-D
Title: Re: Gems ...
Post by: kdub_nz on November 30, 2016, 08:27:46 PM
(https://pbs.twimg.com/media/CycWIeIUcAAE34H.jpg)

Saw this on one of Rockford Lhotka's feeds

Title: Re: Gems ...
Post by: kdub_nz on December 02, 2016, 10:32:24 PM
I had reason to visit the web site of Rob Miles ( 'The C# Yellow Book' and 'Begin to Code with C#' ) http://www.robmiles.com/

Noticed his 'Thought for the Dazed'

Quote
I used to be indecisive. But now I'm not so sure...


... an oldie but a goodie ...



The C# Yellow Programming Book (http://www.robmiles.com/c-yellow-book/)
Title: Re: Gems ...
Post by: kdub_nz on December 07, 2016, 10:46:11 PM

To those relying on AutoDesk Cloud Services ...

R.I.P.
Title: Re: Gems ...
Post by: MP on December 07, 2016, 11:12:51 PM
Quote
We are experiencing an outage that is impacting all data access interactions.  These include but not limited to Open, Save, Upload, Export and Viewing. We are working actively to correct the problem and will update this pa6e$#ž!~>?{4=d3823#>%03*=3\>/@3$wharrrgarrble …
Title: Re: Gems ...
Post by: kdub_nz on December 12, 2016, 02:31:24 AM

Quote

A steak pun is a rare medium well done.



a comment from http://mentalfloss.com/article/89760/your-brain-puns

Title: Re: Gems ...
Post by: kdub_nz on January 11, 2017, 11:18:26 PM
Quote
< .. >

... we had a long run of exercises where we were supposed to turn a flowchart in along with our applications. The whole class quickly discovered that we got marks deducted if the final version of our code didn't match our flowchart -- so we got our code working and then we wrote the flowchart to match the code.

< .. >
Since I left school, I've had several code design tools proposed to me, many of them visual in nature (class design tools seem to be especially popular). Of all the tools that I've been introduced to, the one that has made the least sense to me is pseudo-code. In Visual Studio, I have a perfectly wonderful code editor that will work in any language … except, of course, for the language called "pseudo." It's never been clear to me why I would design my programs in some language that wouldn't compile when I can use a language that will compile.

< .. >

https://visualstudiomagazine.com/articles/2016/12/01/coding-without-a-plan.aspx

Title: Re: Gems ...
Post by: kdub_nz on May 11, 2017, 03:00:16 AM
From Jesse Liberty ... on learning a new Language.

(https://i.gyazo.com/4c1c5b9ce5371d5f58201fc25b117842.png)

I don't necessarily agree with the first point, but if you add the words "it seems ", the point is difficult to argue against :)
Title: Re: Gems ...
Post by: kdub_nz on May 27, 2017, 02:52:24 AM

posting here for the lethargy to find somewhere more suitable to unload this ..


I've been working on some annotation and dimensioning stuff for most of the day

have been getting increasingly depressed.

determined why

the repeated usage of 'Dim' has been twisting my head around

Code - C#: [Select]
  1.  
  2.                         db.Dimstyle = dimStyleTable[newdimStyleName];
  3.                         DimStyleTableRecord tempDimSty = (DimStyleTableRecord)trans.GetObject(db.Dimstyle, OpenMode.ForRead);
  4.                         db.SetDimstyleData(tempDimSty);

Title: Re: Gems ...
Post by: It's Alive! on May 27, 2017, 10:48:48 PM
Dim dimRecord As DimStyleTableRecord
Title: Re: Gems ...
Post by: kdub_nz on May 27, 2017, 10:58:38 PM
(http://www.edvardmunch.org/images/paintings/the-scream.jpg)
Title: Power Mode II
Post by: kdub_nz on July 08, 2017, 12:00:25 AM

https://plugins.jetbrains.com/plugin/8251-power-mode-ii

Title: Re: Gems ...
Post by: It's Alive! on July 08, 2017, 04:57:00 AM
^Oh, that is so cool!
Title: Re: Gems ...
Post by: Mark on July 08, 2017, 05:44:12 PM
LOL, now that is some serious editing.
Title: Re: Gems ...
Post by: kdub_nz on July 14, 2017, 08:18:16 PM
There are risks with being sociable and responding to people on public transport.
When he discovered I 'played with computers' he wanted to discuss linear regression ...

too early on Saturday morning ...
Title: Re: Gems ...
Post by: MickD on July 15, 2017, 10:24:31 PM
Not quite .Net but easy to implement :)

Title: Re: Gems ...
Post by: kdub_nz on July 17, 2017, 07:32:30 PM
I can imagine that being taken as a serious option.
:)
Title: Re: Gems ...
Post by: kdub_nz on August 18, 2017, 07:18:30 PM

From my time in another life ,,, but the message still holds valid

(https://imgs.xkcd.com/comics/(.png)

from xkcd
Title: Re: Gems ...
Post by: kdub_nz on August 25, 2017, 06:52:59 PM

Quote from: https://medium.com/@chuck_martin/its-just-software-386a8a167aa2
As a technical writer who has focused as much on the “technical” as on the “writing,” I came up with a phrase that describes my reaction when a programmer tells me something “can’t” be done: “Its just software.”

<..>

“Can’t” is shorthand. What it’s shorthand for depends. It could mean there’s no time to do the work. It could mean there are no resources to do the work. It could mean that the work does not provide enough value. (A reason that’s especially tough to hear when you’re trying to make a product better.) Heck, it could mean that the underlying system was designed so badly that there’s no way anyone wants to touch any of it because one light breath will make it all fall over like a Jenga tower.
What “can’t” almost never means is its literal meaning. A programmer almost always can, so when one says “can’t,” it becomes incumbent on us to translate.
Title: Re: Gems ...
Post by: kdub_nz on August 28, 2017, 11:43:22 PM

Quote
Making a game is more fun than making accounting software.
Title: Re: Gems ...
Post by: kdub_nz on September 22, 2017, 06:19:51 PM
(https://cdn-images-1.medium.com/max/800/1*tGFyroolzUR7E0gBoiY11w.png)
Title: Re: Gems ...
Post by: MickD on September 25, 2017, 05:09:57 PM
Quote
"Give someone a program, you frustrate them for a day;
teach them how to program, you frustrate them for a lifetime." - David Leinweber
Title: Re: Gems ...
Post by: kdub_nz on October 19, 2017, 06:54:44 PM
(https://cdn-images-1.medium.com/max/800/1*sOl7VGQrkjUaEemabkLxww.gif)

from https://medium.com/@karolismasiulis/programming-is-not-about-text-c205ba6aa3ba
Title: Re: Gems ...
Post by: MickD on November 30, 2017, 03:54:25 PM
If money is lost, nothing is lost

If health is lost, something is lost

But if character is lost,
.
.
.
8 bits are lost!
Title: Re: Gems ...
Post by: kdub_nz on January 05, 2018, 01:28:16 AM
Quote

If you’re able to make a bit of software that enables a zombie to wander through a town searching for fresh brains, then you should be able to make a toaster oven do the same and reuse the same code for both.

Title: Re: Gems ...
Post by: MickD on January 09, 2018, 06:17:14 PM
Quote from: https://www.gamasutra.com/blogs/DavidLightbown/20180109/309414/Classic_Tools_Retrospective_Tim_Sweeney_on_the_first_version_of_the_Unreal_Editor.php

I think every company needs to make the decision to either invest significantly more in tools, or just not bother.

That applies to everything. It's not only for the 3d editor used to build your levels, but it's your build system, and it's your programming language, it's your production pipeline, it's the DCC tools you use, all of that.

Tools are supposed to have a multiplying impact on productivity, and when you find that they have a dividing impact on productivity, get the hell out.

- Tim Sweeney, creator of the UnrealEd game engine/editor
Title: Re: Gems ...
Post by: kdub_nz on January 15, 2018, 08:48:20 PM
Quote from: Penny de Byl ; How to Program Voxel Worlds .....

I saw a great quote the other day:

If it doesn't work,
it doesn't matter
how fast it doesn't work


and this is kind of my coding philosophy.


Title: Re: Gems ...
Post by: kdub_nz on September 07, 2023, 05:45:19 PM
This thread popped up in a search result.

I'd forgotten all about some of these "Gems"
Title: Re: Gems ...
Post by: JohnK on September 08, 2023, 02:57:25 PM
I've never seen this thread. ...some of these are really funny.
Title: Re: Gems ...
Post by: kdub_nz on September 18, 2023, 10:34:12 PM
This is one of those descriptions that you just know you'll be disapointed if you click it.

I s'pose I could read it while I wait for the jug to boil for a cup of tea  . . .  what else could I do in 3 minutes ??

 . . . but, exhaustive ? really ?


Title: Re: Gems ...
Post by: It's Alive! on September 19, 2023, 12:22:28 AM
This is one of those descriptions that you just know you'll be disapointed if you click it.

I s'pose I could read it while I wait for the jug to boil for a cup of tea  . . .  what else could I do in 3 minutes ??

 . . . but, exhaustive ? really ?

If you were in the US, with a 110v kettle, you could read it twice
Title: Re: Gems ...
Post by: kdub_nz on October 07, 2023, 07:02:24 PM
Quote from:  Gill Cleeren

using just regular variables won't get us to the moon and back

Title: Re: Gems ...
Post by: kdub_nz on December 12, 2023, 06:08:49 PM

Quote from: me
I really like the idea of sunny day scenarios when designing exception handling.
Title: Re: Gems ...
Post by: kdub_nz on December 15, 2023, 12:06:32 AM
From the docs :

Only the first 2048 characters of Microsoft C++ identifiers are significant.
Names for user-defined types are "decorated" by the compiler to preserve type information.
The resultant name, including the type information, cannot be longer than 2048 characters.

Technically, there isn't one in C# (an identifier length )
- the CLI does not impose any limit, neither does the C# specification.
However, in practice, the C# compiler does impose a limit of 511 characters per name.
If you declare something with 511 characters you are fine, 512 and you will get an "Identifier to long" error.


I really don't know what to make of the distinction . . . but the 2048 number caught my attention while reading some C++ docs.

Both figures are huge, imagine using 6.3  80 character lines to name a C# identifier.

You'd sure need intellisense.

. . . . I have trouble pronouncing and remembering even the simple 12 character names :)

Title: Re: Gems & other stuff ...
Post by: JohnK on December 15, 2023, 12:37:20 PM
That's huge!

Nice error message though; I could see myself in that situation asking why I needed to cast my int identifier to long.

Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 16, 2023, 05:22:42 PM
Quote from:  swiss army proverb
“When the terrain disagrees with
the map, trust the terrain.”

Bjarne, Stroustrup. Programming: Principles and Practice Using C++ (p. 1  of 1274).

Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 16, 2023, 09:40:17 PM
Quote
We try not to exaggerate the importance of a programming technique or a language feature, but please don’t underestimate a simple statement like “This is often useful.” If we quietly emphasize that something is important, we mean that you’ll sooner or later waste days if you don’t master it. Our use of humor is more limited than we would have preferred, but experience shows that people’s ideas of what is funny differ dramatically and that a failed attempt at humor can be confusing.

Bjarne, Stroustrup. Programming: Principles and Practice Using C++ (p. 4).

I've found some humor confounding, especially when run through mrs Google's translator.
Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 19, 2023, 07:40:03 PM
I think this is the cleanest set of definitions I've ever come across :

Quote from: Bjarne

• A type defines a set of possible values and a set of operations (for an object).
• An object is some memory that holds a value of a given type.
• A value is a set of bits in memory interpreted according to a type.
• A variable is a named object.
• A declaration is a statement that gives a name to an object.
• A definition is a declaration that sets aside memory for an object.

Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 28, 2023, 08:16:47 PM
Quote from: Zoran Horvat 'making your c# code more Object-oriented' . attaining Extensibility @ Pluralsight

The only thing left to do to make this piece of code perfect is to entirely delete it.


Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 29, 2023, 10:01:14 PM
I've gotta admire a man who loved words :)

Quote
In the words of Samuel Johnson, author of the English dictionary in 1755, I have committed “a few wild blunders, and risible absurdities, from which no work of such multiplicity is free.”

quote from:
Price, Mark J.. C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8 (p. 3). Packt Publishing. Kindle Edition.



Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 30, 2023, 09:48:35 PM
Quote from: Price, Mark J.
Programming languages have many similarities to human languages, except that in programming languages, you can make up your own words, just like Dr. Seuss!
In a book written by Dr. Seuss in 1950, If I Ran the Zoo, he states this:

Quote from: Dr. Seuss
“And then, just to show them, I’ll sail to Ka-Troo And Bring Back an It-Kutch, a Preep, and a Proo, A Nerkle, a Nerd, and a Seersucker, too!”
Title: Re: Gems & other stuff ...
Post by: MickD on December 31, 2023, 12:20:45 AM
finally!
something to replace foo bar and baz :D
Title: Re: Gems & other stuff ...
Post by: kdub_nz on December 31, 2023, 01:49:08 AM
Yeah   :wink:
Preep, Proo and Nerkle has a ring to it  :-)

. . . a bit of a tongue twister though . . 
Title: Re: Gems & other stuff ...
Post by: kdub_nz on March 05, 2024, 06:32:41 PM
Quote from: — Albert Einstein

The more I learn, the more I realize how much I don’t know. — Albert Einstein

Title: Re: Gems & other stuff ...
Post by: kdub_nz on March 26, 2024, 09:17:12 PM


Quote from: Rob Conery. The Imposter's Handbook Kindle Edition.
If we’re going to get anywhere in our careers, we must seek out challenge and, along with it, failure. Failure is growth, growth is learning.

Embrace it.


Title: Re: Gems & other stuff ...
Post by: MickD on April 11, 2024, 01:30:03 AM
Everyday :)
Title: Re: Gems & other stuff ...
Post by: It's Alive! on April 11, 2024, 02:03:29 AM
 :laugh:
Title: How to remenber anything forever-ish
Post by: kdub_nz on April 12, 2024, 10:39:15 PM
I've often heard ( and said ) that to retain skills and knowledge it's a matter of either " use it, or lose it ".

I know from hard earned experience ( 75 odd years and counting ) that this axiom is true.

Some Stuff I 'knew' 10-20 years ago,  and haven't really re-visited , I now need to re-study to be comfortable with using. It's embarrassing to read something interesting posted somewhere and realise that you wrote it, and don't still have the knowledge fresh in your brain. !!

I came across this site today and thought I'd share it [ before I forget ].

added: some of the images are interactive, don't be afraid to have a play :-)

perhaps it will help.
https://ncase.me/remember/

Regards,
Title: Re: Gems & other stuff ...
Post by: Jeff H on April 12, 2024, 10:49:19 PM
Damn! I hope I remember as well as you do when I am 75.
Title: Re: Gems & other stuff ...
Post by: kdub_nz on April 12, 2024, 11:18:04 PM
Quote

You don't have to use a shoebox for Spaced Repetition, but it's funnier if you do.

:mrgreen: