Click here to Skip to main content
15,900,461 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.

 
GeneralOi Griff it's time for an Oi Greg Pin
pkfox24-Oct-21 23:26
professionalpkfox24-Oct-21 23:26 
GeneralRe: Oi Griff it's time for an Oi Greg Pin
OriginalGriff24-Oct-21 23:43
mveOriginalGriff24-Oct-21 23:43 
GeneralXNA/MonoGame especially for Croatian programmers and enthusiasters Pin
Member 1493882324-Oct-21 22:47
Member 1493882324-Oct-21 22:47 
GeneralRe: XNA/MonoGame especially for Croatian programmers and enthusiasters Pin
OriginalGriff24-Oct-21 23:15
mveOriginalGriff24-Oct-21 23:15 
GeneralRe: XNA/MonoGame especially for Croatian programmers and enthusiasters Pin
Member 1493882325-Oct-21 3:15
Member 1493882325-Oct-21 3:15 
GeneralRe: XNA/MonoGame especially for Croatian programmers and enthusiasters Pin
CodeWraith25-Oct-21 4:24
CodeWraith25-Oct-21 4:24 
GeneralFree MS Exams - Microsoft Ignite | Cloud Skills Challenge Pin
Jacquers24-Oct-21 19:17
Jacquers24-Oct-21 19:17 
PraiseHoly code batman! This is ... wow. PinPopular
honey the codewitch24-Oct-21 4:41
mvahoney the codewitch24-Oct-21 4:41 
I vaguely remember writing Rolex: Unicode Enabled Lexer Generator in C#[^]

Well, I needed some code from it for Reggie[^] , which is a code generation tool that generates C# code to match strings using a non-backtracking Regex engine so it works over fast forward-only streams of any size (unlike .NETs) and it's faster than .NETs regex so it's really good for scraping data, and also good for validating that passed in strings match the expressions (for doing things like form field validation)

Anyway, I was ripping the code out of Rolex and I'm amazed at how clean it is despite its complexity.

I have this tool called deslang.exe that does most of the heavy lifting so it exports whole code blocks (written in C#, rendered in language independent code (vb/c#/etc) and macroizing them so it's simple to make all the classes, and heckin maintainable despite writing code in various languages. There's only one copy of the code templates to maintain and they are in C#. It all happens as part of the build process. Deslang is just a build tool that makes code macro magic.

I only kind of remember doing this. And yet I understand it after picking it up well after the fact. Win.

Plus the "FastFA" engine I made is just smart. I thought I ran into a bug with it, and I was terrified because it meant Rolex (long since released) was generating bad code, but nope. It was my present self using it wrong (silly mistake on my part, i was calling the wrong function). It's fast, to the point, and can render itself to pretty graphs for debugging purposes, so it was easy to find my mistake, and determine that it didn't come from this engine.

Clean. Clean. Clean. And solid. Very few comments because it doesn't need much.

This doesn't happen to me very often. I love this code.

It's nice to be able to wake up in the morning and dig through an old project and find everything works as expected.

It's not intended as a brag, I'm just.. I'm having a really good day so far. Everything I touch is gold apparently. I should buy a lotto ticket Smile | :)
Real programmers use butterflies


modified 24-Oct-21 15:22pm.

GeneralRe: Holy code batman! This is ... wow. Pin
pkfox24-Oct-21 10:59
professionalpkfox24-Oct-21 10:59 
GeneralRe: Holy code batman! This is ... wow. Pin
Nelek24-Oct-21 13:06
protectorNelek24-Oct-21 13:06 
GeneralRe: Holy code batman! This is ... wow. Pin
Kornfeld Eliyahu Peter24-Oct-21 19:47
professionalKornfeld Eliyahu Peter24-Oct-21 19:47 
GeneralIf you don't like bit twiddling, look away now ... PinPopular
OriginalGriff24-Oct-21 4:29
mveOriginalGriff24-Oct-21 4:29 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
honey the codewitch24-Oct-21 4:31
mvahoney the codewitch24-Oct-21 4:31 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
OriginalGriff24-Oct-21 4:44
mveOriginalGriff24-Oct-21 4:44 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
Jon McKee24-Oct-21 15:32
professionalJon McKee24-Oct-21 15:32 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
den2k8824-Oct-21 21:19
professionalden2k8824-Oct-21 21:19 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
OriginalGriff24-Oct-21 21:30
mveOriginalGriff24-Oct-21 21:30 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
den2k8824-Oct-21 22:01
professionalden2k8824-Oct-21 22:01 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
OriginalGriff24-Oct-21 22:47
mveOriginalGriff24-Oct-21 22:47 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
den2k8824-Oct-21 23:00
professionalden2k8824-Oct-21 23:00 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
OriginalGriff24-Oct-21 23:10
mveOriginalGriff24-Oct-21 23:10 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
den2k8824-Oct-21 23:30
professionalden2k8824-Oct-21 23:30 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
Peter Shaw25-Oct-21 0:51
professionalPeter Shaw25-Oct-21 0:51 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
den2k8825-Oct-21 1:10
professionalden2k8825-Oct-21 1:10 
GeneralRe: If you don't like bit twiddling, look away now ... Pin
MKJCP25-Oct-21 2:21
MKJCP25-Oct-21 2:21 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   488 votes