|
If I find myself repeating the same thing over and over it occurs to me that I need to optimize.
Doubly so when working with a computer - after all, the computer is there to do work so I don't have to.
There's something to be said for repetition of course. Practice helps, and there's something to be said about tried and true methods, especially in production code, but again, repetition raises the question of optimization.
This is why design patterns make me low key uncomfortable. I feel like they should be baked into the language, rather than having to repeat the same boilerplate over and over again. With C# they spend all this time adding fluff to the language, when they could be baking in design patterns. Seems a missed opportunity.
I'm a fan of the idea of Domain Specific Languages for this reason, even though I've never used one aside from Synthmaker/Flowstone which I'm not sure counts.
What I'd really like is a language that allows one to augment the grammar, sort of like C# source generator tech except it extends the keywords and syntax of the language and then uses the new grammar to generate code.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Maybe as a hobbyist my opinion does not count for much as I do not live this everyday. But I feel that the language should be as simple and basic as possible. Let libraries and frameworks do the real heavy lifting. I use C++ which has pointers, references, classes, inheritance, polymorphism, and templates built in. Using that people were able to build libraries like the STL and frameworks like MFC and QT among many others.
I feel if all that was built into the C++ language itself then the language becomes too overbearing and too hard to learn.
But then again, maybe I am totally missing your whole point.
Within you lies the power for good - Use it!
|
|
|
|
|
No, you make a good point, and C++ is a great example of what happens when a language tries to solve everything.
It's just that if libraries could fill the gap by themselves, I feel like they would have already?
It seems to me that libraries tend to fulfill one pattern while creating another (the one you have to use to interact with a library) and based on some DSL work by a former Microsoft mucky muck whose name escapes me at the moment but whose work I've looked over in the past, it seems like having language support for some of these patterns is really the way to solve that last mile integration issue.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Quote: It's just that if libraries could fill the gap by themselves, I feel like they would have already?
Stop inventing new problems and processes. Then the current libraries will be enough.
As long as there is a perceived need for something new, someone will write a library to fill that need. Take your pixel library for instance. I am sure there is already libraries out there that would do what yours does, but not the way you want it done. So you wrote another library for it.
Just more people reinventing the same wheel over and over again.
Within you lies the power for good - Use it!
|
|
|
|
|
The product is expensive, but I haven't seen anything to compete with it, and I need the ability to sniff MODBUS commands and responses on a RS-485 bus, interpret them correctly, and save them to a log. This item looks like it will do the job, but it needs to be connected to a PC to perform. I'm thinking I can build or buy a single board computer small enough to be deployed in the field inside a weather-proof box for a week or two to search for missing commands or spurious ones. It would be very helpful to hear from previous users, though, before I embark on this course.
IO Ninja Hardware Manual (NHM)[^]
Will Rogers never met me.
|
|
|
|
|
I haven't, but they do have a forum which might be a good place to duplicate this request?
Home | IO Ninja Forum[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
|
You *could* in theory make one of these. I'm not sure what it costs, but if it's expensive and you're not sure you could produce one yourself with some work.
I made something similar, but it was simply for a basic serial UART, not RS-485.
i2cu Take Two: Serial and I2C Probe in a Handy Package[^]
You could adapt code like that using code like this:
GitHub - zivillian/esp32-modbus-gateway: ESP32 Modbus RTU/TCP Gateway[^]
Just a thought, even though it may not be realistic for you. I'd do it, but then I'm a bit crazy.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Wordle 1,102 4/6
π©β¬π¨β¬β¬
π©π©β¬β¬β¬
π©π©π¨β¬β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 1,102 4/6*
π©β¬π¨β¬β¬
π©β¬π¨β¬β¬
π©π©β¬β¬β¬
π©π©π©π©π©
|
|
|
|
|
β¬π¨π¨β¬β¬
π¨β¬β¬β¬π©
β¬π©π©π©π©
π©π©π©π©π©
American spelling caught me out twice
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
modified 5hrs ago.
|
|
|
|
|
Wordle 1,102 3/6*
π¨π¨π¨π¨β¬
π¨π¨β¬π¨π¨
π©π©π©π©π©
(Americans are allergic to vowels)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was just editing my post to say something similar.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,102 3/6*
β¬β¬β¬π¨β¬
π©β¬π¨π¨β¬
π©π©π©π©π©
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 1,102 5/6
π¨π©β¬β¬β¬
β¬π©π©β¬β¬
β¬π©π©π©β¬
β¬π©π©π©π©
π©π©π©π©π©
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,102 3/6
π¨π©β¬β¬π¨
β¬β¬β¬β¬π¨
π©π©π©π©π©
|
|
|
|
|
I've been getting junk E-mails from @message.fedex.com, which a low-level FedEx rep says is not legit (I'm waiting on someone higher up there to confirm this), and I don't want the legitimate messages from @fedex.com to be blocked if I block the messages from @message.fedex.com.
|
|
|
|
|
If an email falls in the forest when nobody is around, does it really make a sound?
Jeremy Falcon
|
|
|
|
|
It depends on the mail client you're using. In MS Outlook, I can block the sender (which should be host-specific) or the sender's domain (which should block all hosts and users from the same domain). I say "should" because Outlook has always been a bit flaky, and the latest version is not very predictable. I've never used Yahoo Mail, so I can't advise you, but you might try searching for some FAQs on their site.
Will Rogers never met me.
|
|
|
|
|
I don't know about Yahoo Mail, but every other e-mail client that I have used allows one to block both the user (abc@xyz.com) and the domain (@xyz.com). They also require separate rules for subdomains (@xyz.com vs @tuv.xyz.com).
I doubt that blocking @message.fedex.com will block @fedex.com.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
So, I read this article: Easily navigate code delegates while debugging - Visual Studio Blog[^]
and I am so glad, I just don't give a flying f*** anymore. I started doing serious Windows development in 2003. I inherited a project that used ActiveX controls. Just local, no downloads - all embedded system work. I have to plow through the changing terminology of COM, DCOM, COM++, ActiveX, etc. After 3 years, I declared it utter bull****. MS renaming things just to rename things for marketing purposes.
So, I read this devblog article, and though delegates are somewhat different than function pointers, its the same old bs from Microsoft renaming stuff. Worse, I suspect it made it into the C++ standard. I don't know about that, nor do I care.
Starting next week, I'm moving to linux.
Charlie Gilley
βThey who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.β BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: So, I read this devblog article, and though delegates are somewhat different than function pointers, its the same old bs from Microsoft renaming stuff. That's the difference between a senior and a junior dev. Juniors think they discovered fire half the time, but most things are rehash and rebranded with a tiny bit of newness. But, it's really the same ol' thing with a new bell and whistle.
I still use the example of XML and SGML. While XML was more strict with its DTDs, the concept of XML or a DTD was nothing new. About 10+ years ago during the XML craze, you'd hear a lot of peeps swear they discovered fire with it... even though SGML has been around for years prior. Just rehashed stuff with a bit of umph added.
charlieg wrote: Starting next week, I'm moving to linux. You'll love it man. I've only done C and web dev on Linux, but the c lib at least has a surprising amount of functionality to it. A Linux box really does make a great dev box.
Jeremy Falcon
|
|
|
|
|
I think you're not noticing that managed code, to the extent of .NET and maybe Java, (I don't know much about Java except that I hate eclipse,) was revolutionary. It dumbed down programming on a scale even greater than the effect Visual Basic had on Windows application programming.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Not sure how you can draw that conclusion based off an SGML example. While I do concur the "rise" of XML and .NET were around the same time, that example stands independent of .NET, so I'm not sure what I failed to notice given the concept has nothing to do with managed code in and of itself and more to do with junior programmers of any generation knowing little of the past.
Jeremy Falcon
|
|
|
|