teleren/devto huggingface dataset:
A collaborative collection of Interview questions
Tags: career, hiring, help, interview
Published: 2019-12-05 21:57:39

Ideally, the interview process is a conversation between equal parties. Not among superiors and inferior – it's hard to find good companies because it's even harder for them to find good employees. You, as Interviewee, should have a way to distinguish good from the bad - this list of questions will help you facilitate that process. So that's why this resource exists: https://counter-interview.dev

Feel free to add new questions!
Starting late: learning to code at 40
Tags: beginners, java, codenewbie, 100daysofcode
Published: 2019-12-05 20:51:33

I've been meaning to start a blog/YouTube/podcast/something for a good while now, as a way to start documenting my programming journey. 

A little about me, I'm 42, have a wife, kid, 2 dogs and a cat, and have (mostly) worked bs jobs in order to make ends meet. 

I'm sure there's a lot of people in my shoes, trying to get a start in a new career, and coming to software development later than most, so I'm hoping maybe this might help some people who are in the same boat. 

Honestly, I've been trying to learn to code on and off since 2016-2017. I've learned some basics, but I've struggled to retain things in the past. I hopped around a bunch, got stuck in Udemy Course Hell(more on that later), had a child, a couple of major deaths in the family, and a huge cross country move plus a bunch of other stuff that threw me off track.

So here I am, 2ish years later making another go of it.

Why?

For one, I'm a creative person. Programming is, in a lot of ways, the ultimate creative experience. For two, I want to do something I love for a living. I've done mostly career-dead jobs. I want something more. For three, I want to be home more. I took a job in the oil field in texas, because good jobs where I live in Arkansas are scarce. It pays decent, but I'm away for over a month at a time, with maybe a week off in between. My son is almost 4, and I'm missing a lot of his life.

What am I learning? I'm currently going through Tim Buchalca's insanely huge Java Master Class for Developers. It's a 75+ hour long course jam packed with everything a person would need to learn Java. I'm saying that as someone who has bought and tried more courses than I should have, but if I figured out one thing doing that, it is how I learn and what I needed to do to progress.

This is getting kind of long, so I'll continue in the next one.
Demo of Figma Auto Layout (Like Flexbox)
Tags: figma, design, css, flexbox
Published: 2019-12-05 20:37:05

If you're a web developer that's been wanting to up your **design skills** it's never been a better time to learn to use a design tool like **Figma**. 

One of the challenges I had early with Figma was having to manually position and align elements.

It felt strange coming from the browser where the elements automatically stack or sit beside each other.

Luckily Figma just released a new feature: **Auto Layout**, which should make it easier for developers to work with layouts.

If you're familiar with **Flexbox** then you'll have an easier time understanding Auto Layout. 

Auto Layout will allow your elements to arrange and rearrange themselves inside a Frame (*one way to think of Frames is as containers*). 

You can watch a quick demonstration of Auto Layout showing how to quickly create multiple variations of a "testimonial" element.

##Auto Layout Demo

