{"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":"ungarsk-notation","status":"publish","type":"dictionary","link":"https:\/\/thecodest.co\/da\/dictionary\/hungarian-notation\/","title":{"rendered":"Ungarsk notation"},"content":{"rendered":"<h1>Ungarsk notation: En definition<\/h1>\n<p>Ungarsk notation er en navngivningskonvention, der bruges i computerprogrammering til at angive <a href=\"https:\/\/thecodest.co\/da\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">data<\/a> typen af en variabel. Konventionen blev opfundet af Charles Simonyi, en ungarsk-f\u00f8dt <a href=\"https:\/\/thecodest.co\/da\/blog\/whats-the-difference-between-software-engineer-and-software-architect\/\">softwareingeni\u00f8r<\/a> der arbejdede hos Microsoft Corporation i 1980'erne. Notationen blev oprindeligt udviklet for at hj\u00e6lpe Simonyi og hans kolleger med at skrive <a href=\"https:\/\/thecodest.co\/da\/dictionary\/what-is-code-refactoring\/\">Kode<\/a> til de f\u00f8rste versioner af Microsoft Word.<\/p>\n<p>Den grundl\u00e6ggende id\u00e9 bag ungarsk notation er at tilf\u00f8je et pr\u00e6fiks til navnet p\u00e5 en variabel, som angiver dens datatype. For eksempel kan en variabel, der gemmer en heltalsv\u00e6rdi, hedde \"iCount\", mens en variabel, der gemmer en streng, kan hedde \"strName\". Pr\u00e6fikset \"i\" angiver, at variablen er et heltal, mens pr\u00e6fikset \"str\" angiver, at variablen er en streng.<\/p>\n<p>Ungarsk notation blev oprindeligt udviklet til brug med programmeringssproget C, men er siden blevet taget i brug af andre programmeringssprog. <a href=\"https:\/\/thecodest.co\/da\/blog\/top-programming-languages-to-build-e-commerce\/\">programmeringssprog<\/a>, herunder C++, <a href=\"https:\/\/thecodest.co\/da\/blog\/find-the-right-java-developer-now\/\">Java<\/a>og C#. Notationen har ogs\u00e5 udviklet sig med tiden, og der bruges forskellige pr\u00e6fikser til forskellige datatyper.<\/p>\n<p>P\u00e5 trods af sin popularitet er ungarsk notation blevet kritiseret af nogle programm\u00f8rer for at v\u00e6re for ordrig og for at g\u00f8re koden uoverskuelig. Andre h\u00e6vder, at den kan v\u00e6re forvirrende, is\u00e6r n\u00e5r der bruges forskellige pr\u00e6fikser for den samme datatype i forskellige dele af et program.<\/p>\n<p>P\u00e5 trods af denne kritik er ungarsk notation stadig en popul\u00e6r navngivningskonvention i mange programmeringsf\u00e6llesskaber. Den kan is\u00e6r v\u00e6re nyttig i store programmeringsprojekter, hvor den kan hj\u00e6lpe programm\u00f8rerne med hurtigt at identificere datatypen for en variabel uden at skulle lede koden igennem.<\/p>\n<p>Alt i alt er ungarsk notation et nyttigt v\u00e6rkt\u00f8j for programm\u00f8rer, der \u00f8nsker at skrive klar, l\u00e6sbar kode. Selv om det m\u00e5ske ikke passer til enhver programmering <a href=\"https:\/\/thecodest.co\/da\/dictionary\/why-do-projects-fail\/\">projekt<\/a>kan det v\u00e6re en v\u00e6rdifuld tilf\u00f8jelse til en programm\u00f8rs v\u00e6rkt\u00f8jskasse.<\/p>","protected":false},"excerpt":{"rendered":"<p>L\u00e6r om ungarsk notation, en navngivningskonvention, der bruges i programmering til at angive variable datatyper. Opfundet af Charles Simonyi i 1980'erne.<\/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\/da\/ordbog\/ungarsk-notation\/\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\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\/da\/ordbog\/ungarsk-notation\/\" \/>\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\":\"da-DK\",\"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\":\"da-DK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@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":"Ungarsk notation - The Codest","description":"L\u00e6r om ungarsk notation, en navngivningskonvention, der bruges i programmering til at angive variable datatyper. Opfundet af Charles Simonyi i 1980'erne.","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\/da\/ordbog\/ungarsk-notation\/","og_locale":"da_DK","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\/da\/ordbog\/ungarsk-notation\/","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":"Ungarsk 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":"L\u00e6r om ungarsk notation, en navngivningskonvention, der bruges i programmering til at angive variable datatyper. Opfundet af Charles Simonyi i 1980'erne.","breadcrumb":{"@id":"https:\/\/thecodest.co\/dictionary\/hungarian-notation\/#breadcrumb"},"inLanguage":"da-DK","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":"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":"da-DK"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"da-DK","@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\/da\/wp-json\/wp\/v2\/dictionary\/6596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/dictionary"}],"about":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/types\/dictionary"}],"version-history":[{"count":1,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/dictionary\/6596\/revisions"}],"predecessor-version":[{"id":11001,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/dictionary\/6596\/revisions\/11001"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/media?parent=6596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}