Click here to Skip to main content
15,888,337 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: Really? Pin
Asday4-Nov-22 15:56
Asday4-Nov-22 15:56 
GeneralRe: Really? Pin
jochance3-Nov-22 6:33
jochance3-Nov-22 6:33 
GeneralRe: Really? Pin
Asday3-Nov-22 11:16
Asday3-Nov-22 11:16 
GeneralRe: Really? Pin
jochance4-Nov-22 4:05
jochance4-Nov-22 4:05 
GeneralRe: Really? Pin
RickZeeland1-Nov-22 4:46
mveRickZeeland1-Nov-22 4:46 
GeneralRe: Really? Pin
Maximilien1-Nov-22 4:57
Maximilien1-Nov-22 4:57 
GeneralRe: Really? Pin
BernardIE53171-Nov-22 5:22
BernardIE53171-Nov-22 5:22 
GeneralRe: Really? Pin
Asday2-Nov-22 2:22
Asday2-Nov-22 2:22 
A framework is a library that calls your code. You have to structure your code in specific ways so the framework knows how to call it. Generally they take a huge amount of work off your hands in return for being reasonably inflexible.

An example of a framework would be the Django web framework. The ./manage.py script you use to start the web server calls into Django to handle the command line input, and that's the only command in the management script, control never returns to your entrypoint. Instead, the framework does frameworkey stuff to look at the rest of your code, and calls the bits of it that it recognises in specific scenarios, such as calling a view function when the matching URL conf is matched against a request against the webserver.

Compare and contrast to Dear ImGui, which never takes control. You set up the environment, then you call into the library, it does what it needs to, and returns. Control remains with you, Dear ImGui never has need to call back into your code unless you give it a specific callback, in which case it only calls that.
GeneralRe: Really? Pin
BillWoodruff1-Nov-22 20:12
professionalBillWoodruff1-Nov-22 20:12 
GeneralRe: Really? Pin
den2k881-Nov-22 21:40
professionalden2k881-Nov-22 21:40 
GeneralRe: Really? Pin
Edward Aymami2-Nov-22 2:19
Edward Aymami2-Nov-22 2:19 
GeneralRe: Really? Pin
Member 91670571-Nov-22 23:27
Member 91670571-Nov-22 23:27 
GeneralRe: Really? Pin
Paul Sanders (the other one)1-Nov-22 23:41
Paul Sanders (the other one)1-Nov-22 23:41 
GeneralRe: Really? Pin
Cpichols2-Nov-22 1:51
Cpichols2-Nov-22 1:51 
GeneralRe: Really? Pin
Fueled By Decaff2-Nov-22 1:52
Fueled By Decaff2-Nov-22 1:52 
GeneralRe: Really? Pin
Member 112371372-Nov-22 2:03
Member 112371372-Nov-22 2:03 
GeneralRe: Really? Pin
Asday2-Nov-22 2:34
Asday2-Nov-22 2:34 
GeneralRe: Really? Pin
Derek Hunter3-Nov-22 2:47
Derek Hunter3-Nov-22 2:47 
GeneralRe: Really? Pin
MikeCO102-Nov-22 2:41
MikeCO102-Nov-22 2:41 
GeneralRe: Really? Pin
Dan Neely2-Nov-22 4:15
Dan Neely2-Nov-22 4:15 
GeneralRe: Really? Pin
WildlingCoder2-Nov-22 7:27
professionalWildlingCoder2-Nov-22 7:27 
GeneralRe: Really? Pin
Derek Hunter3-Nov-22 2:43
Derek Hunter3-Nov-22 2:43 
GeneralRe: Really? Pin
snorkie3-Nov-22 3:23
professionalsnorkie3-Nov-22 3:23 
GeneralWSO CCC OTD 2022-11-01 Pin
OriginalGriff31-Oct-22 22:52
mveOriginalGriff31-Oct-22 22:52 
GeneralRe: WSO CCC OTD 2022-11-01 Pin
Peter_in_278031-Oct-22 23:07
professionalPeter_in_278031-Oct-22 23:07 

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.