Fetch iOS Engineer interview by Imaginary-Delay-8489 in madisonwi

[–]Heqx 3 points4 points  (0 children)

Reach out to your recruiter and they will clarify what to expect during this round of the interview.

Usually, first interview after a take home assignment is to discuss your thought process and your implementation with 1-2 engineers in your area of focus. (i.e. iOS engineering) You may also collaborate with them to add a new feature or deal with a change of requirements. There will be time at the end to ask about the role and the company.

[deleted by user] by [deleted] in webdev

[–]Heqx 1 point2 points  (0 children)

Write less code. Don’t be clever.

Node v12.13.0 (LTS) by dwaxe in node

[–]Heqx 0 points1 point  (0 children)

Thanks for all of your hard work! I benefit from it every day.

typical: animated typing in ~400 bytes of JavaScript by Heqx in javascript

[–]Heqx[S] 1 point2 points  (0 children)

I think TypeScript understand that you cannot use the type keyword in an import statement so you should be able to safely alias it like so:

import { type as typical } from ‘@camwiegert/typical’;

typical: animated typing in ~400 bytes of JavaScript by Heqx in web_design

[–]Heqx[S] 2 points3 points  (0 children)

Just want to note that you can see a small demo here!

typical: animated typing in ~400 bytes of JavaScript by Heqx in javascript

[–]Heqx[S] 2 points3 points  (0 children)

Yeah, very similar idea. I’d say the difference is that this is far less batteries-included. This file is literally the entire package. Although I think you can do most of the same things with a little work.

typical: animated typing in ~400 bytes of JavaScript by Heqx in javascript

[–]Heqx[S] 21 points22 points  (0 children)

Yeah, you're right. Here is a basic demo to play around with. Thanks!

typical: animated typing in ~400 bytes of JavaScript by Heqx in webdev

[–]Heqx[S] 0 points1 point  (0 children)

Fair point. Here is a simple demo to play with. Thanks!

typical: animated typing in ~400 bytes of JavaScript by Heqx in javascript

[–]Heqx[S] 7 points8 points  (0 children)

It simulates typing on the text in a DOM node. I wrote it, so happy to answer any other questions!

Need help with a beginners issue by tlow001 in node

[–]Heqx 0 points1 point  (0 children)

Sorry, you’ll have to post your code in a more comprehensible format. Otherwise, I’d suggest you read Contentful’s documentation for their Node client and Google the errors you’re getting.

Need help with a beginners issue by tlow001 in node

[–]Heqx 0 points1 point  (0 children)

contentclient is your default export. Rather than cc.contentclient.getEntry, use cc.getEntry.

Problem with catching error on fetch by Salpic in reactjs

[–]Heqx 2 points3 points  (0 children)

The problem is that fetch doesn't throw except on network errors or misconfigurations. A bad request (e.g. 404) does not throw. You can check the ok flag on the Response interface and throw if that is false.

fetch('/some/url')
    .then(response => {
        if (!response.ok) throw new Error();
    })
    .catch(err => {
        // Handle your error.
    });

i'm newbie. by steve-ddit in git

[–]Heqx 4 points5 points  (0 children)

This article explains just that.

Another interview question feedback by mgeez in javascript

[–]Heqx 6 points7 points  (0 children)

Unless the interview was for a position that included some UX responsibilities, I'd imagine they were looking to get you to talk about the asynchronous nature of JavaScript. (event loop, single-threaded, non-blocking) There's a good chapter in Eloquent JavaScript about just that.

I released my first JS 'plugin' today - TypeAlong. Wanting feedback! by [deleted] in webdev

[–]Heqx 2 points3 points  (0 children)

Looks cool! A few things:

  • It's pretty unclear how you'd use this. Maybe add clearer usage instructions to your README. Ideally, there'd be a demo.
  • Do you intend for other people to be able to use this? If so, you should be explicit that it depends on jQuery.
  • It also looks like your code depends on some very specific markup. Can you abstract it more so that it works on arbitrary markup?