<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexander Crescent</title>
    <description>The latest articles on DEV Community by Alexander Crescent (@alexcres).</description>
    <link>https://dev.to/alexcres</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F300814%2F54b59885-e4ff-49ef-a75a-580680f4c2b0.jpeg</url>
      <title>DEV Community: Alexander Crescent</title>
      <link>https://dev.to/alexcres</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexcres"/>
    <language>en</language>
    <item>
      <title>Answer: Essential skills of a Data Scientist [closed]</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 05 Feb 2020 02:22:46 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-essential-skills-of-a-data-scientist-closed-20ig</link>
      <guid>https://dev.to/alexcres/answer-essential-skills-of-a-data-scientist-closed-20ig</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/2866880#2866880" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Essential skills of a Data Scientist
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;May 19 '10&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/2866880#2866880" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          24
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;To quote from the intro to &lt;a href="http://had.co.nz/thesis/practical-tools-hadley-wickham.pdf" rel="noreferrer"&gt;Hadley's phd thesis&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;First, you get the data in a form that
  you can work with ... Second, you
  plot the data to get a feel for what
  is going on ... Third, you iterate
  between graphics and models to build a
  succinct…&lt;/p&gt;
&lt;/blockquote&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/2866880#2866880" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Essential skills of a Data Scientist [closed]</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 05 Feb 2020 02:22:29 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-essential-skills-of-a-data-scientist-closed-5bak</link>
      <guid>https://dev.to/alexcres/answer-essential-skills-of-a-data-scientist-closed-5bak</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/3941102#3941102" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Essential skills of a Data Scientist
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Oct 15 '10&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/3941102#3941102" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          10
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;At &lt;a href="http://www.dataists.com/2010/09/the-data-science-venn-diagram/" rel="noreferrer"&gt;dataist&lt;/a&gt; the question is addressed in a general way with a nice Venn diagram:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Zs7lao1N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.stack.imgur.com/Jz7RM.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Zs7lao1N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.stack.imgur.com/Jz7RM.png" alt="venn diagram"&gt;&lt;/a&gt;&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/2860314/essential-skills-of-a-data-scientist/3941102#3941102" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Java Runtime Performance Vs Native C / C++ Code?</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Thu, 23 Jan 2020 18:17:31 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-java-runtime-performance-vs-native-c-c-code-58b6</link>
      <guid>https://dev.to/alexcres/answer-java-runtime-performance-vs-native-c-c-code-58b6</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/1984856/java-runtime-performance-vs-native-c-c-code/1984920#1984920" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Java Runtime Performance Vs Native C / C++ Code?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec 31 '09&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1984856/java-runtime-performance-vs-native-c-c-code/1984920#1984920" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          56
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Java isn't an interpreted language, and hasn't been for several versions. The Java bytecode is JIT'ed on the fly. (Technically it still interprets some of the code, but anything that matters performance-wise gets JIT'ed)&lt;/p&gt;
&lt;p&gt;As for performance, what on Earth gives you the crazy idea that "there is a baseline…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/1984856/java-runtime-performance-vs-native-c-c-code/1984920#1984920" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Spring boot app vs .war file deployed on Tomcat/Jetty [closed]</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 22 Jan 2020 14:54:21 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-spring-boot-app-vs-war-file-deployed-on-tomcat-jetty-closed-3li4</link>
      <guid>https://dev.to/alexcres/answer-spring-boot-app-vs-war-file-deployed-on-tomcat-jetty-closed-3li4</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/40641589/spring-boot-app-vs-war-file-deployed-on-tomcat-jetty/40648257#40648257" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Spring boot app vs .war file deployed on Tomcat/Jetty
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 17 '16&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/40641589/spring-boot-app-vs-war-file-deployed-on-tomcat-jetty/40648257#40648257" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          25
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;blockquote&gt;
  &lt;p&gt;Package it to .war file and deploy it on Tomcat/Jetty?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Don't&lt;/strong&gt; do this if at all possible. &lt;strong&gt;Reason&lt;/strong&gt;: with embedded tomcat (or any other server runtime like undertow, netty, jetty etc) it's much easier to build a micro-services architecture.&lt;/p&gt;

