{"id":6596,"date":"2026-04-13T11:50:41","date_gmt":"2026-04-13T11:50:41","guid":{"rendered":"http:\/\/the-codest.localhost\/dictionary\/hungarian-notation\/"},"modified":"2026-04-13T11:50:50","modified_gmt":"2026-04-13T11:50:50","slug":"notacao-hungara","status":"publish","type":"dictionary","link":"https:\/\/thecodest.co\/pt\/dictionary\/hungarian-notation\/","title":{"rendered":"Nota\u00e7\u00e3o h\u00fangara"},"content":{"rendered":"<h1>Nota\u00e7\u00e3o h\u00fangara: Uma defini\u00e7\u00e3o<\/h1>\n<p>A nota\u00e7\u00e3o h\u00fangara \u00e9 uma conven\u00e7\u00e3o de nomes utilizada na programa\u00e7\u00e3o de computadores para indicar o <a href=\"https:\/\/thecodest.co\/pt\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">dados<\/a> tipo de uma vari\u00e1vel. A conven\u00e7\u00e3o foi inventada por Charles Simonyi, um h\u00fangaro <a href=\"https:\/\/thecodest.co\/pt\/blog\/whats-the-difference-between-software-engineer-and-software-architect\/\">engenheiro de software<\/a> que trabalhou na Microsoft Corporation na d\u00e9cada de 1980. A nota\u00e7\u00e3o foi originalmente desenvolvida para ajudar Simonyi e os seus colegas a escrever <a href=\"https:\/\/thecodest.co\/pt\/dictionary\/what-is-code-refactoring\/\">c\u00f3digo<\/a> para as primeiras vers\u00f5es do Microsoft Word.<\/p>\n<p>A ideia b\u00e1sica da nota\u00e7\u00e3o h\u00fangara \u00e9 adicionar um prefixo ao nome de uma vari\u00e1vel que indica o seu tipo de dados. Por exemplo, uma vari\u00e1vel que armazena um valor inteiro pode ser designada por \"iCount\", enquanto uma vari\u00e1vel que armazena uma cadeia de caracteres pode ser designada por \"strName\". O prefixo \"i\" indica que a vari\u00e1vel \u00e9 um n\u00famero inteiro, enquanto o prefixo \"str\" indica que a vari\u00e1vel \u00e9 uma cadeia de caracteres.<\/p>\n<p>Embora a nota\u00e7\u00e3o h\u00fangara tenha sido originalmente desenvolvida para ser utilizada com a linguagem de programa\u00e7\u00e3o C, desde ent\u00e3o tem sido adoptada por outros <a href=\"https:\/\/thecodest.co\/pt\/blog\/top-programming-languages-to-build-e-commerce\/\">linguagens de programa\u00e7\u00e3o<\/a>, incluindo C++, <a href=\"https:\/\/thecodest.co\/pt\/blog\/find-the-right-java-developer-now\/\">Java<\/a>e C#. A nota\u00e7\u00e3o tamb\u00e9m evoluiu ao longo do tempo, com diferentes prefixos a serem utilizados para diferentes tipos de dados.<\/p>\n<p>Apesar da sua popularidade, a nota\u00e7\u00e3o h\u00fangara tem sido criticada por alguns programadores por ser demasiado prolixa e desorganizar o c\u00f3digo. Outros argumentam que pode ser confusa, especialmente quando s\u00e3o utilizados diferentes prefixos para o mesmo tipo de dados em diferentes partes de um programa.<\/p>\n<p>Apesar destas cr\u00edticas, a nota\u00e7\u00e3o h\u00fangara continua a ser uma conven\u00e7\u00e3o de nomes popular em muitas comunidades de programa\u00e7\u00e3o. Pode ser especialmente \u00fatil para grandes projectos de programa\u00e7\u00e3o, onde pode ajudar os programadores a identificar rapidamente o tipo de dados de uma vari\u00e1vel sem terem de procurar no c\u00f3digo.<\/p>\n<p>Em geral, a nota\u00e7\u00e3o h\u00fangara \u00e9 uma ferramenta \u00fatil para os programadores que pretendem escrever c\u00f3digo claro e leg\u00edvel. Embora possa n\u00e3o ser apropriada para todos os programadores <a href=\"https:\/\/thecodest.co\/pt\/dictionary\/why-do-projects-fail\/\">projeto<\/a>pode ser uma adi\u00e7\u00e3o valiosa ao conjunto de ferramentas de um programador.<\/p>","protected":false},"excerpt":{"rendered":"<p>Saiba mais sobre a Nota\u00e7\u00e3o H\u00fangara, uma conven\u00e7\u00e3o de nomes utilizada na programa\u00e7\u00e3o para indicar tipos de dados vari\u00e1veis. Inventada por Charles Simonyi na d\u00e9cada de 1980.<\/p>","protected":false},"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-6596","dictionary","type-dictionary","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Hungarian Notation - The Codest<\/title>\n<meta name=\"description\" content=\"Learn about Hungarian Notation, a naming convention used in programming to indicate variable data types. Invented by Charles Simonyi in the 1980s.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/pt\/dicionario\/notacao-hungara\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hungarian Notation\" \/>\n<meta property=\"og:description\" content=\"Learn about Hungarian Notation, a naming convention used in programming to indicate variable data types. Invented by Charles Simonyi in the 1980s.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/pt\/dicionario\/notacao-hungara\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-13T11:50:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/hungarian-notation\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/hungarian-notation\\\/\",\"name\":\"Hungarian Notation - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"datePublished\":\"2026-04-13T11:50:41+00:00\",\"dateModified\":\"2026-04-13T11:50:50+00:00\",\"description\":\"Learn about Hungarian Notation, a naming convention used in programming to indicate variable data types. Invented by Charles Simonyi in the 1980s.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/hungarian-notation\\\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/hungarian-notation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/hungarian-notation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dictionary\",\"item\":\"https:\\\/\\\/thecodest.co\\\/sv\\\/ordbok\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Hungarian Notation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Nota\u00e7\u00e3o h\u00fangara - The Codest","description":"Saiba mais sobre a Nota\u00e7\u00e3o H\u00fangara, uma conven\u00e7\u00e3o de nomes utilizada na programa\u00e7\u00e3o para indicar tipos de dados vari\u00e1veis. Inventada por Charles Simonyi na d\u00e9cada de 1980.","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:\/\/thecodest.co\/pt\/dicionario\/notacao-hungara\/","og_locale":"pt_PT","og_type":"article","og_title":"Hungarian Notation","og_description":"Learn about Hungarian Notation, a naming convention used in programming to indicate variable data types. Invented by Charles Simonyi in the 1980s.","og_url":"https:\/\/thecodest.co\/pt\/dicionario\/notacao-hungara\/","og_site_name":"The Codest","article_modified_time":"2026-04-13T11:50:50+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thecodest.co\/dictionary\/hungarian-notation\/","url":"https:\/\/thecodest.co\/dictionary\/hungarian-notation\/","name":"Nota\u00e7\u00e3o h\u00fangara - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"datePublished":"2026-04-13T11:50:41+00:00","dateModified":"2026-04-13T11:50:50+00:00","description":"Saiba mais sobre a Nota\u00e7\u00e3o H\u00fangara, uma conven\u00e7\u00e3o de nomes utilizada na programa\u00e7\u00e3o para indicar tipos de dados vari\u00e1veis. Inventada por Charles Simonyi na d\u00e9cada de 1980.","breadcrumb":{"@id":"https:\/\/thecodest.co\/dictionary\/hungarian-notation\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/dictionary\/hungarian-notation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/dictionary\/hungarian-notation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Dictionary","item":"https:\/\/thecodest.co\/sv\/ordbok\/"},{"@type":"ListItem","position":3,"name":"Hungarian Notation"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/dictionary\/6596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/dictionary"}],"about":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/types\/dictionary"}],"version-history":[{"count":1,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/dictionary\/6596\/revisions"}],"predecessor-version":[{"id":11001,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/dictionary\/6596\/revisions\/11001"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/media?parent=6596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}