<?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>Forem: Justin Léger</title>
    <description>The latest articles on Forem by Justin Léger (@justin).</description>
    <link>https://forem.com/justin</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%2F15401%2F0b8a3d6e-92b4-492b-a4b3-dd2937e987f1.jpg</url>
      <title>Forem: Justin Léger</title>
      <link>https://forem.com/justin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/justin"/>
    <language>en</language>
    <item>
      <title>How to lose $1000 quickly</title>
      <dc:creator>Justin Léger</dc:creator>
      <pubDate>Sat, 14 Mar 2020 03:51:35 +0000</pubDate>
      <link>https://forem.com/famingo/how-to-lose-1000-quickly-4n36</link>
      <guid>https://forem.com/famingo/how-to-lose-1000-quickly-4n36</guid>
      <description>&lt;p&gt;Start a business they say. It’ll be fun they say&lt;/p&gt;

&lt;p&gt;It all started an evening in December 2019. My friend &lt;a href="https://github.com/almiche"&gt;Michel&lt;/a&gt; was looking at used freight boats on AliExpress (as one does). He paused for a minute and said “Imagine if taco bell would sell pizza.” That was an interesting thought. What if we sold pizza? Could we even run our own company? We thought so.&lt;/p&gt;

&lt;h2&gt;
  
  
  A corporation, the solution to a problem we didn’t really have
&lt;/h2&gt;

&lt;p&gt;We always discussed about having a company. It would be an umbrella to our various projects. We came up with a name: &lt;strong&gt;Famingo&lt;/strong&gt;. One would believe that we mistyped flamingo and went with it, they would be correct (but you didn’t hear it from me). Famingo would be the culmination of all our previous entrepreneurial ventures. Those ranged from dropshipping fidget spinners to creating a &lt;a href="https://apps.apple.com/ca/app/minicalc-watch-calculator/id1217483396"&gt;revolutionary calculator&lt;/a&gt; for the Apple Watch. We were ready for the big leagues. We found a promotion to incorporate a company for $50. The offer was too good to pass on. We pulled out our chequebooks and started signing. We had our Meisterstück Classique 164 ready but they used &lt;a href="https://docusign.com/"&gt;DocuSign&lt;/a&gt;. And that was that, we were finally incorporated in the state of Delaware. Founder, CEO, and President to a company that didn’t produce anything worthwhile but we existed, and that’s what mattered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first “oh shit” moment
&lt;/h2&gt;

&lt;p&gt;To be quite frank, we didn’t do much after creating the company. We just liked to say that we were cofounders of this stealth startup incorporated in Delaware. It was well worth the $50. We started buying &lt;a href="https://patagonia.com/"&gt;Patagonia&lt;/a&gt; as we felt like we joined the prestigious club of startup founders. It was the beginning of our legacy.&lt;/p&gt;

&lt;p&gt;Then we got mail. A nice letter from the IRS. Something like “hey, you made a company and you’ll have to pay us by the end of the year :D”. What a pleasant surprise! I called Michel and told him I think we messed up. He agreed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The second “oh shit” moment
&lt;/h2&gt;

&lt;p&gt;Of course we needed a Silicon Valley Bank account. Although Michel and I use &lt;a href="https://tangerine.ca"&gt;Tangerine&lt;/a&gt; for banking (orange key: 41586712S1), we felt like our company wouldn’t be official if we didn’t have a bank account for our company. We checked the little box and requested one. It came with a price of $25/month, so we had to wire money to our SVB account just to pay the monthly fee. The card looks okay and the app is not that great. This was a mistake.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small intermission
&lt;/h2&gt;

&lt;p&gt;As the months passed, Michel and I started pitching to each other the worst business ideas we could think of. Nothing was off limits from housing insulation made from shredded &lt;a href="https://www.patagonia.ca/home/"&gt;Patagonia&lt;/a&gt; apparel to customizable sleeves for sleeveless vests. Those were hard to beat, but we finally settled on creating an asynchronous standup bot in order to compete with other &lt;a href="https://geekbot.com/"&gt;competitors&lt;/a&gt; in the field who will remain nameless. This was a noble cause however a few more months passed and no progress was made.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wasting time
&lt;/h2&gt;

&lt;p&gt;Every other day, I started writing some small meaningless apps to kill time after work. I embarked on a project with my friend &lt;a href="https://github.com/martelogan"&gt;Logan&lt;/a&gt;: &lt;strong&gt;&lt;a href="https://blog.neural.shop"&gt;neural.shop&lt;/a&gt;&lt;/strong&gt;. I also wrote a new gem called &lt;strong&gt;&lt;a href="https://github.com/jusleg/gitgud"&gt;gitgud&lt;/a&gt;&lt;/strong&gt;. I found it nice to work on fun projects as there is no pressure to succeed since it’s already doomed from the start.&lt;/p&gt;