&lt;p&gt;As Josh Long once said in one of his Spring…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/40641589/spring-boot-app-vs-war-file-deployed-on-tomcat-jetty/40648257#40648257" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Make Jar, not War.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Leetcode intersection of two linked lists</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Tue, 31 Dec 2019 08:16:46 +0000</pubDate>
      <link>https://dev.to/alexcres/leetcode-intersection-of-two-linked-lists-579g</link>
      <guid>https://dev.to/alexcres/leetcode-intersection-of-two-linked-lists-579g</guid>
      <description>&lt;p&gt;&lt;a href="https://leetcode.com/problems/intersection-of-two-linked-lists/discuss/49899/C++-solution-using-XOR-trick"&gt;https://leetcode.com/problems/intersection-of-two-linked-lists/discuss/49899/C++-solution-using-XOR-trick&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Start from this:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   (p) a1 → a2
               ↘
                 X → c1 → c2
               ↗            
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(q) b1 → b2 → b3&lt;/p&gt;

&lt;p&gt;follow p, reversing links as you go:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      a1 ← a2
              ↖
                X ← c1 ← c2 (p)
              ↗            
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(q) b1 → b2 → b3&lt;/p&gt;

&lt;p&gt;now reverse q:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  (q) a1 → a2
              ↘
                X ← c1 ← c2 (p)
              ↙            
 b1 ← b2 ← b3
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;then reverse p again:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  (q) a1 → a2
              ↘
                X → c1 → c2
              ↗            
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(p) b1 → b2 → b3&lt;/p&gt;

&lt;p&gt;Notice that p and q are swapped, but the list structure is back to what it was in the beginning.&lt;/p&gt;

&lt;p&gt;Now the key observation: each node in branches a, b and c has been visited exactly twice, while X has been visited three times. We can thus use the well known trick: we keep an accumulator and XOR it to each address we visit along the way. In the end, the accumulator will contain the address of the only node visited an odd number of times, that is X.&lt;/p&gt;

&lt;p&gt;What if the lists don't meet? In that case we have already reversed p twice, reverting it to its initial state, so we only need to reverse q a second time as well and return null.&lt;/p&gt;

&lt;p&gt;Code&lt;/p&gt;

