<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wolfgang Gehner on Medium]]></title>
        <description><![CDATA[Stories by Wolfgang Gehner on Medium]]></description>
        <link>https://medium.com/@WolfgangGehner?source=rss-d1e5de083abd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*reiku9UxP1TKV-OXLn-XRA.jpeg</url>
            <title>Stories by Wolfgang Gehner on Medium</title>
            <link>https://medium.com/@WolfgangGehner?source=rss-d1e5de083abd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:49:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@WolfgangGehner/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An ad hominem attack is not an argument.]]></title>
            <link>https://medium.com/@WolfgangGehner/an-ad-hominem-attack-is-not-an-argument-7ceee5000574?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ceee5000574</guid>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 18:51:07 GMT</pubDate>
            <atom:updated>2020-09-10T18:51:07.437Z</atom:updated>
            <content:encoded><![CDATA[<p>An ad hominem attack is not an argument.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ceee5000574" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happened When I Invaded A Trump Bubble]]></title>
            <link>https://medium.com/@WolfgangGehner/what-happened-when-i-invaded-a-trump-bubble-e5861456fd9d?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5861456fd9d</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[america]]></category>
            <category><![CDATA[trump]]></category>
            <category><![CDATA[biden]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 19:39:36 GMT</pubDate>
            <atom:updated>2020-09-02T17:58:05.617Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>I tried to have an intellectually honest conversation with a Trump supporter — this is how it went.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VScC0S92jbJMeI3j4KgNfQ.jpeg" /></figure><p><strong><em>It did not go well.</em></strong> It was both fascinating and depressing. At moments, it felt like trying to<em> nail pudding to a wall</em>. [If you support Trump yourself, I challenge your open-mindedness and ask you to read through the end. Maybe you can help right the ship?]</p><p><strong>Facebook</strong> started it, with a friend suggestion: someone I didn’t know but whose last name I recognized. I sent a <em>friend request</em>, asking her if she was related to my former boss at a software project, now retired. She was and accepted the request. It turned out that she also knows my wife’s sister. The Facebook algorithm likely knew that before me.</p><p>It did not take long for me to realize that my new friend was a <em>hard-core Trump supporter</em>. One of her first posts that showed up for me was a meme claiming that</p><blockquote>‘Bidens tax rate on a family making 75000 dollars would go from 12% to 25%. LET THAT SINK IN ALL YOU RIDING WITH BIDEN SUPORTERS!!’</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*hwfKeuJC0swNJpOvbUeIZg.jpeg" /></figure><p>[Yes, that is supporters with one ‘P’]. Facebook was so good to flag this as false information, as Biden had literally just promised no new taxes for incomes under $400k.</p><p>The same day, she re-posted a meme to the effect that Covid was the Dems fault because they pursued the Russia hoax with impeachment, and it would sure be nice to have the $100m Mueller investigation cost to help fight the pandemic now. There was a lot to unpack there. For one, I remembered that the investigation paid for itself because Paul Manafort had to forfeit significant values to the government. I looked up the <a href="https://archive.thinkprogress.org/at-a-reported-cost-of-25-million-mueller-probe-has-paid-for-itself-76fdcee15c9b/">source</a>.</p><p>My new friend did <strong>not</strong> invent these two memes, but she <em>re-distributed</em> them. I opened Facebook Messenger and sent her a direct message with the screenshot of the ‘False information’ flag, and asked her <em>if she minded being lied to</em>. I also provided <a href="https://archive.thinkprogress.org/at-a-reported-cost-of-25-million-mueller-probe-has-paid-for-itself-76fdcee15c9b/">the link to the article</a> about the actual Mueller investigation cost. I followed up with</p><blockquote>‘I would feel a little used if I were you.’</blockquote><p>One day later, her short answer was</p><blockquote>‘This is ridiculous’.</blockquote><p>I didn’t question what she meant, because more of her posts and re-posts were about to keep me busy. I should explain now that I am German by origin, and have elderly parents still living in Germany. Due to Covid I have not been able to see them this year. I am upset about this. I’m also a software engineer who likes facts and numbers. Using math and logic to resolve issues is my profession. I had previously posted this:</p><blockquote>‘The U.S. has 4 times as many people as Germany. U.S. has about 1,000 Covid deaths a day. Germany has 5. Now adjust deaths for population. Unsurprising there is a reverse travel ban. I would like for my wife and I to regain the liberty to travel and not be considered lepers. What does it take?’</blockquote><p>A friend had commented that it would take a paradigm shift. To spare you the math: adjusted for population, the U.S. has seen <strong><em>50 times more</em></strong> Covid deaths per day than Germany.</p><p>But back to my new Trump-supporting friend. She re-posted a statement that defended voting for Trump, because it’s also a vote for safe cities, the police, the right to worship etc. I could not resist. I commented that it is also a vote for :— allowing foreign countries to influence your election, — kids in cages, — unidentified agents in unmarked vans taking protesters away, — the loss of your right to protest peacefully without being tear gassed, and the loss of your freedom to travel internationally. <strong>Talk about poking a bees’ nest.</strong> Her friends were getting ready to reply to me.</p><p>One of her friends argued that the U.S. Covid numbers were inflated. I responded by asking if she knows how coroners work, and with 50 times more deaths in the U.S., <em>coroners would have had to fake 98% of Covid death certificates to make the U.S. come out on top</em>. That did not keep her from continuing to defend Trump. If only 6% of U.S. Covid deaths were real — a recent misreading of CDC data that exclude Covid deaths with co-morbidities — but deaths counted in Germany included those with any co-morbidities, Germany would still be three times better at handling the crisis.</p><p>On the ‘kids in cages’ point their response was</p><blockquote>‘Did you know that the cages were built by Obama?’</blockquote><p>I had not known that, but it was an irrelevant objection to my argument against the mistreatment of children. I acknowledged that Obama was already tough on immigration. I asked if the previous administration had built torture chambers, would it be OK to use them? I pointed out that morals are absolute, not relative to some other administration. The responding lady thought she spotted my weakness in not responding to her <em>‘what about Obama’</em> diversion and argued that cages are not torture so it’s not a big deal.</p><p>The bigger issue here was the <a href="https://en.m.wikipedia.org/wiki/Trump_administration_family_separation_policy">zero tolerance child separation practice and policy</a>: separating children from their parents at the border, without plans to reunite them. I pointed out that the courts have since invalidated that policy as illegal. In the thread, I was also told that if parents still cross the border knowing about the separation it’s their own fault. I pointed out that this sounds like</p><blockquote>‘If you don’t do what I want you to do I am going to have to break your legs’.</blockquote><p>I said that taking the parents from a child is the moral equivalent of that. After thinking about it, since it was done without a plan to reunite them, it’s really more like cutting limbs off. It is cruel, morally abject and it should be no surprise that the <em>courts eventually ruled against the policy</em>. That did not keep my new friends from still defending Trump.</p><p>I also brought up that a Canadian judge has ruled that the U.S. is not a Safe Country for immigration purposes any more, as the U.S. violates human rights of refugees with its harsh treatment. I provided <a href="https://www.bbc.com/news/world-us-canada-53494561">the source</a> for this information. Apparently typically mild Canadians getting upset is not worrisome to my new friends, either.</p><p><em>Law and order</em> was a big concern for the Trump supporters. I pointed out that <strong>six</strong> of the people Trump hired have been <a href="https://www.politifact.com/factchecks/2020/jan/09/facebook-posts/many-more-criminal-indictments-under-trump-reagan-/">criminally indicted</a>, vs <strong>zero</strong> under Obama. My opponent countered that the FBI Lawyer Kevin <a href="https://www.usatoday.com/story/news/politics/2020/08/14/ex-fbi-lawyer-charged-making-false-statements-russia-inquiry/3374315001/">Clinesmith</a> was indicted and plead guilty to falsifying a document in a FISA application, and Trump would get the other criminal Democrats as well. I granted that there are problems with the FISA process and that it has received a lot of <a href="https://www.creators.com/read/judge-napolitano/09/13/is-the-fisa-court-constitutional">constitutional criticism</a>. But Obama likely did not hire Clinesmith so I still hold that Trump has <em>NOT</em> hired the best, and certainly not the law-abiding. I had forgotten about <a href="https://www.foxnews.com/politics/steve-bannon-among-4-arrested-indicted-in-online-fundraising-scheme-doj-announces">Steve Bannon</a> who brings the count to <strong>7:0</strong>.</p><p>They argued that riots are in <em>cities run by Democrat mayors</em>. I responded that generally <a href="https://www.theatlantic.com/ideas/archive/2019/09/brief-history-how-democrats-conquered-city/597955/">more of the Democrats live in cities</a> and you don’t go to the countryside to protest, so you can’t blame the Democrats. My Trump supporting friends were defiant. I should have mentioned that the riots are actually happening in today’s America under Trump, not under Biden.</p><p>My counterpart still felt that Trump has generally done <em>‘a good job.’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eR1MXnyIQexocpF0Z9vcA.jpeg" /><figcaption>Purple is the U.S., Red is Germany, Black is the world as a whole. In case you wondered, the top grey line is Colombia.</figcaption></figure><p>I provided a chart from the OECD comparing U.S. joblessness rates with Germany and the world as a whole. Just before Covid, Germany and the U.S. were about the same, near <strong>4%</strong>. During Covid, joblessness hardly increased in Germany while rising above 2 1/2 <em>to more than 3 times in the U.S.</em>; that’s a lot higher than the world average as well. I pointed out that this is a <em>LOT</em> of <em>unnecessary</em> suffering and destruction of livelihoods. It is unnecessary because other countries have shown that it can be handled better. I received no counterarguments, but no acknowledgement that there may be a problem here, either.</p><p>I was asked if the Democrats have done anything in recent years that did not have a <strong>hidden agenda</strong>. I responded that they (and John McCain) supported health care as a human right like other developed nations do. I got crickets in response.</p><p>In Germany I would count as a conservative. In the U.S. it feels like anything other than purest <em>‘fend for yourself whether you can or not’</em> gets branded as radical leftist. As an example, I believe that education for all through University should be free. As a side effect it might turn analyzing, reasoning and debating into more valued activities across all spheres of society. But I digress.</p><p>I don’t recall any <strong>pro-life arguments</strong> being raised by my new Trump-supporting friends. With 180k+ people dead it would be <em>very</em> hard to argue you are pro life.</p><p>I was granted that I could have my own opinions, but that my counterpart would vote American and I can vote for the other side. I responded that calling me <em>un-American</em> is not an argument. I pointed out that I was interested in an intellectually honest conversation and had provided sources for my data but did not receive any substantial responses to my fact-based points. Instead I got <em>whataboutism</em>. I stated that I was baffled by the <em>imperviousness</em> to facts that was on full display in these threads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*U_48cmsuW4SEIBSbFCN1pQ.jpeg" /></figure><p>I offered that you can be a Republican without supporting Trump. Just google the Lincoln Project or check it out on <a href="https://youtu.be/4TogbPPyQQM">YouTube</a>. I was tagged on a video about a Democratic politician who became a Republican. It didn’t prove that Trump has done a good job and deserves four more years.</p><p>My Trump-supporting friend re-posted a meme asking who else thinks that Trump and Melania did a great job at the Republican convention, and stated that <em>Trump was a Godsend</em>. I responded not with a like, but an angry/upset face. One of my discussion partners felt proud that I was the only <em>‘dissenter’</em>, and my new friend called my posts <em>‘becoming redundant!!’</em>. I don’t think I repeated myself. There was just so much to unpack in how they argued. <em>I thanked them</em> for allowing me to state my views.</p><p><strong>Rioting</strong> was probably the biggest issue for the Trump supporters. So to top it off, I asked that they might consider focusing their attention commensurate with the danger that arises from the issue: Once deaths from riots rise to 180k in six months, I will concede that riots warrant more concern than Covid. I pointed out that <em>unnecessary</em> deaths of Americans from Covid is the equivalent of <strong><em>sixty (!) 9/11s</em></strong>. An <em>actual</em> ‘Godsend’ would not have let this happen.</p><p>That must have pushed my new Trump-supporting friend over the edge. <em>She finally blocked me.</em> As a side effect, most of the above is recounted from memory, any errors or omissions are my own.</p><p>It looks like my counterpart and her friends in the Trump bubble are not interested in an intellectually honest or fact-based conversation. Her blocking me is the Facebook equivalent of sticking fingers in your ears and shouting loudly. But I did get a chance to say what I wanted to say, needed to say. Of course there’s always more. <em>U.S. reputation</em> in the world is destroyed. <em>Small businesses</em> are closing at alarming rates, and may never come back. Low interest rates wipe out <em>pension earnings</em>. The <em>U.S. Dollar</em> has declined by about 10% vs leading other currencies, making Americans poorer and travel more expensive — that is assuming Americans can work their way to becoming welcome abroad again.</p><blockquote>I didn’t think the American Carnage was meant as an election promise.</blockquote><p>Did <em>anything</em> I said inside the Trump bubble register with anyone? I don’t know, but I am concerned that it didn’t. Sam Harris said that <em>conversation is the only tool we have as a society to resolve conflicts, other than war</em>. If conversation breaks down, we have nothing left to bring society forward.</p><p>Covid has shown that the U.S. is <em>more vulnerable</em> in more ways than commonly thought. Health issues should not be political issues. One thing that Trump certainly helped destroy is <em>American exceptionalism</em>. I understand that Trump supporters may be frightened of the future, and running to a populist may feel comforting. But denial is <strong>not</strong> the only way to deal with the monstrosity of the failures of this presidency. We need a reasoned handling of the disastrous situation. We need every vote. <em>I believe we need to discuss these issues with people who do not agree with us</em>, however frustrating it may be. If you know any Trump supporter, engage him or her. If you are a Trump supporter, engage Democrats, discuss but also listen with an open mind. Whoever you are, don’t just discuss within your own camp. <em>It makes America weaker.</em> The future of America is on the line. America can do this. But America needs you.</p><p><em>It’s somewhat ironic</em> that I am a German observing this. Maybe there are obvious reasons why. Germans used to enjoy believing in authorities, and it went terribly wrong for them. If you ever wondered how the Germans allowed Hitler to come and stay in power, <strong>now you know</strong>. In school, I was trained to recognize propaganda, and I hope I learned critical thinking. I was taught history.</p><blockquote>When I hear about unidentified forces with unmarked vans operating at night, my alarm bells go off.</blockquote><p>Hitler’s Gestapo, the secret state police, would come early in the morning to take people away. It was terrifying. I got an ironic ‘Trump for Führer 2016’ t-shirt when it was still funny that a TV show host would want to run the country. I was concerned then but <em>laughed it off</em>. I am not laughing anymore. As a German, I know from my own country’s history that it is very hard to get rid of a dictator once you have him.</p><p>I am married to a U.S. citizen so I have good reason to care how well America does. I came to the U.S. years ago as <em>the promised land</em>, and California as the pinnacle of software development. <strong>I like America.</strong> Not being a U.S. national means I can’t vote myself. Please don’t disappoint me at the next elections, or in the run-up. If you do, someday I might be carried off to some cage or camp for having been a <em>dissenter</em>. But a German consular officer would likely stand up for me. U.S. citizens will <em>not</em> have the same privilege. <strong>It breaks my heart.</strong></p><p>Latest update: Through a follower on Medium I found a very illuminating article showing <a href="https://medium.com/progressively-speaking/3-things-that-wont-change-a-trump-voter-s-mind-and-3-that-might-5923936069c5">how I probably could have done a lot better</a>. Worth the read!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5861456fd9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three Steps to Using a Web IDE to Develop and Build in the Cloud]]></title>
            <link>https://medium.com/@WolfgangGehner/three-steps-to-using-a-web-ide-to-develop-and-build-in-the-cloud-d88586255c67?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d88586255c67</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 18:29:12 GMT</pubDate>
            <atom:updated>2018-09-04T21:59:54.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Czx6pykNu_Q2jCMsCcNphA.png" /></figure><p>I believe that using a browser as an IDE is the future.</p><p>A lot of people easily switched to VS Code; moving to a Web IDE will be just as easy. With a Web IDE you could develop on an iPad or Chromebook at a coffee shop. A Web IDE makes source code safer as the entire code ‘doesn’t walk out the door’ with the developer. It also makes it easier to onboard new developers: I don’t have to worry about their local setup.</p><p>Using a Web IDE should increase productivity. In fact, I see using a Web IDE as a part of the low-code movement. This is why it is one of the 10 pillars for <a href="https://metabake.org/">METABAKE.ORG</a>.</p><p>So let’s do the three steps to developing in the Cloud, beginning with a little prep work.</p><h3>Preparation: Create a test app and deploy to S3</h3><p>a) With your favorite editor, create an index.html:</p><pre>&lt;head/&gt;<br>&lt;body&gt;<br>   &lt;p&gt;Oh hi&lt;/p&gt;<br>&lt;/body&gt;</pre><p>b) Setup AWS S3 as your HTTP server and mount it to a drive on your computer. Follow <a href="http://github.com/metabake/_mBake/blob/master/_doc/docs/servl1.md">these instructions</a>.</p><p>c) Copy the index.html to the mounted drive, and view it on the web. The ‘Endpoint URL’ will look something like this:<br>http://YOUR-BUCKET.s3-website-us-east-1.amazonaws.com</p><p>At this point, any edits of index.html in your mounted drive should show up when you refresh the browser!</p><p>Note: If you get stuck, you can post a question at<br><a href="http://chat.metabake.org/">http://chat.metabake.org</a></p><h3>Step 1: Connect to the test app from the Web IDE</h3><p>a) Create a <a href="https://codeanywhere.com/">CodeAnywhere</a> (CA) account and login.</p><p>b) In CA, connect to S3, using your AWS Access Key ID and Secret Access Key.</p><p>c) Edit index.html in CA and save. See the edits reflected at<br>http://YOUR-BUCKET.s3-website-us-east-1.amazonaws.com</p><p>How much fun was that!</p><h3>Step 2: Connect to the app from a Linux container</h3><p>a) Create a Linux container in the Cloud (e.g. an Ubuntu instance on Digital Ocean).</p><p>b) In CA, connect to the Linux container. Via CA, SSH into it.</p><p>c) In Linux (SSH), mount S3 to a Linux folder using ‘goofys’. Follow <a href="https://github.com/metabake/Meta/blob/master/_doc/docs/ca.md">these Cloud Mount instructions</a>.</p><p>You should be able to see your S3 bucket mounted as a folder in the Linux file system.</p><p>Now you can edit your S3 web app from a CA Linux connection. Why would that be useful? Let’s see step 3.</p><h3>Step 3: Run a custom build script via CA</h3><p>a) Create a simple build script, using gulp, grunt, or our own ‘mbake CLI’ (via npm -g i mbake; more at <a href="https://metabake.org/">https://metabake.org</a>)</p><p>b) Setup your build script to ‘watch’ (Metabake/mbake does this out of the box.)</p><p>FUN! You are now a team player! If any of your team members edits your S3 web app (as our Step 1) — your Linux box will ‘auto build’ it.</p><p>You would be amazed by how much faster the Cloud build is compared to a build on your developer machine.</p><h3>Get to the next level with automatic programming</h3><p>Metabake includes a build server written in pure JavaScript that can be customized to generate code. With Metabake you can go from writing code to instructing a machine to write code for you. This follows the ‘Less Coding’ philosophy and will get you to another level of productivity.</p><p>Ask us to help you using <a href="https://metabake.org/">Metabake</a> for automatic programming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d88586255c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon vs. Google for Cloud 2.0 web apps — extreme server-less for data and authentication]]></title>
            <link>https://medium.com/@WolfgangGehner/amazon-vs-google-for-cloud-2-0-web-apps-extreme-server-less-for-data-and-authentication-cc7fa247e853?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc7fa247e853</guid>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Sun, 05 Aug 2018 19:12:19 GMT</pubDate>
            <atom:updated>2018-09-04T21:52:09.421Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LdDDLZEsYMcpuNJ14S7vqg.png" /></figure><p>A decade ago we grudgingly moved from data centers to the Cloud Version 1: AWS, Google, etc. These days we are moving to Cloud Version 2. I see Cloud 2.0 as ‘extreme server-less’ and ‘client-side only’. This means that you only write code for the browser or your mobile app; you don’t write <strong>any</strong> code that runs on the server. How many times have we all written user authentication? With Cloud 2.0, you will not ever have to do that again. How awesome this that? Let’s take a closer look.</p><h3>Step 1: Which platform to host your static files?</h3><p>AWS S3 static hosting is more popular than Firebase. One reason may be that that you can mount an S3 ‘bucket’ filesystem as a drive on your local development machine; Firebase doesn’t allow that. Having your dev or prod server files accessible under, say, “P:\” means that you don’t have to FTP your files any more. Any edits in ‘your’ drive will automatically be reflected on that server and in the web browser. That makes for a nice bump in developer productivity. I use WinDrive to mount S3 buckets.</p><h3>Step 2: Which database?</h3><p>Just because you host your static files on S3 doesn’t mean that you are tied to AWS for everything else. I want to use a best-of-breed strategy. This leads me to a multi-cloud approach.</p><p>For database CRUD operations (create-read-update-delete) we had to learn new database systems, including no-SQL types such as Mongo. Then we had to write ORM, REST, and we had to operate them securely. It’s time to learn again!</p><p>Google Firestore (Version 2 of Firebase) seems to be a better database than AWS Amplify. While version 1 of Firebase felt confusing, its version 2 — Firestore — has come a long way in terms of ease of use and ease of client-side JavaScript coding. And that’s all we do with the database in Cloud 2.0: we write client-side JavaScript against it. As a result, we choose Firestore as our database.</p><h3>Step 3: Which user authentication?</h3><p>You can use either AWS Amplify/Cognito/S3 or Google Firebase/Firestore to avoid rolling your own user authentication. Others like Auth0 or Okta offer similar functionalities. I rate them less attractive while they want to inject their own branding into the UI of my app.</p><p>Using Firestore for database CRUD leads us to using Firebase for user authentication.</p><p>See example code at <a href="https://github.com/metabake/examples/tree/master/examples/crud/screen">https://github.com/metabake/examples/tree/master/examples/crud/screen</a></p><p>You can do:</p><pre>npm -g i mbake<br>mbake -c</pre><p>to get a sample Cloud 2.0 CRUD and user authentication app from METABAKE.ORG. It uses S3 hosting and a Firestore database.</p><p>The sample code shows how to register with an email address:</p><pre>auth.createUserWithEmailAndPassword(email,pswd)</pre><p>Of course it also offers user log-in via Facebook, Twitter, Gmail, etc — all without <strong>any</strong> serverside coding!</p><p>Other snippets:</p><pre>auth.signInWithEmailAndPassword(email,pswd)<br>auth.signOut()<br>auth.sendPasswordResetEmail(email)</pre><h3>Conclusion</h3><p>We need to learn new skills to use Cloud 2.0. That also means unlearning old habits. Like when we went from 2GL to 3GL, we now do less things: we write less code — and different code.</p><p>Your next step would be to learn how to do ‘low-code’ data binding. Cloud 2.0 also means moving past old approaches like Vue, Angular or React.</p><p>To learn this approach, check out <a href="https://github.com/metabake">METABAKE.ORG</a>, where we evangelize the extreme server-less, low-code Cloud 2.0.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc7fa247e853" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Pug for static and dynamic data binding]]></title>
            <link>https://medium.com/@WolfgangGehner/using-pug-for-static-and-dynamic-data-binding-56a1cc378b81?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/56a1cc378b81</guid>
            <category><![CDATA[pug]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[data-binding]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[web-app-development]]></category>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Mon, 30 Jul 2018 21:37:42 GMT</pubDate>
            <atom:updated>2018-10-02T18:45:52.078Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-5JAxot-Y105enm4VvOxg.png" /></figure><p>You may have heard of <em>Pug</em> — the Node Express rendering engine uses it. If not, you can think of it as <em>Markdown</em> but with more features.</p><p>Pug markup translates 1:1 to HTML, but without having to close a tag. On a previous Wordpress project, someone changed a CSS, and it broke the layout on some browsers. 10 (ten!) days later, we found the bug: It was not CSS, but that someone had not closed a tag. With Pug that would not have happened.</p><p>Some CMS systems use Markdown for content. However, you can’t change <em>layouts</em> or page composition in Markdown. In Pug, you can. The pug ‘include’ feature helps with sharing layouts across multiple pages.</p><p>Pug also has <em>variables</em>. You can use that for <em>static data binding</em>. You don’t need to run Node Express to be able to use Pug. To setup, first install a CLI that can merge Pug with data files:</p><pre><strong>yarn global add mbake</strong></pre><p>Now, using your editor, create ‘dat.yaml’ with:</p><pre>key1: value1</pre><p>and create ‘index.pug’ with:</p><pre>doctype html<br>html<br>   head<br>   body<br>      p #{<strong>key1</strong>}</pre><p>and now run:</p><pre><strong>mbake .</strong></pre><p>It will generate index.html with</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>   &lt;head/&gt;<br>   &lt;body&gt;<br>      &lt;p&gt;<strong>value1</strong>&lt;/p&gt;<br>   &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Imagine what you can do with that. Static data binding with Pug is a great foundation for statically generated sites. Check out the static site generators Hugo, Jekyll and Metabake. We like Metabake because we wrote it :-)</p><p>You can also use Pug for <em>dynamic data binding</em>. That is when data is combined with markup runtime, i.e. in the browser. That allows you to display data that comes from JSON files or API calls.</p><p>Create a file ‘first-tag.pug’ with:</p><pre>first-tag<br>   p Dynamic Data:<br>   p { num }</pre><pre>  script.<br>     doSomething(arg) {<br>       console.log(&#39;arg: &#39;, arg)<br>       this.update({num: arg})<br>     }</pre><p>When doSomething() gets called, it updates the {num}.</p><p>Run this to to generate a .js file that you can include in your page:</p><pre>mbake -t .</pre><p>For a complete example, see <a href="https://github.com/metabake/examples/tree/master/examples/firo/riotFirst">https://github.com/metabake/examples/tree/master/examples/firo/riotFirst</a></p><p>You can read up more at <a href="https://riotjs.com/">https://riotjs.com</a> and <a href="http://doc.metabake.org/mbake/">http://doc.metabake.org/mbake/</a>.</p><p>In summary, you can use Pug for layout, static binding and dynamic binding. Pug is declarative and ‘low-code’. You’ll find that it improves your development productivity a lot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56a1cc378b81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Expect from a Front-end Architecture]]></title>
            <link>https://medium.com/statuscode/what-i-expect-from-a-front-end-architecture-31b9be4498af?source=rss-d1e5de083abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/31b9be4498af</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Wolfgang Gehner]]></dc:creator>
            <pubDate>Mon, 11 Sep 2017 16:36:59 GMT</pubDate>
            <atom:updated>2017-09-15T10:03:10.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nKT5PWQ9uCG-wuQgVQNozQ.jpeg" /></figure><p>As a developer, in simpler times you merrily coded away on your web app. Well, you <em>did</em> have to use someone with CSS skills for this annoying thing called <em>styling</em>, but CSS was broken anyway, right? Over the years, your company had been forced to adopt an ‘add only’ policy for CSS, because anyone trying to clean up a stylesheet would likely break something. You inherited a giant CSS that everyone, including you, was loath to touch.</p><p>Then, something totally unexpected happened: CSS preprocessors like SASS fixed CSS and made stylesheets actually manageable. Almost overnight it became <em>possible</em> to create a working design system or front-end architecture. Still, programmers continue to see graphic design and styling as something outside their domain, and for good reason: designers are simply better at it. Writing good code is hard enough.</p><p>And then there are web frameworks. In simpler times, you could see your current web framework as the magic solution to most, if not all your front-end design issues. In addition, the web framework would ensure that you create apps that are maintainable and future-safe. However, the sad reality is that web frameworks have had a short half-life. The last years have seen a rapid succession of candidates to be considered ‘the best’: Backbone, Knockout, Ember, Angular, Angular 2, React, Vue, Riot and Polymer. History shows that what you would pick today is likely not what you would pick eighteen months from now.</p><p>Assuming you don’t want to start from scratch and rewrite everything every eighteen months, that presents your organization with a great architectural challenge. Is there a front-end architecture that helps developers create apps that are visually attractive, maintainable <em>and</em> future-safe? If this architecture exists, what do I want and need from it? As I go though this wishlist, you may ask yourself how well your favorite web framework, forcibly invented by coders for coders, actually addresses these items.</p><p><strong>I want the CSS to be maintainable.</strong></p><p>I want the designers, not the developers, to be able to create <em>and maintain</em> the CSS. To provide that maintainability is the hard part. A designer should be able to edit styles as an application evolves over the years. He shouldn’t have to wrestle with a developer to get the changes implemented. Without naming any specific web frameworks, I am not convinced that wrapping CSS in JavaScript helps meet that objective. It should be easy to apply design guidelines over time, in the actual place <em>where the CSS meets the code</em>. A more appealing UI has never hurt customer adoption or satisfaction.</p><p><strong>I want the HTML to be maintainable.</strong></p><p>The same applies to HTML: I want designers to be able to create and maintain HTML. Most developers don’t really think of HTML as their favorite thing either. I prefer web frameworks whose HTML actually looks like, well, HTML. But even if I don’t have a choice, I certainly would not like the HTML markup intricately woven into JavaScript code. HTML is simply more accessible and editable by the designer if it is located in a separate (yes, HTML!) file. Also, I look for non-framework utilities like <em>Pug</em> to help create and maintain well-structured HTML.</p><p><strong>I want a maximum of HTML (and all CSS) to be static.</strong></p><p><em>Static</em> means it can be cached at the <em>edge</em>, in a content delivery network (CDN). UI performance is just better that way. Users prefer a more performant UI, and are more likely to stay around. I prefer JavaScript to fetch dynamic data, not dynamic HTML (Exception: server-side rendering). Access to the dynamic data can still be password-protected. Moustache-style libraries help render data on the fly, but the HTML templates they use can still be comprehensible to designers. I like the UI to be defined declaratively, with HTML. It’s just easier to understand (and maintain) that way. I want the new developer on the project to have a shorter learning curve and be more productive faster.</p><p><strong>I want the solution to allow SEO.</strong></p><p>Whether the app is public and requires SEO, or private and would benefit from fulltext-search, SEO too often comes as an afterthought. A front-end architecture should make SEO easier rather than hinder it. The developer should not need to create a whole additional app just to make the content indexable or searchable. Of course, some data is just too structured to be worthy of full-text search, such as charts rendered client-side in JavaScript. The web framework should support rendering textual information on the server-side, so that crawlers can find it in the rendered page HTML. A lot of web components should be <em>hybrid</em>, with initial HTML (and possibly relevant CSS fragments) rendered on the server, while additional interactivity can be provided in the client. More searchable apps improve adoption and user satisfaction.</p><p><strong>I want the solution to provide a ‘rich client feel’.</strong></p><p>Both web apps and web sites should be able to provide a ‘rich client feel’. Just like in a native app, on page transitions I only want to see the content replaced that actually changes, and the ‘App-Shell’ (menu and such) to remain, without <em>page flash</em>. A front-end architecture should allow for these kinds of smooth page and content transitions. CSS transitions should be part of the solution. Again, a richer, more appealing UI helps capture and retain users.</p><p><strong>I don’t want to be married to a specific web framework.</strong></p><p>It should be easy for the app developer to apply the front-end architecture and use it with the web framework at hand. The developer should also be able to use more than one web framework <em>per app</em> at a time: to add new functionality with a newer, more popular framework, the developer shouldn’t have to recreate the entire app from scratch. This requires some careful architecting: it likely means to stay away from the two features that most commonly create web-framework lock-in: custom navigation mechanisms (routers) and framework-specific component communication mechanisms. The front-end architecture itself must be web framework-agnostic.</p><p><strong>I want to reuse the same architecture for web, mobile web and apps installed on a mobile device.</strong></p><p>Using responsive design is a no-brainer. In addition, apps installed on a smartphone can use an in-app browser to render the same HTML as a web app does. If we use page or content transitions (to be provided by the front-end architecture), we can get the same smooth UI feel as a native app. We use development resources better if we refocus advanced Android SDK/iOS development skills on using APIs rather than on achieving the same UI effects through different means.</p><p><strong>I want it to handle Accelerated Mobile Pages (AMP).</strong></p><p>AMP fulfills a business need and is here to stay, so I want it to be supported. It helps provide faster responses to web and mobile users. Luckily, AMP allows me full access to the power of CSS, but it requires me to keep CSS size small. If parts of my UI need advanced JavaScript functionalities which AMP itself prohibits, I can put them in an &lt;amp-iframe&gt;.</p><p><strong>I want the architecture to last at least 5 years.</strong></p><p>It’s not an architecture if you have to scrap it every year. Web frameworks are particularly guilty in that field. It is almost like there is a new ‘flavor of the month’. The differences between Angular 1 and Angular 2 are striking; the same is true for Polymer 1, Polymer 2 and even Polymer 3. I am not arguing that they don’t benefit from the changes… Structurally, the front-end architecture should be a rock in the sea of ever-evolving web frameworks. But UI is the face of the app, it is what users see and like or dislike. That face should be as attractive as ever possible. In an evolving landscape of web frameworks the front-end architecture must be solid <em>AND</em> designed for change. That will help meet the business needs and the bottom line for years to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nKT5PWQ9uCG-wuQgVQNozQ.jpeg" /></figure><p>Summary: To date, the places where design and code intersect remain points of friction. With a focus on the business objectives, the front-end architect needs to understand the needs of programmers and their code to be able to provide efficient means for great design to pervade the solution.</p><blockquote><strong><em>About the author:</em></strong> His name has always been <a href="http://dilbert.com/strip/2010-05-16">Wolfgang</a>. You can find pieces of his work at<a href="https://www.webcomponents.org/collection/topseed/topseed-webcomps"> webcomponents.org</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b9be4498af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/statuscode/what-i-expect-from-a-front-end-architecture-31b9be4498af">What I Expect from a Front-end Architecture</a> was originally published in <a href="https://medium.com/statuscode">Statuscode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>