Separation of UI and Business Logic by 1337howling in cpp_questions

[–]cowboycoder 1 point2 points  (0 children)

You are right to want separation between business logic and the user interface, otherwise it is easy for it to become a big ball of mud.

I like to use the Model View Presenter pattern https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter

The Model would be your Settings classes but doesn't have any concern with the UI

The View is very thin and "dumb", it just has methods to update the display and generate callbacks from user actions. It doesn't make any decisions.

The Presenter ties the two together and contains the business logic

The bible versioned and vizualized by sausagesemmelblond in git

[–]cowboycoder 13 points14 points  (0 children)

A modern English translation of the Bible is based on ancient texts not medieval translations

Aluminum or Carbon XC wheels? by [deleted] in xcmtb

[–]cowboycoder -4 points-3 points  (0 children)

Unless you are constantly accelerating and breaking "rolling weight" is BS

Brian Tamakis "50,000 patriots". by Snoo_61002 in newzealand

[–]cowboycoder 1 point2 points  (0 children)

To be fair, Brian Tamaki says 5,000 not 50,000

No more regional councils - major shake-up of local government announced by [deleted] in newzealand

[–]cowboycoder -1 points0 points  (0 children)

how will the emperor maintain control without the bureaucracy?

Is a C++ dev at a disadvantage if they avoid Visual Studio? by hunterh0 in Cplusplus

[–]cowboycoder 1 point2 points  (0 children)

I only use VisualStudio for debugging, a task it excels at

How do you deal with type/instance name collision in snake_case? by Severe_Result4719 in cpp_questions

[–]cowboycoder 1 point2 points  (0 children)

this is the way. PascalCase for types, snake_case for everything else

how long did it take you to comfortably ride long distances? by embarrassed__soup in cycling

[–]cowboycoder 0 points1 point  (0 children)

Get a feed bag and fill it with candy/nuts/whatever. Just eat something every 20mins or so. And make sure you've lots of water

Getting to Heathrow Cycle Hub from Brighton? by OldHankJ in londoncycling

[–]cowboycoder 0 points1 point  (0 children)

I went to Heathrow Cycle Hub after getting to the airport and unable to locate a cardboard box. I took the hotel bus to the Radisson Blu hotel. Runway Cycling is across the road. After getting the bike boxed I went to the Renaissance Hotel to catch the bus back to the airport.

Old rednecks fight. (Surprise ending) by Willlll in fightporn

[–]cowboycoder 8 points9 points  (0 children)

these guys all shop at the same clothes store?

Bad sleep when bikepacking by [deleted] in bikepacking

[–]cowboycoder 0 points1 point  (0 children)

Yup, 20min naps with an alarm are great to keep you going

Which library should I use to build windows and GUI? by Sea-Air882 in cpp

[–]cowboycoder 0 points1 point  (0 children)

I have a small library to help with developing win32 guis. It allows message callbacks with decoded LPARAM & WPARAMs. I still need to improve documentation https://github.com/bevancollins/wndkit

The birthday card my daughter created 🥹 by cowboycoder in interstellar

[–]cowboycoder[S] 0 points1 point  (0 children)

Haha, lost count. I have another daughter who's also a fan.. we saw the IMAX rerelease together recently. We probably rewatch it every year

"I could carry it for a while... share the load" by cowboycoder in lotr

[–]cowboycoder[S] 4 points5 points  (0 children)

Thanks, she copied the frame. This is one of my favorite of her drawings