Notifications
Clear all

MQTT

21 Posts
5 Users
1 Likes
2,449 Views
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@byron

Posted by: @frogandtoad

Yes, I know... that's why I highlighted it

Alluding to MQTT and Last Will etc, yes, I know too, thats why I highlighted it in my post and provided links to docs that show its use.  It is not necessary to use these features at all though in any professional type of program they would be. Whilst it may have been apposite to re-emphasis if you feel I did not highlight their use sufficiently, your additional continual highlighting is more to grandiose I think. 

Posted by: @frogandtoad

Why is it that you're always negative against any suggestions for improvement, without actually having any real facts to back up your opposing views?

It seems you like to create noise, and as we know, this has be pointed out to you by another before.

Try as you might, the one thing we do know, is that you haven't got answers to valid questions when put before you... only childish insults.

Posted by: @frogandtoad

Robo Pi even challenged you on your caution, and then you backed down from what I can see.

Robo wondered why I use the word 'caution' which maybe was a poor choice of words I did admit  I explained further with some other backup docs where I was coming from, and Robo came to the conclusion that there was indeed no need to create classes just for the purpose of splitting up python code.  So you have endeavoured to pick a small snippet out a thread that does not show its essence, and wonder why I find some of your posts negative.  Was it to grandiose?

Um, they were your words, not mine, and I pointed them out to you because you basically said I made it up, and you want to make a point of snippets, now that's very childish of you.  At the end of the day, his response to you was that his use of classes was appropriate.  Even in this post, which was never about using classes, but you obviously felt a burning desire to tell newbies to keep away from using them, indicating that it would obfuscate their code. I think your continual negativity towards using classes, appears to be more about your lack of understanding of them rather than anyone else’s, really!

Posted by: @frogandtoad

What you fail to understand about OOP (and this is not language specific), is that it is perfectly suited for use with MQTT and home automation. 

No, I do not fail to understand that OOP is well suited for the use of MQTT and home automation.  I do much of this programming in Python. Do you not understand that using python one is mostly using OOP as all the python libraries are classes, largely written in C and C++, including the MQTT library.   The only thing not relevant to classes and OOP programming are small user constructed programs in the Arduino environment.  The  Arduino libraries are often C++ classes anyway and user created classes, for the purposes of smallish programs like those to read sensors will, in my opinion, obfuscate the code making it harder to understand.  Period.  You continually fantasise by extrapolating about this beyond what I actually write.  So read the words above, and that which I previously stated in this thread about the use of classes in python and my position on all of this should be perfectly clear.  Well it is to me anyway. 🙂  I've no wish to change you mind in anyway and I don't really see why you continually try change mine by alluding to some fantasy about what you think I understand.

No, clearly you do not, everything you just stated confirms it.

In no way am trying to change your mind! your mind is stuck. I simply advocate learning of new data structures and constructs in all languages, and oppose you continual negativity and spruiking to programmers (especially newbies), to stay away from such important data structures and language features.

Lets put this discussion into context:

  • I provide some constructive criticism, pointing out errors and bad programming constructs in your code → met with opposition.
  • I refactor parts of your code and provide you with new code as examples to use → met with opposition and told I should write whole code.
  • I provide reasons for my position based on technical articles and tutorials, and based on the concerns of the requester → met with opposition.
  • Out of the blue, you make an uneducated statement for newbies to stay away from using C++ classes, and imply they obfuscate the code → I oppose your view and provide a small example to prove their effectiveness.
  • You ignore the evidence presented before you.
  • Rather than provide some real debatable evidence to support your position, you begin to make personal snide remarks → A common trait when losing a debate.

This is typical a typical outcome of all of our discussions 😉

 


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 
Posted by: @wolfgangw

Hey guys,

I have no idea, what is this debate for. I was asking Byron, whether he want to give me some code example, which allow me to get into the basics of the MQTT. He did and I am happy. 
If this is helpful or not, I can not judge yet, because I haven't had time to watch and try much.
Later, when I do, I will do it in my way after study the content and I will use it in a way which is matching to my needs, I think most people would do it in such way.
I asked for help, and I got help. This - in my understanding - is what a forum is standing for.

Wolfgang

Not to worry... @byron's a little upset because I pointed out some flaws with his code, and because I always push back on his programming advice for newbies.

I'll let him have the last say, because he get's really upset otherwise 😉

Cheers!


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1121
Topic starter  
Posted by: @wolfgangw

I have no idea, what is this debate for

Hi wolfgang, its not really at the level of a debate, though kind of you to call is thus. I think you and all should just ignore any of frogy's posts address to me or mine to him for that matter. I hope your forays into MQTT prove productive for you. 😀 


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1121
Topic starter  
Posted by: @frogandtoad

Lets put this discussion into context

 😀 - well that was a big post with some self pity, incorrect and partial regurgitation , grandiose conclusions to preserve your self-esteem, but it all boils down to more noise, just noise.

And this post too is just more noise, but I make the following suggestion to you.  

You may have noticed that I only respond to your posts when you directly address me.   There was one exception, but a long time back, when you were spouting on about creating the DB1 code with classes and I responded that I thought this  would be a good thing for you to do.  (though, as you explained, you flunked this).

So why don't you do the same to my posts.  I don't mind you responding to whatever post, even mine,  but don't address it to me, then you wont get a reply.   It may save you, and me, a lot of huffing and puffing.

Posted by: @frogandtoad

I'll let him have the last say, because he get's really upset otherwise 😉

Which all goes to show you have a magnanimous personality.  Thank you Froggy. 😍 


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@byron and @frogandtoad

Enough is enough!  If you guys want to persist on this back and forth argument about your programming philosophies how about doing it in a PM thread between the two of you.  I for one find it anything but helpful.  In fact, I find it quite distasteful and not at all what this forum is about.

SteveG


   
Duce robot reacted
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 674
 

@codecage looks like it got a little spicy since I've been gone lol 😁👍


   
ReplyQuote
Page 2 / 2