[Figma Auto Layout](https://www.loom.com/share/0af535369ee34b678151d07b79572322)
Drop Down List Category(Daily, Weekly, Yearly) with search box using HTML, jQuery and PHP
Tags: jquery, html, php
Published: 2019-12-05 20:19:20

Drop Down List Category(Daily, Weekly, Yearly) with search box using jQuery with PHP

So today, I will teach you how you do it

HTML, first you create a drop down list and two textbox

<select class="category">
   <option value="1">Daily</option>
   <option value="2">Weekly</option>
   <option value="3">Monthly</option>
   <option value="4">Search (Slow Search)</option>
</select>
<input type="date" class="date1" hidden> <label class="label_to" hidden> To </label> 
<input type="date" class="date2" hidden>

jQuery code

$(document).ready(function(){
  $(".category").change(function(){
   if($(".category option:selected").val()=="4"){
     $(".date1").fadeIn();
     $(".label_to").fadeIn();
     $(".date2").fadeIn();
   }
   else{
     $(".date1").fadeOut();
     $(".label_to").fadeOut();
     $(".date2").fadeOut();   
   }
  });
)};

PHP Code

<?php
//Declare variable
$date1;
$date2;

//Set Timezone
date_default_timezone_set("America/New_York");
//Daily 
if($_POST['category']==1){
     $date1=date("Y-m-d");
     $date2=date("Y-m-d");
}
//Weekly
if($_POST['category']==2){
  $days=array("Monday"=>0,"Tuesday"=>1,"Wednesday"=>2,"Thursday"=>3,"Friday"=>4);
  foreach ($days as $key => $value) {
      if(date("l")==$key){
	$date1=date("Y-m-d",strtotime("-".$value."days"));
        $date2=date("Y-m-d",strtotime("+".(4-$value)."days"));
      }
  }
}
//Monthly
if($_POST['category']==3){
   $date1=date("Y-m-1");
   $date2=date("Y-m-t");
}
//Yearly
if ($_POST['category']==4) {
   $date1=date('Y-01-01');
   $date2=date('Y-12-31');
	}
//Search
if($_POST['category']==5){
   $date1=date("Y-m-d",strtotime($_POST['date1']));
   $date2=date("Y-m-d",strtotime($_POST['date2']));
}
?>


Note: You must include this jquery library
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
Looking for a developer(s) for an app idea.
Published: 2019-12-05 20:10:18

I wanna clear some points first. I'm from the commerce field, but still, I know much about programming, designing, and app development. I and my friend came up with the idea, she lives in Canada and lives in India but soon I'm moving to London. So far we have penned down every feature of the app also we have a decent design ready. As we're just side working on our idea we can't really pay off anything right now. We can agree on giving equity if everything goes great. Also, note developer must have to sign NDA before any practical conversation. Special note - 
- We need someone who knows how to build algorithms.
-London based. (If not, let's talk about it)
-NDA
- Willing to work on something really f--king big, not as a job person but as part of a team/holders.

I know this is a bit unclear, that's why just text me if you're interested.
Timezone data in Go
Tags: go, timezones
Published: 2019-12-05 20:01:50

After reading Jon Skeet's excellent [blog post about issues with storing datetimes in UTC][js] inside applications I wondered, how Go was dealing with updates to timezones. In Python this is done using the [pytz package][pytz] which is updated frequently. Go goes a slightly different way:

On Unix systems it tries to load information about the current timezone from one of the following places ([src/time/zoneinfo_unix.go:21][z21]):

```
var zoneSources = []string{
	"/usr/share/zoneinfo/",
	"/usr/share/lib/zoneinfo/",
	"/usr/lib/locale/TZ/",
	runtime.GOROOT() + "/lib/time/zoneinfo.zip",
}
```

`/usr/share/zoneinfo` is a folder that is usually provided by the tzdata package of whatever Linux distribution you're using. This in turn is built based on data provided by the tz database project which is maintained by the IANA. You can get the "original" data and project code on <https://www.iana.org/time-zones>. If you want to get notified when something changes there, there is even an [annoucement mailing list][a]!

If you want to stay up-to-date here (and you definitely want!) then it's probably easiest to just stick with the package provided by your operating system. Looking at, for instance, Debian's [tzdata package for Jessie][d], it still gets updated and is currently at 2019c which is the latest release of the tz database at the time of writing this.

At the other end of the spectrum you can also force Go to explicitly use a path of your choosing by setting the [`ZONEINFO` environment variable][z]. You could even roll your own `zoneinfo.zip` file: The lib/time folder inside Go's source tree contains an `update.bash` file which should come in handy there.

To summarize: If you want to stay up-to-date with your timezone information in Go applications, Go makes that pretty simple by sticking close to what the operating system provides. For edge cases you are able to roll your own version of the tz database, though.

[pytz]: https://pypi.org/project/pytz/#history
[js]: https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/
[z21]: https://github.com/golang/go/blob/50535e6b422ac6b0195f9d3a83607326401cee0b/src/time/zoneinfo_unix.go#L21
[a]: https://mm.icann.org/mailman/listinfo/tz-announce
[d]: https://packages.debian.org/jessie/tzdata
[z]: https://github.com/golang/go/blob/50535e6b422ac6b0195f9d3a83607326401cee0b/src/time/zoneinfo.go#L294
[u]: https://github.com/golang/go/blob/20bf6a495eabad79b7b275d46fc3e11c620b8212/lib/time/update.bash
React Hooks Snippet: Image Gallery
Tags: react, typescript, webdev, javascript
Published: 2019-12-05 19:56:42

---
title: React Hooks Snippet: Image Gallery
published: true
description: An image gallery with search and caching, built with React Hooks! 🐱
tags: react, typescript, webdev, javascript
series: React Hooks Snippets
cover_image: https://thepracticaldev.s3.amazonaws.com/i/4dxg8lenu15a30sq8ayh.gif
---

Hey all! How would you build an image gallery with React Hooks? Here's how I would do it! ([You can use here!](https://4xjzz.csb.app/) and [Edit Here!](https://codesandbox.io/s/hooks-gallery-4xjzz))

The main things to look at:

* This is written in Typescript, to assist the gist also contains the same code in [JavaScript](https://gist.github.com/shiftyp/860d8dbe289e1371bb50b8670a8fcd55#file-gallery-js).
* The types!
   * Our gallery starts with an object for each `Image`, here containing the basic info of a `url` and a `title`.
   * We can search for images by an arbitrary tag, and, and our images come from the server as an `ImageResponse`. This contains an array of `images`, the searched `tag`, and a number representing the total number of pages available (`totalPages`).
   * We represent a cache of the searched tags and the returned images with the `TaggedImages` type. This is a `Record`, which is an Object where the keys are the tag strings and the values are arrays of the returned `Image` arrays, indexed by page number.
* Our `useGallery` hook calls a few important hooks:
   * First: It calls `useState` to track the `pageNumber` and `tag`.
   * Second: It calls `useReducer` to create a `TaggedImages` cache, and a function to update it with an `ImageResponse`.
   * Third: It calls `useEffect`, and in the effect it fetches the images for the gallery's `collectionUrl`, `tag`, and `pageNumber`. We pass a boolean `shouldLoad` in addition to those dependencies in the effect's dependency array, to indicate the presence of a cached value and if we should load the data when the effect is run. Once the data loads, we get an `ImageResponse` and send it through our reducer!

The example app in the [CodeSandbox](https://codesandbox.io/s/hooks-gallery-4xjzz) doesn't implement a loading indicator, why not see if you can fork it and implement one! If galleries or kittens aren't your thing, but you like this style, leave a comment with what hooks snippet I should write next!

{%gist https://gist.github.com/shiftyp/860d8dbe289e1371bb50b8670a8fcd55 file=gallery.ts %}
Software Engineers and QA 
Tags: career, csharp, agile, linux
Published: 2019-12-05 19:52:57

If you just got off of work and opened a beer to forget the crappy day you just had, at your mediocre job, this is for YOU. If you haven't gone to bed yet because you haven't tracked all the bugs, although you're still waiting for them to track down your raise...? Or if tomorrow is payday...and you aren't even excited...let's talk, because it's time for a change my friend. The best New Years' Eve resolution is to find growth in your career! Fall in love with your career again with one of the many opportunities we have open at TSG! Message me if you are a Software Engineer/Developer or a QA in the Brookfield/Milwaukee area, as well as Chicago! No more end-of-day-beer-blues, what a waste. Come toast with TSG and let us show you your path to growth and success!
The cost of serverless and managed abstraction
Tags: serverless, abstraction, k8s, kubernetes
Published: 2019-12-05 15:36:58

---
title: The cost of serverless and managed abstraction
published: true
description: 
tags: serverless, abstraction, k8s, kubernetes
---

As the decade comes to an end, I reflect  at the early days of cloud computing and where we are now. AWS came out 2006 and GCP followed shortly in 2008 and then Azure in 2010. We've gained a lot of tools to make our lives easier since then, such as serverless, managed k8s, knative, and in this process of abstraction, we've lost some skills that I think every developer should be familiar with.

I remember first using AWS in 2008 and thinking that it was amazing to be able to set up an elastic cluster on demand, installing software on it and having my Nginx server run (Docker wasn't around back then).

Through this process, I had to learn about securing servers, package management, load balancing, setting up web servers, SSL certs. A fun thing I did was load balancing a cluster of servers and RethinkDB databases replicas across the Tokyo region and North America region. Good times and a lot of learnings on how it all worked. 

Now, looking forward to 2019, things have changed for the better. With the introduction of serverless, and managed k8s, you don't need to think about server security, load balancing, setting up web servers, SSL certs. All that is abstracted away by serverless, or a managed k8s offering. You can write code and ship!

But I wonder about the cost of this abstraction; I think every developer should spend a weekend just setting up an EC2 or GCE cluster and understand how it all works behind the scene. You don't need to be a DevOps expert, but understanding the stack behind the abstraction can be helpful when thinking about architecting your application and if serverless or k8s is right for you.

What do you think? Leave a comment below on Dev.To with your thoughts!
New serverless platform - looking for developers to try it out
Tags: help, serverless, aws, azure
Published: 2019-12-05 18:13:00

Hi all, I'm looking for developers to try out my new platform https://cloudux.io - it allows users to build serverless applications that are cloud agnostic. Developer preview will launch in January! Signup on my website at https://cloudux.io/#pilot

Thanks!

Ante Grgić
Founder & CEO
How do you get your Machine Learning models from idea to production 
Tags: discuss
Published: 2019-12-05 18:06:32

To all the data scientists and Machine Learning Engineers out there, building and deploying ML models to production environments. I need your help to understand your typical pipeline or workflow. 

Can you describe what your role is? What steps and tools do you use to build your ML models? And how do you deploy them to production? 


I imagine other people would be interested in your answers too so do not be shy. And If you feel generous and have 3 minutes to spare please fill-in [this survey](http://bit.ly/ml-survey-2020). Many thanks to the awesome dev.to community ❤️
Error when trying to post an article
Tags: help
Published: 2019-12-05 17:49:52

---
title: Error when trying to post an article
published: true
tags: help
---

Hello community I'm trying to post a new article on the site but I'm getting this error:

`base:  (<unknown>): could not find expected ':' while scanning a simple key at line 5 column 1`

I'm on firefox latest build if that matters.
Thanks in advance!
Spotify Wrap-up: The Best Holiday
Tags: watercooler, discuss
Published: 2019-12-05 17:28:47

---
title: Spotify Wrap-up: The Best Holiday
published: true
description: 
tags: watercooler, discuss
---

Every year Spotify does an annual wrap-up that is filled with your favorite tunes, how many minutes you spent listening, and your favorite genres/artist.

This year at the end of the decade they really made everything look amazing.  


[2019 Wrapup](https://www.spotify.com/us-en/wrapped?utm_source=us-en_brand_contextual_text&utm_medium=paidsearch&utm_campaign=alwayson_ucanz_us_premiumbusiness_wrapped_brand+contextual+text+exact+us-en+google&gclid=EAIaIQobChMI2IqJnIKf5gIVEV8NCh1pdgA8EAAYASAAEgIRZPD_BwE&gclsrc=aw.ds?)

{Not sure if you can see the wrap-up w/o Premium}

On the dev side, what do you think?
Introducing ProjectLearn.io - Project Based Learning
Tags: webdev, opensource, tutorial, project
Published: 2019-12-05 17:17:43

Tutorials are great, but building projects is the best way to learn. Do project based learning and learn code the right way!  

ProjectLearn.io provides a collection of programming tutorials in which learners build an application from  scratch. These are divided into different primary programming languages and frameworks. Some have intermixed technologies and languages.  

It's open-source on GitHub and anyone can contribute to this project!
How does your company manage your work time?
Tags: question, discuss, help, management
Published: 2019-12-05 16:06:22

I work as a software developer, lately spending some time with React for the Frontend and .Net Core in the backend. In my company, we always have to book the time we spend on the task we are working on. The tasks usually have a limit of hours you can book to them and, if you reach the limit (something that's pretty common lately), you need to speak to the project manager and find a solution. The whole process makes me feel anxious, mainly when the budget is very limited, and I'm trying to find ways to improve it.

What are your thoughts on this? Is it the same for you?
Giving Thanks for Diversity in Tech: Michelle Sanford
Published: 2020-01-15 20:42:23

---
title: Giving Thanks for Diversity in Tech: Michelle Sanford
published: true
date: 2019-12-05 16:06:05 UTC
tags: 
canonical_url: https://www.thisdot.co/giving-thanks-for-diversity-in-tech-michelle-sanford
---

![MichelleSpeaker](//images.ctfassets.net/zojzzdop0fzx/2PIJfpwlyBusiVTwHKNDf7/528fe327383c50425f3d2d28178a2bf9/MichelleSpeaker.JPG)

Michelle Sandford is a passionate tech community organizer and prolific speaker based out of Perth, Western Australia. As an employee of Microsoft, she hosts a number of events through the company and is a key supporter of Fenders, JuniorDev, Pyladies, and Australian Computer Society.

She is the recipient of numerous awards, including Women in Technology WA (WiTWA) ’20 in 20’ Award Winner 2018, The 2018 MCV 50 Most Influential Women in Games, The 2017 MCV Pacific Women In Games List, The Game Changers Diversity and Inclusion Community Award - Microsoft 2016, and was included in the 2016 MCV Pacific 100 Most Influential Women In Games list.  She has also recently delivered talks on community building in tech at GDG Melbourne, where she delivered a keynote, and at DDDPerth.

Though proud of her own accomplishments, she is equally interested in helping other women and young people enjoy the sort of career that she has.  She is a mentor for SheCodes, an organization that enables women to learn Python and Djanjo through receiving mentorship from, and later providing mentorship to, peers in the program.

Michelle also just ran a diversity dinner where she asked organizations to buy a table, and give half of the seats back for women who cannot afford a seat at the table. “In this way we had a wonderful event, paid for by industry and seated with them will be students, junior devs, and role models who might want to work with those companies in the future. A very real way for organizations to put their money where their mouths are as far as diversity is concerned and for women to see who they really should work for,” she said.

She added to this sentiment, sharing, “Inclusion is about seeing people who are less privileged and using my privilege to raise them up or enable them. There is always someone who is less powerful than us, which means there is always someone each of us can do something for. Turning slightly so that you can see them and then inviting them in is what each of us can do.”

If you don’t catch Michelle at one of the many tech events she supports, you might find her at the beach with her surf board, or taking her pups for a walk!

If you would like to keep up with Michelle, you can follower her on Twitter at [@msandfor](https://twitter.com/msandfor).
Why did you (or not) choose cross-platform mobile technology?
Tags: kotlinmultiplatform, kotlin, ios, android
Published: 2019-12-05 15:30:09

---
title: Why did you (or not) choose cross-platform mobile technology?
published: true
description: 
tags: kotlinmultiplatform, kotlin, ios, android
---

{% twitter 1202588210246946817 %}

This is an important discussion, not just for the people making the technology, but the people evaluating them too. Business context matters; team membership, recruiting and retention matter; technology, language, architecture, matters; and the community matters too. What else? And what matters to you?
PHP hack: Testing for inequality in switch statements
Tags: php
Published: 2019-12-05 15:24:13

I have found another nifty coding device you can use, this time, related to the switch statement.

We all know the switch statement, which looks like:
```php
<?php
switch ($i) {
  case "apple":
    echo "i is apple";
    break;
  case "bar":
    echo "i is bar";
    break;
  case "cake":
    echo "i is cake";
    break;
}
?>
```

What if you wanted a case where `$i` is *not* `"apple"`? We could put `true` in the switch expression and put a boolean condition involving `$i` and `"apple"` in the case expression, like so:

```php
<?php
switch (true) {
  case ($i != "apple"):
    echo "i is NOT apple";
    break;
  case ($i != "bar"):
    echo "i is NOT bar";
    break;
  case ($i != "cake"):
    echo "i is NOT cake";
    break;
}
?>
```

We can even mix false testing and true testing in the same switch statement. This device also allows us to test several unrelated variables. For example:

```php
<?php
switch (true) {
  case ($i == "apple"):
    echo "i is apple";
    break;
  case ($i != "bar"):
    echo "i is NOT bar";
    break;
  case ($sqrt > 0.0):
    echo "sqrt result is positive";
    break;
  case (html_entity_decode($_GET["name"]) == "Jon Skeet" &&
        html_entity_decode($_GET["urlslug"]) == "82631"):
    echo "Hooray! Jon Skeet is reading my post!";
    break;
  default:
    echo 'This is equivalent to an else statement.'
    break;
}
?>
```

In all cases, it's important to leave the switch expression as `true`. Don't set it to false or any other expression because it will make writing the case expressions inconvenient.

So long, and happy PHPing! :grin: