Click here to Skip to main content
15,887,214 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: Wordle 356 Pin
Sander Rossel9-Jun-22 21:01
professionalSander Rossel9-Jun-22 21:01 
GeneralRe: Wordle 356 Pin
Amol_B9-Jun-22 21:51
professionalAmol_B9-Jun-22 21:51 
GeneralRe: Wordle 356 Pin
dan!sh 9-Jun-22 23:39
professional dan!sh 9-Jun-22 23:39 
GeneralRe: Wordle 356 Pin
Greg Utas10-Jun-22 0:17
professionalGreg Utas10-Jun-22 0:17 
GeneralRe: Wordle 356 Pin
Cp-Coder10-Jun-22 1:29
Cp-Coder10-Jun-22 1:29 
GeneralRe: Wordle 356 Pin
musefan10-Jun-22 1:34
musefan10-Jun-22 1:34 
NewsInteresting MS Video Pin
Super Lloyd9-Jun-22 13:01
Super Lloyd9-Jun-22 13:01 
GeneralI'm feeling "diverse" today Pin
honey the codewitch9-Jun-22 11:29
mvahoney the codewitch9-Jun-22 11:29 
I wanted to load some JSON from a couple of web based APIs to get the local time and weather.

The trouble is I didn't actually want to use JSON, because that's a nasty dependency.

What about regex? There's no regex engine readily available to my IoT widget.

Well, traversing a DFA state table that represents a regular expression in C++ is almost trivial.

Generating that table is not.

But I have a regex engine in C#, and it's capable of generating that table.

So I whip up a little C# program to generate a C++ array representing the "DFA table" for a regular expression - basically the opcodes it needs to match the expression.

And then some C++ code to traverse it.

3 languages
Regex
C++
C#
To "parse" a fourth, a JSON subset

In a really compact way.

And I'm not even doing front-end web development - just a REST/JSON client.
To err is human. Fortune favors the monsters.

GeneralRe: I'm feeling "diverse" today Pin
Sander Rossel9-Jun-22 20:57
professionalSander Rossel9-Jun-22 20:57 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch9-Jun-22 22:03
mvahoney the codewitch9-Jun-22 22:03 
GeneralRe: I'm feeling "diverse" today Pin
Sander Rossel10-Jun-22 1:33
professionalSander Rossel10-Jun-22 1:33 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 2:36
klinkenbecker10-Jun-22 2:36 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 2:38
mvahoney the codewitch10-Jun-22 2:38 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 3:21
klinkenbecker10-Jun-22 3:21 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 3:56
mvahoney the codewitch10-Jun-22 3:56 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 7:27
klinkenbecker10-Jun-22 7:27 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 8:56
mvahoney the codewitch10-Jun-22 8:56 
GeneralRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 12:03
klinkenbecker10-Jun-22 12:03 
QuestionRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 3:48
professionalmegaadam10-Jun-22 3:48 
AnswerRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 3:55
mvahoney the codewitch10-Jun-22 3:55 
GeneralRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 4:15
professionalmegaadam10-Jun-22 4:15 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 6:30
mvahoney the codewitch10-Jun-22 6:30 
GeneralRe: I'm feeling "diverse" today Pin
megaadam10-Jun-22 6:13
professionalmegaadam10-Jun-22 6:13 
GeneralRe: I'm feeling "diverse" today Pin
honey the codewitch10-Jun-22 6:29
mvahoney the codewitch10-Jun-22 6:29 
AnswerRe: I'm feeling "diverse" today Pin
klinkenbecker10-Jun-22 7:40
klinkenbecker10-Jun-22 7:40 

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.