&lt;p&gt;class Solution {&lt;br&gt;
    uintptr_t acc = 0;&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ListNode* reverse(ListNode *head) {
    ListNode *prev = nullptr, *tmp;
    while (head) {
        acc ^= reinterpret_cast&amp;lt;uintptr_t&amp;gt; (head);
        tmp = head-&amp;gt;next;
        head-&amp;gt;next = prev;
        prev = head;
        head = tmp;
    }
    return prev;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;public:&lt;br&gt;
    ListNode &lt;em&gt;getIntersectionNode(ListNode *headA, ListNode *headB) {&lt;br&gt;
        ListNode *p = headA, *q = headB;&lt;br&gt;
        p = reverse(p);&lt;br&gt;
        q = reverse(q);&lt;br&gt;
        p = reverse(p);&lt;br&gt;
        if (q != headA) q = reverse(q);&lt;br&gt;
        return reinterpret_cast&amp;lt;ListNode&lt;/em&gt;&amp;gt; (acc);&lt;br&gt;
    }&lt;br&gt;
};&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>leetcode</category>
    </item>
    <item>
      <title>Answer: What is uintptr_t data type</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Tue, 31 Dec 2019 08:14:05 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-what-is-uintptrt-data-type-46b2</link>
      <guid>https://dev.to/alexcres/answer-what-is-uintptrt-data-type-46b2</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/1845482/what-is-uintptr-t-data-type/1845491#1845491" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What is uintptr_t data type
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  4 '09&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1845482/what-is-uintptr-t-data-type/1845491#1845491" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          203
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;&lt;code&gt;uintptr_t&lt;/code&gt; is an unsigned integer type that is capable of storing a data pointer.  Which typically means that it's the same size as a pointer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.cppreference.com/w/cpp/types/integer" rel="noreferrer"&gt;It is optionally defined in C++11 and later standards.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A common reason to want an integer type that can hold an architecture's pointer type is…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/1845482/what-is-uintptr-t-data-type/1845491#1845491" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: When should I write the keyword 'inline' for a function/method?</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 25 Dec 2019 23:46:50 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-when-should-i-write-the-keyword-inline-for-a-function-method-4056</link>
      <guid>https://dev.to/alexcres/answer-when-should-i-write-the-keyword-inline-for-a-function-method-4056</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method/1759575#1759575" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  When should I write the keyword 'inline' for a function/method?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 18 '09&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method/1759575#1759575" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          897
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Oh man, one of my pet peeves.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;inline&lt;/code&gt; is more like &lt;code&gt;static&lt;/code&gt; or &lt;code&gt;extern&lt;/code&gt; than a directive telling the compiler to inline your functions.  &lt;code&gt;extern&lt;/code&gt;, &lt;code&gt;static&lt;/code&gt;, &lt;code&gt;inline&lt;/code&gt; are linkage directives, used almost exclusively by the linker, not the compiler.&lt;/p&gt;

&lt;p&gt;It is said that &lt;code&gt;inline&lt;/code&gt; hints to the compiler…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method/1759575#1759575" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Advantages of using forward</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 25 Dec 2019 20:57:14 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-advantages-of-using-forward-35hk</link>
      <guid>https://dev.to/alexcres/answer-advantages-of-using-forward-35hk</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/3582001/what-are-the-main-purposes-of-using-stdforward-and-which-problems-it-solves/3582313#3582313" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What are the main purposes of using std::forward and which problems it solves?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 27 '10&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/3582001/what-are-the-main-purposes-of-using-stdforward-and-which-problems-it-solves/3582313#3582313" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          800
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You have to understand the forwarding problem. You can &lt;a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm" rel="noreferrer"&gt;read the entire problem in detail&lt;/a&gt;, but I'll summarize.&lt;/p&gt;
&lt;p&gt;Basically, given the expression &lt;code&gt;E(a, b, ... , c)&lt;/code&gt;, we want the expression &lt;code&gt;f(a, b, ... , c)&lt;/code&gt; to be equivalent. In C++03, this is impossible. There are many attempts…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/3582001/what-are-the-main-purposes-of-using-stdforward-and-which-problems-it-solves/3582313#3582313" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: What are rvalues, lvalues, xvalues, glvalues, and prvalues?</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 25 Dec 2019 20:44:52 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues-2gbi</link>
      <guid>https://dev.to/alexcres/answer-what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues-2gbi</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/3601602/what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues/9552880#9552880" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What are rvalues, lvalues, xvalues, glvalues, and prvalues?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Mar  4 '12&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/3601602/what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues/9552880#9552880" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          165
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;blockquote&gt;
  &lt;p&gt;Why are these new categories needed? Are the WG21 gods just trying to confuse us mere mortals?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I don't feel that the other answers (good though many of them are) really capture the answer to this particular question. Yes, these categories and such exist to allow move semantics, but the…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/3601602/what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues/9552880#9552880" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: When to use virtual destructors?</title>
      <dc:creator>Alexander Crescent</dc:creator>
      <pubDate>Wed, 25 Dec 2019 17:30:20 +0000</pubDate>
      <link>https://dev.to/alexcres/answer-when-to-use-virtual-destructors-52pm</link>
      <guid>https://dev.to/alexcres/answer-when-to-use-virtual-destructors-52pm</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/461203/when-to-use-virtual-destructors/15903538#15903538" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  When to use virtual destructors?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Apr  9 '13&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/461203/when-to-use-virtual-destructors/15903538#15903538" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          223
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;A virtual constructor is not possible but virtual destructor is possible
Let us experiment.......&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;

using namespace std;

class Base
{
public:
    Base(){
        cout &amp;lt;&amp;lt; "Base Constructor Called\n";
    }
    ~Base(){
        cout &amp;lt;&amp;lt; "Base Destructor called\n";
    }
};

class Derived1: public Base
{
public:
    Derived1(){
        cout &amp;lt;&amp;lt; "Derived constructor called\n";&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/461203/when-to-use-virtual-destructors/15903538#15903538" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
