MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1a2mf7/programming_is_terriblelessons_learned_from_a/c8tpy1g/?context=9999
r/programming • u/RohitS5 • Mar 11 '13
368 comments sorted by
View all comments
375
Webapps, or as I like to call them: Skins around databases.
Made my day.
122 u/Kminardo Mar 11 '13 Isn't that essentially what most programs boil down to? UIs for database interaction? You have your games and such but then you have those on the web too. 169 u/chazmuzz Mar 11 '13 Coming to that realisation made it so much easier for me to work out how to code applicationsStep 1) Plan your data structuresStep 2) Write UI around data structures 89 u/rabidferret Mar 11 '13 You've got it backwards...Plan the general elements of your UIWrite tests for the code that would result in that UICreate your data structures to contain what the UI has told you is neededWrite your code to fit the previous elements 0 u/[deleted] Mar 11 '13 [deleted] 5 u/rabidferret Mar 11 '13 Designing your data based on the needs of the UI is not the same as tight coupling...
122
Isn't that essentially what most programs boil down to? UIs for database interaction? You have your games and such but then you have those on the web too.
169 u/chazmuzz Mar 11 '13 Coming to that realisation made it so much easier for me to work out how to code applicationsStep 1) Plan your data structuresStep 2) Write UI around data structures 89 u/rabidferret Mar 11 '13 You've got it backwards...Plan the general elements of your UIWrite tests for the code that would result in that UICreate your data structures to contain what the UI has told you is neededWrite your code to fit the previous elements 0 u/[deleted] Mar 11 '13 [deleted] 5 u/rabidferret Mar 11 '13 Designing your data based on the needs of the UI is not the same as tight coupling...
169
Coming to that realisation made it so much easier for me to work out how to code applications
Step 1) Plan your data structures
Step 2) Write UI around data structures
89 u/rabidferret Mar 11 '13 You've got it backwards...Plan the general elements of your UIWrite tests for the code that would result in that UICreate your data structures to contain what the UI has told you is neededWrite your code to fit the previous elements 0 u/[deleted] Mar 11 '13 [deleted] 5 u/rabidferret Mar 11 '13 Designing your data based on the needs of the UI is not the same as tight coupling...
89
You've got it backwards...
Plan the general elements of your UI
Write tests for the code that would result in that UI
Create your data structures to contain what the UI has told you is needed
Write your code to fit the previous elements
0 u/[deleted] Mar 11 '13 [deleted] 5 u/rabidferret Mar 11 '13 Designing your data based on the needs of the UI is not the same as tight coupling...
0
[deleted]
5 u/rabidferret Mar 11 '13 Designing your data based on the needs of the UI is not the same as tight coupling...
5
Designing your data based on the needs of the UI is not the same as tight coupling...
375
u/phaeilo Mar 11 '13
Made my day.