Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch15-May-19 8:05
mvahoney the codewitch15-May-19 8:05 
Generalstuck with .NET Core Pin
honey the codewitch14-May-19 2:22
mvahoney the codewitch14-May-19 2:22 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 2:34
mveOriginalGriff14-May-19 2:34 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 2:38
mvahoney the codewitch14-May-19 2:38 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 2:53
mveOriginalGriff14-May-19 2:53 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 3:00
mvahoney the codewitch14-May-19 3:00 
GeneralRe: stuck with .NET Core Pin
Eddy Vluggen14-May-19 4:17
professionalEddy Vluggen14-May-19 4:17 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 4:22
mvahoney the codewitch14-May-19 4:22 
There's lots of nested data. like this

C#
(int Accept, ((char First, char Last)[] Ranges, int Destination)[] Transitions, int[] PossibleAccepts)[]

I'm avoiding polluting the namespace with types the end user-dev will never touch.

Most of these are strictly for parse tables - machine generated data that will never be touched by human hands, or perused by human eyes.

If I start polluting the namespace with types, I've in a way, broken encapsulation. Now, i can make these types private, but then if you ever WANT to see or debug or peruse these tables, you basically can't.

Tuples give me a really nice compromise. They avoid polluting the namespace, and are still exposed enough that someone can use them and alter them if they really want to.

Keep in mind, this is not a general guideline for writing code - this is a very special case.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 14-May-19 10:28am.

GeneralRe: stuck with .NET Core Pin
Sander Rossel14-May-19 9:10
professionalSander Rossel14-May-19 9:10 
GeneralRe: stuck with .NET Core Pin
RickZeeland14-May-19 2:34
mveRickZeeland14-May-19 2:34 
GeneralRe: stuck with .NET Core Pin
Kornfeld Eliyahu Peter14-May-19 2:40
professionalKornfeld Eliyahu Peter14-May-19 2:40 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 2:43
mvahoney the codewitch14-May-19 2:43 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 2:55
mveOriginalGriff14-May-19 2:55 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 2:58
mvahoney the codewitch14-May-19 2:58 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 3:28
mveOriginalGriff14-May-19 3:28 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 3:32
mvahoney the codewitch14-May-19 3:32 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 4:05
mveOriginalGriff14-May-19 4:05 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 4:07
mvahoney the codewitch14-May-19 4:07 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 4:16
mveOriginalGriff14-May-19 4:16 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 4:33
mvahoney the codewitch14-May-19 4:33 
GeneralRe: stuck with .NET Core Pin
OriginalGriff14-May-19 4:42
mveOriginalGriff14-May-19 4:42 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 4:52
mvahoney the codewitch14-May-19 4:52 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 3:43
mvahoney the codewitch14-May-19 3:43 
GeneralRe: stuck with .NET Core Pin
Richard Deeming14-May-19 2:43
mveRichard Deeming14-May-19 2:43 
GeneralRe: stuck with .NET Core Pin
honey the codewitch14-May-19 2:45
mvahoney the codewitch14-May-19 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.