{"id":20464,"date":"2019-04-18T14:18:23","date_gmt":"2019-04-18T13:18:23","guid":{"rendered":"http:\/\/codecool.com\/?p=20464"},"modified":"2022-03-01T13:43:59","modified_gmt":"2022-03-01T12:43:59","slug":"programowanie-obiektowe-a-strukturalne","status":"publish","type":"post","link":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/","title":{"rendered":"Programowanie obiektowe a strukturalne"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"20464\" class=\"elementor elementor-20464\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1fa96c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1fa96c9\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-268cd99\" data-id=\"268cd99\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2674e59 elementor-widget elementor-widget-text-editor\" data-id=\"2674e59\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><b>Cho\u0107 programowanie obiektowe to nowsza koncepcja od programowania strukturalnego, tego drugiego nie da si\u0119 ca\u0142kiem odrzuci\u0107. Zar\u00f3wno programowanie strukturalne, jak i obiektowe, wykorzystywane s\u0105 obecnie przez programist\u00f3w i wsp\u00f3\u0142istniej\u0105 we wszystkich j\u0119zykach programowania takich jak Java czy C#. Dzi\u015b opowiemy Wam o zastosowaniu tych dw\u00f3ch metod programowania oraz o r\u00f3\u017cnicach pomi\u0119dzy nimi.<\/b><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-37bd0af elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"37bd0af\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10be87f\" data-id=\"10be87f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1ae4d1b elementor-widget elementor-widget-image\" data-id=\"1ae4d1b\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"540\" height=\"540\" src=\"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg\" class=\"attachment-large size-large wp-image-20465\" alt=\"\" srcset=\"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg 540w, https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1-300x300.jpg 300w, https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1-150x150.jpg 150w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b304f4a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b304f4a\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-df726d0\" data-id=\"df726d0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e9ee491 elementor-widget elementor-widget-heading\" data-id=\"e9ee491\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Definicja programowania strukturalnego<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fbd62b5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fbd62b5\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c242964\" data-id=\"c242964\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fcaf38d elementor-widget elementor-widget-text-editor\" data-id=\"fcaf38d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Gdy pojawi\u0142o si\u0119 programowanie, nie zwraca\u0142o si\u0119 szczeg\u00f3lnej uwagi na wygl\u0105d kodu, poniewa\u017c programy by\u0142y kr\u00f3tkie, a ich kod cz\u0119sto by\u0142 w stanie zmie\u015bci\u0107 si\u0119 na jednej kartce. Wraz z rozwojem programowania (m\u00f3wimy o sytuacji z lat 50. XX wieku), kod stawa\u0142 si\u0119 coraz bardziej zagmatwany, a programy d\u0142u\u017csze. Ko\u0144czy\u0142o si\u0119 na tym, \u017ce tworzono tzw. spaghetti code, czyli zaba\u0142aganiony, popl\u0105tany kod, w kt\u00f3rym ci\u0119\u017cko wskaza\u0107 pocz\u0105tek i koniec. Programowanie strukturalne by\u0142o pierwsz\u0105 pr\u00f3b\u0105 nadania struktury programom, kt\u00f3re rozwija\u0142y si\u0119 i stawa\u0142y si\u0119 coraz wi\u0119ksze &#8211; na przyk\u0142ad poprzez dzielenie ich na funkcje, bloki i podprogramy. Za\u0142o\u017ceniem programowania strukturalnego by\u0142o dzielenie kodu programu za pomoc\u0105 struktur kontrolnych na procedury i bloki.<\/p><p><strong>Sprawd\u017a r\u00f3wnie\u017a:<\/strong><a href=\"https:\/\/codecool.com\/pl\/wiedza\/programowanie-co-to-jest-i-jak-zaczac\/\">Czym jest programowanie?<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-273e758 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"273e758\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a678bea\" data-id=\"a678bea\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-71536c5 elementor-widget elementor-widget-heading\" data-id=\"71536c5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programowanie obiektowe w pigu\u0142ce<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0940ef8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0940ef8\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c0985d\" data-id=\"5c0985d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d302aae elementor-widget elementor-widget-text-editor\" data-id=\"d302aae\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><a href=\"https:\/\/codecool.com\/pl\/wiedza\/czym-jest-programowanie-obiektowe-codecool-pl\/\" target=\"_blank\" rel=\"noopener noreferrer\">Programowanie obiektowe<\/a> jest typem programowania strukturalnego. Obiektowo\u015b\u0107 to kolejny krok w d\u0105\u017ceniu do uporz\u0105dkowania, ogarni\u0119cia kodu, \u017ceby nada\u0107 mu jak\u0105\u015b struktur\u0119. \u00a0Programowanie obiektowe s\u0142u\u017cy do tego, \u017ceby\u015bmy mogli modularyzowa\u0107 sw\u00f3j kod. Modularyzowanie najpro\u015bciej wyt\u0142umaczy\u0107 jako dzielenie kodu na ma\u0142e \u201cklocki\u201d \u2013 o uniwersalnym kszta\u0142cie, kt\u00f3re mo\u017cna u\u017cy\u0107 w r\u00f3\u017cnych miejscach &#8211; r\u00f3wnie\u017c w innych programach. Gdy jeden nam si\u0119 nie sprawdzi, mo\u017cemy wymieni\u0107 go na inny.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f0a769b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f0a769b\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b9fd7cf\" data-id=\"b9fd7cf\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6c0db3b elementor-widget elementor-widget-heading\" data-id=\"6c0db3b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">R\u00f3\u017cnice mi\u0119dzy programowaniem obiektowym a strukturalnym<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-be0cd71 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"be0cd71\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2de0bfa\" data-id=\"2de0bfa\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-11e5b7f elementor-widget elementor-widget-text-editor\" data-id=\"11e5b7f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Programowanie strukturalne dzieli program na struktury danych i podprogramy.<\/p><p>Programowanie strukturalne skupia si\u0119 na procesach i logicznej strukturze. Jak wygl\u0105da proces projektowania program\u00f3w i inne r\u00f3\u017cnice mi\u0119dzy programowaniem strukturalnym a obiektowym?<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e5708c3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e5708c3\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a68043f\" data-id=\"a68043f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-34c77af elementor-widget elementor-widget-heading\" data-id=\"34c77af\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Proces projektowania<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-49966ec elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"49966ec\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0e78e6f\" data-id=\"0e78e6f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-933f7ef elementor-widget elementor-widget-text-editor\" data-id=\"933f7ef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W programowaniu strukturalnym bazuje si\u0119 na podej\u015bciu top down (z g\u00f3ry na d\u00f3\u0142). Skupiamy si\u0119 na pisaniu funkcji. Programowanie obiektowe skupia si\u0119 stricte na danych. Programuj\u0105c obiektowo, programy budujemy od do\u0142u, zaczynaj\u0105c od ma\u0142ych element\u00f3w, kt\u00f3re sk\u0142adamy w ca\u0142o\u015b\u0107. Skupiamy si\u0119 na pisaniu klas i obiekt\u00f3w. Programowanie obiektowe jest naturalnym rozszerzeniem programowania strukturalnego &#8211; jest bardziej elastyczne i w nowy spos\u00f3b podchodzi do porz\u0105dkowania kodu. Upraszcza tworzenie struktury program\u00f3w, kt\u00f3re buduje si\u0119 z element\u00f3w.<\/p><p><strong>Zainteresuje Ci\u0119:<\/strong><a href=\"https:\/\/codecool.com\/pl\/wiedza\/od-czego-zaczac-nauke-programowania-codecool-pl\/\"> Od czego zacz\u0105\u0107 nauk\u0119 programowania?<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-474bc40 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"474bc40\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a0d59c\" data-id=\"4a0d59c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1b1c677 elementor-widget elementor-widget-heading\" data-id=\"1b1c677\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Wygl\u0105d a dzia\u0142anie kodu<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0830fa5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0830fa5\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0b3229f\" data-id=\"0b3229f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f19f73c elementor-widget elementor-widget-text-editor\" data-id=\"f19f73c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W uj\u0119ciu proceduralnym przyjmuje si\u0119, \u017ce ka\u017cdy program jest jak\u0105\u015b procedur\u0105, zawiera zadania, kt\u00f3re maj\u0105 si\u0119 po kolei wykona\u0107. W programowaniu strukturalnym skupiamy si\u0119 na wygl\u0105dzie kodu. Warto zaznaczy\u0107, \u017ce jakiego sposobu programowania by\u015bmy nie wybrali do napisania programu, b\u0119dzie on dzia\u0142a\u0142 w ten sam spos\u00f3b. R\u00f3\u017cnica jest widoczna dopiero po stronie programisty, bo zale\u017cne od wybranej metody, inaczej b\u0119dzie si\u0119 czyta\u0107 kod i rozwija\u0107 program.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-da8881e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"da8881e\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-175a254\" data-id=\"175a254\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cad1601 elementor-widget elementor-widget-heading\" data-id=\"cad1601\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Testowanie kodu<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7e5df89 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7e5df89\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a3467a\" data-id=\"3a3467a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a7f2565 elementor-widget elementor-widget-text-editor\" data-id=\"a7f2565\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Upro\u015bci\u0142o si\u0119 tak\u017ce samo testowanie kodu, poniewa\u017c mo\u017cemy wzi\u0105\u0107 pojedyncze obiekty i przetestowa\u0107 ich dzia\u0142anie. W przypadku programowania proceduralnego nie by\u0142o to \u0142atwe, kod by\u0142 jedn\u0105 ca\u0142o\u015bci\u0105 i ci\u0119\u017cko by\u0142o testowa\u0107 pojedyncze fragmenty.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bec459e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bec459e\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ffcaeab\" data-id=\"ffcaeab\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9e2222c elementor-widget elementor-widget-heading\" data-id=\"9e2222c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programowanie strukturalne czy obiektowe - kt\u00f3re lepsze?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c490360 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c490360\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-af63424\" data-id=\"af63424\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ec0e0cb elementor-widget elementor-widget-text-editor\" data-id=\"ec0e0cb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>W trakcie <a href=\"https:\/\/codecool.com\/pl\/okursach\/\" target=\"_blank\" rel=\"noopener noreferrer\">kursu programowania w Codecool<\/a> rozpoczynamy nauk\u0119 od programowania proceduralnego. Dla pocz\u0105tkuj\u0105cych programist\u00f3w jest ono naj\u0142atwiejsze do zrozumienia, poniewa\u017c przypomina pisanie przepisu kulinarnego. Docelowo jednak, dla bardziej zaawansowanych programist\u00f3w, to programowanie obiektowe jest \u0142atwiejsze i wygodniejsze w zastosowaniu w pracy. Nie da si\u0119 jednak ca\u0142kiem odrzuci\u0107 programowania proceduralnego, poniewa\u017c w ka\u017cdym programie pojawi si\u0119 jaka\u015b procedura opisuj\u0105ca kroki, kt\u00f3re nale\u017cy wykona\u0107. Programi\u015bci staraj\u0105 si\u0119 jednak, by procedury by\u0142y jak najkr\u00f3tsze i jak najbardziej czytelne.<\/p><p><strong>Zainteresuje Ci\u0119 r\u00f3wnie\u017c: <\/strong><a href=\"https:\/\/codecool.com\/pl\/course\/full-stack-developer\/\">Kurs full-stack developera w Codecool<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-97fb2cc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"97fb2cc\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7520fbf\" data-id=\"7520fbf\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-81a9689 elementor-widget elementor-widget-heading\" data-id=\"81a9689\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Podsumowanie<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-420d378 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"420d378\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-89099c0\" data-id=\"89099c0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a2bc64b elementor-widget elementor-widget-text-editor\" data-id=\"a2bc64b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Pojawienie si\u0119 programowania obiektowego przyspieszy\u0142o rozw\u00f3j oprogramowania, przede wszystkim dzi\u0119ki temu, \u017ce sta\u0142o si\u0119 mo\u017cliwe korzystanie z wypracowanych, dzia\u0142aj\u0105cych kawa\u0142k\u00f3w kodu w kolejnych projektach. Sam kod zaprogramowany obiektowo jest te\u017c \u0142atwiejszy do przeczytania i zrozumienia. Nie da si\u0119 jednak zupe\u0142nie zaniecha\u0107 korzystania z \u00a0programowania strukturalnego, bowiem i ono jest przydatne w niekt\u00f3rych programistycznych zadaniach.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Cho\u0107 programowanie obiektowe to nowsza koncepcja od programowania strukturalnego, tego drugiego nie da si\u0119 ca\u0142kiem odrzuci\u0107. Zar\u00f3wno programowanie strukturalne, jak i obiektowe, wykorzystywane s\u0105 obecnie przez programist\u00f3w i wsp\u00f3\u0142istniej\u0105 we wszystkich j\u0119zykach programowania takich jak Java czy C#. Dzi\u015b opowiemy Wam o zastosowaniu tych dw\u00f3ch metod programowania oraz o r\u00f3\u017cnicach pomi\u0119dzy nimi. Definicja programowania strukturalnego [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":20465,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[],"class_list":["post-20464","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wiedza"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.4 (Yoast SEO v24.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Programowanie obiektowe a strukturalne - Codecool<\/title>\n<meta name=\"description\" content=\"Podczas kursu poznasz szczeg\u00f3\u0142owo programowanie strukturalne oraz obiektowe. Przeczytaj artyku\u0142 i sprawd\u017a, co Ci\u0119 czeka!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Programowanie obiektowe a strukturalne\" \/>\n<meta property=\"og:description\" content=\"Podczas kursu poznasz szczeg\u00f3\u0142owo programowanie strukturalne oraz obiektowe. Przeczytaj artyku\u0142 i sprawd\u017a, co Ci\u0119 czeka!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/\" \/>\n<meta property=\"og:site_name\" content=\"Codecool\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CodecoolOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-18T13:18:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-01T12:43:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dora Hoffman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Codecool_global\" \/>\n<meta name=\"twitter:site\" content=\"@Codecool_global\" \/>\n<meta name=\"twitter:label1\" content=\"Napisane przez\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dora Hoffman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minuty\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Programowanie obiektowe a strukturalne - Codecool","description":"Podczas kursu poznasz szczeg\u00f3\u0142owo programowanie strukturalne oraz obiektowe. Przeczytaj artyku\u0142 i sprawd\u017a, co Ci\u0119 czeka!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/","og_locale":"pl_PL","og_type":"article","og_title":"Programowanie obiektowe a strukturalne","og_description":"Podczas kursu poznasz szczeg\u00f3\u0142owo programowanie strukturalne oraz obiektowe. Przeczytaj artyku\u0142 i sprawd\u017a, co Ci\u0119 czeka!","og_url":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/","og_site_name":"Codecool","article_publisher":"https:\/\/www.facebook.com\/CodecoolOfficial\/","article_published_time":"2019-04-18T13:18:23+00:00","article_modified_time":"2022-03-01T12:43:59+00:00","og_image":[{"width":540,"height":540,"url":"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg","type":"image\/jpeg"}],"author":"Dora Hoffman","twitter_card":"summary_large_image","twitter_creator":"@Codecool_global","twitter_site":"@Codecool_global","twitter_misc":{"Napisane przez":"Dora Hoffman","Szacowany czas czytania":"3 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#article","isPartOf":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/"},"author":{"name":"Dora Hoffman","@id":"https:\/\/codecool.com\/pl\/#\/schema\/person\/622e226c942203940586ef2dceca8365"},"headline":"Programowanie obiektowe a strukturalne","datePublished":"2019-04-18T13:18:23+00:00","dateModified":"2022-03-01T12:43:59+00:00","mainEntityOfPage":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/"},"wordCount":739,"commentCount":0,"publisher":{"@id":"https:\/\/codecool.com\/pl\/#organization"},"image":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#primaryimage"},"thumbnailUrl":"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg","articleSection":["Wiedza"],"inLanguage":"pl-PL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/","url":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/","name":"Programowanie obiektowe a strukturalne - Codecool","isPartOf":{"@id":"https:\/\/codecool.com\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#primaryimage"},"image":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#primaryimage"},"thumbnailUrl":"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg","datePublished":"2019-04-18T13:18:23+00:00","dateModified":"2022-03-01T12:43:59+00:00","description":"Podczas kursu poznasz szczeg\u00f3\u0142owo programowanie strukturalne oraz obiektowe. Przeczytaj artyku\u0142 i sprawd\u017a, co Ci\u0119 czeka!","breadcrumb":{"@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#primaryimage","url":"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg","contentUrl":"https:\/\/codecool.com\/wp-content\/uploads\/2021\/12\/IMG_1959_ok_resize-540x540-1.jpg","width":540,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/codecool.com\/pl\/programowanie-obiektowe-a-strukturalne\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codecool.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Programowanie obiektowe a strukturalne"}]},{"@type":"WebSite","@id":"https:\/\/codecool.com\/pl\/#website","url":"https:\/\/codecool.com\/pl\/","name":"Codecool","description":"Next gen coding school &amp; career hub","publisher":{"@id":"https:\/\/codecool.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codecool.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/codecool.com\/pl\/#organization","name":"Codecool","alternateName":"Codecool","url":"https:\/\/codecool.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/codecool.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/codecool.com\/wp-content\/uploads\/2023\/09\/Codecool-logo-app.svg","contentUrl":"https:\/\/codecool.com\/wp-content\/uploads\/2023\/09\/Codecool-logo-app.svg","width":1,"height":1,"caption":"Codecool"},"image":{"@id":"https:\/\/codecool.com\/pl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CodecoolOfficial\/","https:\/\/x.com\/Codecool_global","https:\/\/www.instagram.com\/codecool_official\/","https:\/\/www.linkedin.com\/school\/codecool\/"]},{"@type":"Person","@id":"https:\/\/codecool.com\/pl\/#\/schema\/person\/622e226c942203940586ef2dceca8365","name":"Dora Hoffman","image":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/codecool.com\/pl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/13d568fb246033721321e216b8f5f06457e373d046558ceccec33b2e0dc025bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/13d568fb246033721321e216b8f5f06457e373d046558ceccec33b2e0dc025bc?s=96&d=mm&r=g","caption":"Dora Hoffman"}}]}},"_links":{"self":[{"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/posts\/20464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/comments?post=20464"}],"version-history":[{"count":0,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/posts\/20464\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/media\/20465"}],"wp:attachment":[{"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/media?parent=20464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/categories?post=20464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codecool.com\/pl\/wp-json\/wp\/v2\/tags?post=20464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}