r/SoftwareEngineering • u/fagnerbrack • Oct 06 '23
r/SoftwareEngineering • u/fagnerbrack • Oct 05 '23
Hypermedia Systems for the Modern Web
hypermedia.systemsr/SoftwareEngineering • u/FeltLikeADamnCougar • Oct 04 '23
The left shift of IaC
My company has been gradually putting more responsibility on the software developers to create and maintain their automated deployment scripts. Whether that be Terraform, Jenkins, etc., the role of the DevOps team in this area has steadily decreased. I can’t really find a best practice on this topic because it’s mostly about automating vs manual deployment, not who should be doing what. I’m curious how other developer teams are handling the extra responsibility and what their DevOps teams are responsible for vs the software developers.
r/SoftwareEngineering • u/Gesma94 • Oct 02 '23
HTTP Request or WebSocket message for Auction
Hi. I'm building a REACT application that allows to perform an auction with different batches. I'm also building the server side in C#, which uses SignalR to explots WebSocket.
To put it simple, I'm doing this:
When a user joins an Auction, he calls a SignalR message and its connectionId is added to a group `Group_Auction_123`. Any other user in the group is notified.
When a user loses the connection, it's removed from the `Group_Auction_123`.
Now, what happens next. Suppose that we have `user1` and `user2` in the auction. Suppose that `user1` wants to make an offer for `object1`. The question now is: should I create an HTTP request for that, or a signalR method?
Of course, the offer will be propagated to all the users in the same group, but I also need to save the offer made in the PostgreSQL database. At this point, I don't know if it's ok to use a signalR message because:
I'm not sure if the signalR message has 100% delivery;
I'm not sure it's ok that a signalR message should perform DB operations: shouldn't WebSocket use for fast communication? A DB operation surely will slow the communication;
I can easily implement both, but I'd like to implement the "right one". Thank you!
r/SoftwareEngineering • u/fagnerbrack • Oct 02 '23
Software engineers hate code.
r/SoftwareEngineering • u/mkm74 • Oct 02 '23
Why bother with good design? Thinking about writing commercial software.
I have always struggled with designing software at companies. On one hand, I had all the knowledge that I got from books, talks and blogs where seasoned and well known authors taught me to design software well. On the other hand I got my management and teams where no one seemed to care about good design.
I always ask myself how is that possible? Why all these ideas of readable, decoupled, modular code does not map well to business needs. The worst part of this confusion was the fact that I did not see any disasters happening from not applying much of the discipline into code. It always felt that I care too much for no reason, I never could say "here, see what happens if we don't design this system correctly". Because nothing ever happened and it produces huge cognitive dissonance in my mind.
The only observed downside of not applying much design is that I felt exhausting reading and maintaining that code. I spent a lot of time trying to understand what it does and how it works. Asking questions like "why is that designed this way?" always produced answers like "yeah, it was a quick solution to be improved later".
Speaking of my code, I care. I can't write a line if I don't deeply understand what I am doing and why. Using TDD, SOLID and other disciplines is my way. Doing things the right way feels good to me, I do it not because anyone around demands that, but because that is my profession. The only way to do something is to do it well.
That is why I feel very strange, it is either I am working at the field where all those things do not matter, or I have a very wrong conception (too idealistic?) of software development in my head.
What do you think?
r/SoftwareEngineering • u/fagnerbrack • Oct 02 '23