&lt;p&gt;I read online that you need quotes to make your article sound legit. Here’s one:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;They like, “Savage, why you got a 12 car garage and you only got 6 cars?”&lt;br&gt;
— Esteemed British artist 21 Savage&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The real “holy shit” moment
&lt;/h2&gt;

&lt;p&gt;We discovered we need to pay a franchise tax in Delaware. We also discovered this after the deadline; therefore, we are on the hook for an extra $200. When we first logged in to the system to pay the tax, we almost got a heart attack. The system was showing that we owed $41,265.86. The real number is around $400 but we are now on the hook for an extra $600.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P6cXVgvj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/i/u1v9gbnz9wxq3gwh7x3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P6cXVgvj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/i/u1v9gbnz9wxq3gwh7x3s.png" alt="Taxes owed (ouch)" width="800" height="137"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost behind a C corporation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;$400 for franchise tax&lt;/li&gt;
&lt;li&gt;$200 Penalty fee&lt;/li&gt;
&lt;li&gt;$300 SVB bank account fee&lt;/li&gt;
&lt;li&gt;$50 incorporation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Total: $950 (Pretty expensive for a joke)&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How we are going to fix it
&lt;/h2&gt;

&lt;p&gt;Starting today, Famingo labs will be our umbrella company for all of our projects moving forward. This includes &lt;a href="https://apps.apple.com/ca/app/minicalc-watch-calculator/id1217483396"&gt;MiniCalc&lt;/a&gt;, &lt;a href="https://github.com/jusleg/quotify-ruby"&gt;Quotify&lt;/a&gt;, &lt;a href="https://github.com/jusleg/slackify"&gt;Slackify&lt;/a&gt;, &lt;a href="https://github.com/jusleg/regexify"&gt;Regexify&lt;/a&gt;, &lt;a href="https://github.com/almiche/IOT-Hotel-Room-Protection"&gt;IoT Doorhanger&lt;/a&gt;, &lt;a href="https://github.com/almiche/GoHereGoThere"&gt;Go Here Go There&lt;/a&gt;, &lt;a href="https://github.com/jusleg/gitgud"&gt;gitgud&lt;/a&gt;, &lt;a href="https://rubygems.org/gems/blackrug"&gt;blackrug&lt;/a&gt;, and &lt;a href="https://blog.neural.shop/"&gt;neural.shop&lt;/a&gt;. We now need to make over $950 to cover this tax bill. We’ll start some random project and we will document our journey to corporation price freedom. This is only the start to a bunch of shitty projects.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[EXPLETIVE] swear they passed us, they doin’ too much&lt;br&gt;
Haven’t done my taxes, I’m too turnt up&lt;br&gt;
— Aubrey Drake Graham&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;END OF ARTICLE&lt;/p&gt;




&lt;p&gt;This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.&lt;/p&gt;

&lt;p&gt;Famingo Inc. 2020 🦩&lt;/p&gt;

</description>
      <category>startup</category>
      <category>business</category>
      <category>learning</category>
    </item>
    <item>
      <title>Making a calculator isn’t that easy</title>
      <dc:creator>Justin Léger</dc:creator>
      <pubDate>Sat, 15 Apr 2017 21:35:47 +0000</pubDate>
      <link>https://forem.com/justin/making-a-calculator-isnt-that-easy</link>
      <guid>https://forem.com/justin/making-a-calculator-isnt-that-easy</guid>
      <description>&lt;p&gt;I bought my Apple Watch as a motivation to build my first iOS app. I knew that I didn’t really need one but I figured it was an investment that would push me to learn Swift, Apple’s programming language. I was not specifically looking to build a watch app, but I imagined that the constraints from a small screen would make the interface simple and limit functionality; therefore, making the app simple and easy to code.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 1: Find the idea
&lt;/h3&gt;

&lt;p&gt;I wanted to build something simple that I could build every aspect of it. I didn't want to rely on libraries or frameworks for my first app. I wanted to get my hands dirty and code everything myself. For this reason, I wanted to build an app that was self contained, no network connection or external data source. I thought about building a calculator. I didn’t think twice about it and started doing some research.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffe0smbt7mh0t17bv0v9e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffe0smbt7mh0t17bv0v9e.png" alt="MiniCalc complication icon"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Look at the competition and find weaknesses
&lt;/h3&gt;

