{"id":7233,"date":"2023-12-11T14:56:19","date_gmt":"2023-12-11T13:56:19","guid":{"rendered":"https:\/\/b2plus.de\/unsere-apex-code-convention\/"},"modified":"2024-03-17T14:05:47","modified_gmt":"2024-03-17T13:05:47","slug":"unsere-apex-code-convention","status":"publish","type":"post","link":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/","title":{"rendered":"Unsere Apex Code Convention"},"content":{"rendered":"<h1 id=\"3370-unsere-apex-code-convention\" class=\"s-space-page-header__title\" data-v-30e025e3=\"\" data-cy=\"page-title\">Our Apex Code Convention<\/h1>\n<p>This document defines a set of rules and styles to follow when coding Apex in the Salesforce platform. Following these guidelines can improve the readability and traceability of the source code. This makes it easier to maintain the software.<\/p>\n<h5>Goal<\/h5>\n<p>Ensure compliance with the following Apex coding guidelines in the Salesforce platform<\/p>\n<ul>\n<li>consistent,<\/li>\n<li>easy to read and<\/li>\n<li>Reliable code,<\/li>\n<\/ul>\n<p>especially in large development teams or projects with multiple contributors.<\/p>\n<h5>Area of application<\/h5>\n<p>A code convention is a finished document that contains a comprehensive collection of guidelines. Existing code conventions from other companies can be used to create your own code convention. The guidelines from the document can be adopted in full or slightly adapted. Based on the discussions and the results of the 4-eyes principle, further guidelines can be included in the code conventions to avoid future uncertainties.<\/p>\n<h5>Guidelines<\/h5>\n<p>By analyzing 5 coding conventions from different companies, we derived our own collection of Apex coding guidelines in the Salesforce platform. Only the relevant guidelines were considered.<\/p>\n<h6 id=\"2-benennungskonventionen\" data-ot-auto-id=\"true\">Naming conventions<\/h6>\n<p>The trailhead (https:\/\/trailhead.salesforce.com\/de\/content\/learn\/modules\/success-cloud-coding-conventions) lists frequently used naming conventions. To identify these naming conventions, Salesforce sat down with some of the most experienced Success Cloud developers. The result is the &#8220;Success Cloud Naming Conventions&#8221; table, which provides an overview of the generally accepted conventions for the most common Salesforce entities.<\/p>\n<p>For more information on Success Cloud naming conventions, see the <a href=\"https:\/\/quip.com\/MW5cAPVwat8k#JCIACA8Q963\">Salesforce Quip document<\/a>.<\/p>\n<p>We have adopted the following naming guidelines from this naming convention table:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td><strong>Type<\/strong><\/td>\n<td><strong>Naming Convention<\/strong><\/td>\n<td><strong>Beschreibung<\/strong><\/td>\n<td><strong>Beispiel<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Apex Class<\/td>\n<td>&lt;Namespace&gt;_&lt;Class Name&gt;&lt;Optional Suffix&gt;<\/td>\n<td>\n<ul>\n<li>Namespace: Is optional and is often written as an abbreviation. Is only used for classes that are exclusive to a single application\/project and are certain to remain so in the long term. Not to be confused with the namespace as used in packages or dev orgs!<\/li>\n<li>Class name: Nouns that describe the functional purpose of the class. Please do not use abbreviations.<\/li>\n<li>Suffix: Identifies general class types such as Controller, Extension, Handler, Utilities, TriggerHandler.<\/li>\n<\/ul>\n<\/td>\n<td>SBCPT_CustomerAssessmentController<\/p>\n<p>Account_SummarizeOpportunitiesExtension<\/td>\n<\/tr>\n<tr>\n<td>Apex Test Class<\/td>\n<td>&lt;Class Being Tested&gt;_Test<\/td>\n<td><\/td>\n<td>SBCPT_CustomerAssessmentController_Test<\/p>\n<p>Account_SummarizeOpportunitiesExtensionTest<\/td>\n<\/tr>\n<tr>\n<td>Apex Methods<\/td>\n<td>&lt;Verb(s)&gt;&lt;(optional) Noun Set&gt;<\/td>\n<td>&#8211; Verbs: describe the actions performed: get, save, check etc.<br \/>\n&#8211; Noun phrase: describes what the verbs act on.<\/td>\n<td>getParentAccount()<\/td>\n<\/tr>\n<tr>\n<td>Apex Variables<\/td>\n<td>&lt;Short yet meaningful nouns&gt;<\/td>\n<td>Avoid variable names with only one letter, except for temporary variables or loop variables..<\/td>\n<td><strong>Good:<\/strong><\/p>\n<p>parentAccount<\/p>\n<p><strong>Bad:<\/strong><\/p>\n<p>pA<\/p>\n<p>pAcc<\/td>\n<\/tr>\n<tr>\n<td>Apex Constants<\/td>\n<td>&lt;Capitalized words&gt;<\/td>\n<td>You should describe the constant without using too many words. All letters must be capitalized.<\/td>\n<td>MAX_CHARACTERS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"3-funktionen\" data-ot-auto-id=\"true\">Functions<\/h3>\n<p>Functions should be short and concise and fulfill only one purpose. They should do one thing and do it well.<\/p>\n<p>However, if you have a complex function and suspect that others will not understand what the function is about, then you should adhere to the upper limits all the more. Divide the function into several auxiliary functions with meaningful names.<\/p>\n<h4 id=\"31-variablen-platzierung\" data-ot-auto-id=\"true\">Variable placement<\/h4>\n<p>Only place declarations at the beginning of blocks.<\/p>\n<p>Try to initialize local variables where they are declared. The only reason why a variable should not be initialized where it was declared is if the initial value depends on a previously performed calculation.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<table style=\"height: 279px;\" border=\"1\" width=\"562\">\n<tbody>\n<tr>\n<td>function z1(){\/\/Good<br \/>\nvar a = 1;<br \/>\nvar b = 2;<br \/>\n&#8230;<br \/>\n}<\/td>\n<td>function z2(){\/\/Bad<br \/>\n&#8230;<br \/>\nvar a = 1;<br \/>\n&#8230;<br \/>\nvar b = 2;<br \/>\n&#8230;<br \/>\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"32-wahl-des-klammerstils\" data-ot-auto-id=\"true\">Choice of bracket style<\/h4>\n<p>We follow the style of Kernighan and Ritchie.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<table style=\"height: 581px;\" border=\"1\" width=\"658\">\n<tbody>\n<tr>\n<td><strong>Kernighan and Ritchie style (Good):<\/strong><\/p>\n<p>functionTest(){<br \/>\n&#8230;<br \/>\n}<\/p>\n<p>while (x == y) {<br \/>\nfunc1();<br \/>\nfunc1();<br \/>\n}<\/p>\n<p>function1(){<br \/>\n&#8230;<br \/>\n}<\/td>\n<td><strong>Allman style (Bad):<\/strong><\/p>\n<p>functionTest()<br \/>\n{<br \/>\n&#8230;<br \/>\n}<\/p>\n<p>while (x == y)<br \/>\n{<br \/>\nfunc1();<br \/>\nfunc1();<br \/>\n}<\/p>\n<p>function1()<br \/>\n{<br \/>\n&#8230;<br \/>\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"33-verwendung-von-freiwilligen-klammern\" data-ot-auto-id=\"true\">Use of optional brackets<\/h4>\n<p>Parentheses are used for if, else, for, do and while statements, even if the text body is empty or only contains one statement.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<table style=\"height: 173px;\" border=\"1\" width=\"587\">\n<tbody>\n<tr>\n<td>\/\/Good<\/p>\n<p>if(&#8230;){<br \/>\nexampleFunction()<br \/>\n}<\/td>\n<td>\/\/Bad<\/p>\n<p>if(&#8230;) exampleFunction()<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"34-eine-anweisung-pro-zeile\" data-ot-auto-id=\"true\">One instruction per line<\/h4>\n<p>Each instruction is followed by a line break.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<table style=\"height: 113px;\" border=\"1\" width=\"469\">\n<tbody>\n<tr>\n<td>\/\/Good<\/p>\n<p>function1();<br \/>\nfunction2();<\/td>\n<td>\/\/Bad<\/p>\n<p>function1();function2();<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"4-abst\u00e4nde\" data-ot-auto-id=\"true\">Distances<\/h3>\n<p>Most binary and ternary operators, such as the following, must be surrounded by a space (on either side):<\/p>\n<p>= + &#8211; &lt; &gt; * \/ % | &amp; ^ &lt;= &gt;= == != ? :<\/p>\n<p>But no space after the prefix increment &amp; decrement for unary operators:<\/p>\n<p>++ &#8212;<\/p>\n<p><strong>Example:<\/strong><\/p>\n<table style=\"height: 587px;\" border=\"1\" width=\"1319\">\n<tbody>\n<tr>\n<td>\n<div>\n<div>1.<\/div>\n<div>Good:<\/div>\n<div>spam(ham[1], {eggs: 2})<\/div>\n<div><\/div>\n<\/div>\n<div>\n<div>Bad:<\/div>\n<div>spam( ham[ 1 ], { eggs: 2 } )<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div>\n<p>2.<\/p>\n<p>Good:<\/p>\n<p>x = 1 y = 2<br \/>\nlong_variable = 3<\/p>\n<\/div>\n<\/div>\n<div>\n<div>\n<div>\n<div>\n<p>Bad:<\/p>\n<p>x\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=\u00a0 \u00a01<br \/>\ny\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=\u00a0 \u00a02<br \/>\nlong_variable\u00a0 \u00a0=\u00a0 \u00a03<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div>\n<div>\n<div>\n<p><strong>3.<\/strong><\/p>\n<p>Good:<\/p>\n<p>i = i + 1<br \/>\nsubmitted += 1<br \/>\nx = x*2 &#8211; 1<br \/>\nhypot2 = x*x + y*y<br \/>\nc = (a+b) * (a-b)<\/p>\n<\/div>\n<\/div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<p>Bad:<\/p>\n<p>i=i+1<br \/>\nsubmitted +=1<br \/>\nx = x * 2 &#8211; 1<br \/>\nhypot2 = x * x + y * y<br \/>\nc = (a + b) * (a &#8211; b)<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div>\n<div>\n<div>\n<p>4.<\/p>\n<p>Good:<\/p>\n<p>if( x &gt;= 35){<br \/>\ny = 3 * 3;<br \/>\nx = (x*x) + (y \/ (2*y));<br \/>\nx++;<br \/>\n&#8211;y;<br \/>\n}<\/p>\n<\/div>\n<\/div>\n<p>Bad:<\/p>\n<p>if( x&gt;=35){<br \/>\ny = 3*3;<br \/>\nx = (x*x)+(y\/(2*y));<br \/>\nx ++;<br \/>\n&#8212; y;<br \/>\n}<\/p>\n<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div>\n<div>\n<div><\/div>\n<\/div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<p>5. Casts should be followed by a blank<\/p>\n<p>Good:<\/p>\n<p>byte x = (byte) aNum;<br \/>\nint y = (int) (cp + 5);<\/p>\n<p>Bad:<\/p>\n<p>byte z = (byte)varExample;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"41-wrappinglinien\" data-ot-auto-id=\"true\">Wrapping lines<\/h4>\n<p>If an expression does not fit into a line, it must be converted according to the following general principles:<\/p>\n<ul>\n<li>Wrap after a comma.<\/li>\n<li>Wrap in front of an operator.<\/li>\n<li>Upheavals at a higher level are preferable to upheavals at a lower level.<\/li>\n<li>Align the new line at the beginning of the expression on the same level as the previous line.<\/li>\n<li>If the above rules lead to a confusing code or code that is squeezed into the right margin, you can simply insert 8 spaces instead.<\/li>\n<\/ul>\n<p>Note: Avoid lines with more than 80 characters, as they are difficult to read. In general, texts should not be longer than 70 characters.<\/p>\n<p><strong>Here are some examples of method calls:<\/strong><\/p>\n<p>var a = function(longExpression1, longExpression2,<\/p>\n<p>longExpression3, longExpression4, longExpression5);<\/p>\n<p>var b = function1(longExpression1,<\/p>\n<p>function2(longExpression2, longExpression3) );<\/p>\n<p>var c = long_function_name( var_one, var_two,<\/p>\n<p>var_three, var_four)<\/p>\n<p>var b = very_vrylong_function_name(<\/p>\n<p>var_one, var_two, var_three,<\/p>\n<p>var_four){<\/p>\n<p>&#8230;<\/p>\n<p>}<\/p>\n<p><strong>Below is an example of the fraction of an arithmetic expression. It is preferable because the fraction occurs outside the parenthesized expression, which is at a higher level..<\/strong><\/p>\n<p>longName1 = longName2 * (longName3 + longName4 &#8211; longName5)<\/p>\n<p>+ 4 * longname6;<\/p>\n<p><strong>The line break for if statements should generally use the 8-space rule, as the conventional indentation (4 spaces) makes the visibility of the text body more difficult. For example:<\/strong><\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\/\/DON\u2019T USE THIS INDENTATION<\/p>\n<p>if ((condition1 &amp;&amp; condition2)<\/p>\n<p>|| (condition3 &amp;&amp; condition4)<\/p>\n<p>||!(condition5 &amp;&amp; condition6)) { \/\/BAD WRAPS<\/p>\n<p>doSomethingAboutIt();\/\/MAKES THIS LINE EASY TO MISS<\/p>\n<p>}<\/td>\n<td>\/\/USE THIS INDENTATION INSTEAD<\/p>\n<p>if ((condition1 &amp;&amp; condition2)<\/p>\n<p>|| (condition3 &amp;&amp; condition4)<\/p>\n<p>||!(condition5 &amp;&amp; condition6)) {<\/p>\n<p>doSomethingAboutIt();<\/p>\n<p>}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"5-special-characters-1\" data-ot-auto-id=\"true\">Special characters<\/h3>\n<p>For each character that has a special escape sequence\u00a0(<code>\\b<\/code>,\u00a0<code>\\t<\/code>,\u00a0<code>\\n<\/code>,\u00a0<code>\\f<\/code>,\u00a0<code>\\r<\/code>,\u00a0<code>\\\"<\/code>,\u00a0<code>\\'<\/code>\u00a0and\u00a0<code>\\\\<\/code>), this sequence is used instead of the corresponding octal (e.g. <code>\\012<\/code>) or Unicode escape sequence (e.g. <code>\\u000a<\/code>) is used.<\/p>\n<p><strong>Beispiel:<\/strong><\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>Good:<\/p>\n<p>&#8220;Hallo Mr. \\&#8221;Anton\\&#8221;&#8221; =&gt; Hallo &#8220;Anton&#8221;<\/td>\n<td>Bad:<\/p>\n<p>&#8220;Hallo Mr. \\u0022Anton\\u0022&#8221; =&gt; Hallo &#8220;Anton&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For the remaining non-ASCII characters, either the actual Unicode character (e.g. \u221e) or the corresponding Unicode escape (e.g. \\u221e) is used. The choice depends only on what makes the code easier to read and understand.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Examples where the best variant is the first one:<\/p>\n<p>String firstExample = &#8220;\u03bcs&#8221;;<\/p>\n<p>String secondExample = &#8220;\\u03bcs&#8221;; \/\/ &#8220;\u03bcs&#8221;<\/p>\n<p>String thirdExample = &#8220;\\u03bcs&#8221;; \/\/ Greek letter mu, &#8220;s&#8221;<\/p>\n<h3 id=\"6-kommentare-1\" data-ot-auto-id=\"true\">Comments<\/h3>\n<p>Comments are good, but there is also a danger of commenting too much. NEVER try to explain HOW your code works in a comment: It is much better to write the code so that how it works is obvious, and it is a waste of time to explain poorly written code.<\/p>\n<p>Discussions of non-trivial or non-obvious design decisions are appropriate, but avoid repeating information that is already present in (and evident from) the code. Redundant comments can easily become obsolete. In general, avoid comments that may become obsolete during the development of the code.<\/p>\n<p>In general, your comments should describe WHAT your code does, not HOW. Also try to avoid comments within a function body: if the function is so complex that you need to comment parts of it separately. You can insert small comments to point out or warn about something particularly clever (or ugly). Instead, you should put the comments at the beginning of the function and explain what it does and possibly WHY it does it. For more information, see the examples in the &#8220;JavaDoc comment blocks&#8221; rule.<\/p>\n<p>Note: The frequency of comments sometimes reflects poor quality code. If you feel compelled to add a comment, you should rewrite the code to make it clearer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our Apex Code Convention This document defines a set of  [&#8230;]<\/p>\n","protected":false},"author":20,"featured_media":9322,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125,127,128],"tags":[159,157,160,158,161],"class_list":["post-7233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-resources-en","category-technologie-en","category-tools-en","tag-apex-code-en","tag-apex-programming-en","tag-salesforce-developer-en","tag-salesforce-platform-en","tag-sfdc-knowledge-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Unsere Apex Code Convention - b2plus consulting<\/title>\n<meta name=\"description\" content=\"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unsere Apex Code Convention - b2plus consulting\" \/>\n<meta property=\"og:description\" content=\"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\" \/>\n<meta property=\"og:site_name\" content=\"b2plus consulting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/b2plusConsulting\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-11T13:56:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-17T13:05:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/b2plus.de\/wp-content\/uploads\/2025\/08\/Anton-png.avif\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"267\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nina Th\u00fcrnagel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nina Th\u00fcrnagel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\"},\"author\":{\"name\":\"Nina Th\u00fcrnagel\",\"@id\":\"https:\/\/b2plus.de\/en\/#\/schema\/person\/2b3fa5a89487a9b1f9cfc572f571a6f1\"},\"headline\":\"Unsere Apex Code Convention\",\"datePublished\":\"2023-12-11T13:56:19+00:00\",\"dateModified\":\"2024-03-17T13:05:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\"},\"wordCount\":1379,\"publisher\":{\"@id\":\"https:\/\/b2plus.de\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif\",\"keywords\":[\"apex code\",\"apex programming\",\"salesforce developer\",\"salesforce platform\",\"sfdc knowledge\"],\"articleSection\":[\"Resources\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\",\"url\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\",\"name\":\"Unsere Apex Code Convention - b2plus consulting\",\"isPartOf\":{\"@id\":\"https:\/\/b2plus.de\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif\",\"datePublished\":\"2023-12-11T13:56:19+00:00\",\"dateModified\":\"2024-03-17T13:05:47+00:00\",\"description\":\"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.\",\"breadcrumb\":{\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage\",\"url\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif\",\"contentUrl\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif\",\"width\":800,\"height\":600,\"caption\":\"Anton Consultant Digitalisierung\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/b2plus.de\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unsere Apex Code Convention\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/b2plus.de\/en\/#website\",\"url\":\"https:\/\/b2plus.de\/en\/\",\"name\":\"b2plus consulting\",\"description\":\"Die Salesforce Optimierer\",\"publisher\":{\"@id\":\"https:\/\/b2plus.de\/en\/#organization\"},\"alternateName\":\"b2plus consulting\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/b2plus.de\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/b2plus.de\/en\/#organization\",\"name\":\"b2plus consulting\",\"alternateName\":\"b2plus consulting\",\"url\":\"https:\/\/b2plus.de\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/b2plus.de\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2021\/04\/210413_b2plus_logo-1.png\",\"contentUrl\":\"https:\/\/b2plus.de\/wp-content\/uploads\/2021\/04\/210413_b2plus_logo-1.png\",\"width\":1000,\"height\":1000,\"caption\":\"b2plus consulting\"},\"image\":{\"@id\":\"https:\/\/b2plus.de\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/b2plusConsulting\",\"https:\/\/www.linkedin.com\/company\/b2plus-consulting\/?originalSubdomain=de\",\"https:\/\/www.xing.com\/pages\/b2plusconsultinggmbh\",\"https:\/\/www.instagram.com\/b2plusconsulting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/b2plus.de\/en\/#\/schema\/person\/2b3fa5a89487a9b1f9cfc572f571a6f1\",\"name\":\"Nina Th\u00fcrnagel\",\"url\":\"https:\/\/b2plus.de\/en\/author\/nthuernagelb2plus-de\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unsere Apex Code Convention - b2plus consulting","description":"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.","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:\/\/b2plus.de\/en\/unsere-apex-code-convention\/","og_locale":"en_US","og_type":"article","og_title":"Unsere Apex Code Convention - b2plus consulting","og_description":"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.","og_url":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/","og_site_name":"b2plus consulting","article_publisher":"https:\/\/www.facebook.com\/b2plusConsulting","article_published_time":"2023-12-11T13:56:19+00:00","article_modified_time":"2024-03-17T13:05:47+00:00","og_image":[{"width":400,"height":267,"url":"https:\/\/b2plus.de\/wp-content\/uploads\/2025\/08\/Anton-png.avif","type":"image\/png"}],"author":"Nina Th\u00fcrnagel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nina Th\u00fcrnagel","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#article","isPartOf":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/"},"author":{"name":"Nina Th\u00fcrnagel","@id":"https:\/\/b2plus.de\/en\/#\/schema\/person\/2b3fa5a89487a9b1f9cfc572f571a6f1"},"headline":"Unsere Apex Code Convention","datePublished":"2023-12-11T13:56:19+00:00","dateModified":"2024-03-17T13:05:47+00:00","mainEntityOfPage":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/"},"wordCount":1379,"publisher":{"@id":"https:\/\/b2plus.de\/en\/#organization"},"image":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage"},"thumbnailUrl":"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif","keywords":["apex code","apex programming","salesforce developer","salesforce platform","sfdc knowledge"],"articleSection":["Resources","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/","url":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/","name":"Unsere Apex Code Convention - b2plus consulting","isPartOf":{"@id":"https:\/\/b2plus.de\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage"},"image":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage"},"thumbnailUrl":"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif","datePublished":"2023-12-11T13:56:19+00:00","dateModified":"2024-03-17T13:05:47+00:00","description":"Erweitern Sie Ihr Wissen \u00fcber die Apex-Codierung in der Salesforce-Plattform mit unserem umfassenden Leitfaden zu Codierungskonventionen.","breadcrumb":{"@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#primaryimage","url":"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif","contentUrl":"https:\/\/b2plus.de\/wp-content\/uploads\/2023\/12\/Anton-png.avif","width":800,"height":600,"caption":"Anton Consultant Digitalisierung"},{"@type":"BreadcrumbList","@id":"https:\/\/b2plus.de\/en\/unsere-apex-code-convention\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/b2plus.de\/en\/"},{"@type":"ListItem","position":2,"name":"Unsere Apex Code Convention"}]},{"@type":"WebSite","@id":"https:\/\/b2plus.de\/en\/#website","url":"https:\/\/b2plus.de\/en\/","name":"b2plus consulting","description":"Die Salesforce Optimierer","publisher":{"@id":"https:\/\/b2plus.de\/en\/#organization"},"alternateName":"b2plus consulting","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/b2plus.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/b2plus.de\/en\/#organization","name":"b2plus consulting","alternateName":"b2plus consulting","url":"https:\/\/b2plus.de\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/b2plus.de\/en\/#\/schema\/logo\/image\/","url":"https:\/\/b2plus.de\/wp-content\/uploads\/2021\/04\/210413_b2plus_logo-1.png","contentUrl":"https:\/\/b2plus.de\/wp-content\/uploads\/2021\/04\/210413_b2plus_logo-1.png","width":1000,"height":1000,"caption":"b2plus consulting"},"image":{"@id":"https:\/\/b2plus.de\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/b2plusConsulting","https:\/\/www.linkedin.com\/company\/b2plus-consulting\/?originalSubdomain=de","https:\/\/www.xing.com\/pages\/b2plusconsultinggmbh","https:\/\/www.instagram.com\/b2plusconsulting\/"]},{"@type":"Person","@id":"https:\/\/b2plus.de\/en\/#\/schema\/person\/2b3fa5a89487a9b1f9cfc572f571a6f1","name":"Nina Th\u00fcrnagel","url":"https:\/\/b2plus.de\/en\/author\/nthuernagelb2plus-de\/"}]}},"_links":{"self":[{"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/posts\/7233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/comments?post=7233"}],"version-history":[{"count":2,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/posts\/7233\/revisions"}],"predecessor-version":[{"id":7267,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/posts\/7233\/revisions\/7267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/media\/9322"}],"wp:attachment":[{"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/media?parent=7233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/categories?post=7233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b2plus.de\/en\/wp-json\/wp\/v2\/tags?post=7233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}