&lt;p&gt;I knew that there were big player in the iOS calculator category. My two case studies were &lt;a href="http://www.pcalc.com/iphone/index.html" rel="noopener noreferrer"&gt;PCalc&lt;/a&gt; and &lt;a href="https://tapbots.com/calcbot/" rel="noopener noreferrer"&gt;Calcbot&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Case 1: PCalc&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fr2lkm1d2xs6attwvclqw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fr2lkm1d2xs6attwvclqw.jpeg" alt="PCalc screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the PCalc application, the operations are not displayed on the screen. They are available via a second page. Multiple ways of input are available. 15 buttons on the main screen.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Case 2: Calcbot&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqqim8b30h4cuqkilu6o.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqqim8b30h4cuqkilu6o.jpeg" alt="Calcbot screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Calcbot has 12 buttons visible on the main interface. It support four operations (+ âˆ’ âœ• Ã·) and they are available via a force touch menu.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Findings&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Because of the small screen of the Apple Watch, the app should have as few buttons as possible to make the remaining buttons bigger. The app should also offer a fast way to input the operations.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;The solution&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt; Remove operation buttons from main interface&lt;/li&gt;
&lt;li&gt; Main operations are done using swipes&lt;/li&gt;
&lt;li&gt; Least frequently used operations are done using force touch&lt;/li&gt;
&lt;li&gt; Offer a complication for quick access from the watch face&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Build the watch app
&lt;/h3&gt;

&lt;p&gt;The main part of the watch app was done in 24h. The interface is pretty simple. I made it as simple as possible since I did not know a lot about layouts on the watch. The limitations were actually helpful since they guided me to build the interface. After day 1, the app was functional.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fdu97sqco6hfulnbtc9o8.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fdu97sqco6hfulnbtc9o8.jpeg" alt="MiniCalc screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Float vs double&lt;/strong&gt;
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;1.111111 â‰  1.111111111111111&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A big aspect of the calculator was precision. I wanted to have the highest precision that would fit in the screen. Float was perfect for the watch as the small number of decimals would fit in the screen. Double was problematic since it is has almost the double of decimal places. I wanted the best precision, so I picked double.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;New feature: “varying precision&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;To have the highest precision possible on the watch screen, the precision (number of significant digits) varies based on the sign, number of actual digits, exponent sign and size. Basically, the number precision is reformatted to fit the screen. Although the precision change on the display, the actual double value is always used for calculations. &lt;a href="https://github.com/almiche" rel="noopener noreferrer"&gt;Michel Chatmajian&lt;/a&gt; helped me implement this feature.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 4: Make a logo&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I found a gradient on &lt;a href="https://webgradients.com/" rel="noopener noreferrer"&gt;webgradients.com&lt;/a&gt; and sent it to Michel. He proceeded to place an equal sign in the middle. This was the resulting icon:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffdy6t9ey7jt793yc4zmo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffdy6t9ey7jt793yc4zmo.png" alt="final logo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 5: Make the iPhone app&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Since the app calculator was only for the watch, I didn't bother making a phone calculator. The phone app would be used to explain how to use the watch app. This made my life much easier as I did not have to build a complex layout. It had two view: main view and instruction view. I also cheated by using a webview for the instruction view. I coded the whole thing in HTML/CSS &lt;strong&gt;#win&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Build it, pack it, ship it (and wait)
&lt;/h3&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-843902305384763392-122" src="https://platform.twitter.com/embed/Tweet.html?id=843902305384763392"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-843902305384763392-122');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=843902305384763392&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Success!
&lt;/h3&gt;

&lt;p&gt;MiniCalc was approved on the App Store March 23, 2017&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/lnlAifQdenMxW/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/lnlAifQdenMxW/giphy.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to try MiniCalc, you can download it on the App Store&lt;/p&gt;

&lt;p&gt;&lt;a href="http://appsto.re/ca/ekvKib.i" rel="noopener noreferrer"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2A43FJTfxdYmYgxla3UD72iw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For more information about my other projects, you can check my personal website &lt;a href="https://justinleger.ca/" rel="noopener noreferrer"&gt;justinleger.ca&lt;/a&gt;&lt;/p&gt;

</description>
      <category>swift</category>
      <category>ios</category>
      <category>app</category>
      <category>story</category>
    </item>
    <item>
      <title>Hi, I'm Justin Léger</title>
      <dc:creator>Justin Léger</dc:creator>
      <pubDate>Wed, 05 Apr 2017 19:58:24 +0000</pubDate>
      <link>https://forem.com/justin/hi-im-justin-lger</link>
      <guid>https://forem.com/justin/hi-im-justin-lger</guid>
      <description>&lt;p&gt;I have been coding for 5 years.&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/jusleg" rel="noopener noreferrer"&gt;jusleg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I live in Montreal.&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: Java, Ruby, Python, JS.&lt;/p&gt;

&lt;p&gt;I am currently learning more about blockchain.&lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
