DEV Community

Jeremy Forsythe profile picture

Jeremy Forsythe

Self-taught dev/architect/admin of 30+ years

Location Ohio Joined Joined onΒ  github website

Work

Senior Software Engineer at SenSource

All 132 comments

Simplest way to compare two numbers array in JS

Your function mutates the arrays. After calling compareArr(),...

Memoization in Javascript

Instead of keeping a progress queue, you could just store the...

Static Site Generators - the WordPress alternative no one's talking about

If you ignore all the problems with WordPress, then yeah.

Static Site Generators - the WordPress alternative no one's talking about

I just made a bunch of arguments against WP to the marketing ...

Static Site Generators - the WordPress alternative no one's talking about

I understand what you're saying, and WP isn't inherently bad....

Static Site Generators - the WordPress alternative no one's talking about

The problem is that a major cache plug-in for WP just release...

We Should All Be Writing WET Code

I agree with the sentiment that devs tend to over-abstract, e...

Node.js + Angular 11: JWT Authentication & Authorization example

This is dangerous. The JWT should not be available to the cli...

Is it worth to cross-post on Medium in 2020?

I'm not a big poster but I stopped reading on Medium and anec...

Drop Your Choice Programming MusicπŸ‘‡

di.fm

What does code quality mean to you?

Is the code readable? Does the code do what it is supposed t...

Hello World!

Keep at it! I started at 5 years old in 1987!

What Javascript Spread Operator is, How It Works and How to Use It

You're moving the goal posts. I said it distinguishes between...

What Javascript Spread Operator is, How It Works and How to Use It

If you do a behavior test in any interpreter there is obvious...

What Javascript Spread Operator is, How It Works and How to Use It

No, I'm not going to read the spec for you.

What Javascript Spread Operator is, How It Works and How to Use It

There is a distinction. Read the GetValue definition and foll...

What Javascript Spread Operator is, How It Works and How to Use It

What he calls a "shallow copy" in the article, I'd call an al...

What Javascript Spread Operator is, How It Works and How to Use It

The spec does not say it copies the value of the object, it s...

What Javascript Spread Operator is, How It Works and How to Use It

It doesn't actually create a deep copy. const arr1 = [ { na...

Error Handling: Read the console output!

A couple other helpful tips for you: use const or let inste...

container-diff

I'll have to check this out for diffing two containers. Dive ...

An Open Letter to Our Bootcamp Grads

This is a great message and your students would do well to fo...

Convert to String

console.log(`${input}`);

What irritates you the most as a developer? πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

While it's true that they still run a lot of Java code, all o...

What irritates you the most as a developer? πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

If you think the TS ecosystem is immature, try cloning the De...

What irritates you the most as a developer? πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

JS is actually very good on the server. Ask Netflix.

What irritates you the most as a developer? πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Or you can use something like Ionic with Capacitor and get na...

How Dev Bootcamps Are Failing TheirΒ Students

This is pretty true and why I prefer bootcamp candidates who ...

Add a blog to your Angular website using markdown files

I stripped out ngx-markdown and tried using marked directly w...

Add a blog to your Angular website using markdown files

I'm attempting something similar with Angular Universal and t...

A rant about discussion culture on the internet

I think the main problem is the philosophy that it is the pla...

A rant about discussion culture on the internet

I could not agree with you more. The CoC seems to allow for f...

5 clean code techniques you can start doing today

I disagree with your stance on comments a bit. I agree that...

Unpopular opinions

You might like Gitlab Flow

Is this procedural programming?

The getStateWithNewWord() function gets your new state with...

What is your favourite Git command?

I always find myself using git stash -u so it stashes new fil...

What is your favourite Git command?

git bisect

Is this procedural programming?

Here's an example. It's not perfect, but I think it's much ...

How do *you* pronounce sudo?

Soo-dough because it rolls off the tongue better and becaus...

Thanks to Other Women, Vicki Coded

I don't know that it makes you feel better, but many of the...

Draw with code - Introducing kids to coding using simple type-in JavaScript programs

Just went through a bunch of tutorials with my daughter. It...

Is this procedural programming?

That's why I said effectively global. It's in a closure but...

Is this procedural programming?

Your functions (e.g. new_time()) are modifying state outsid...

No, TypeScript is not OOP version of JavaScript

🀣

No, TypeScript is not OOP version of JavaScript

We write many thousands of lines of TS code and, at least on ...

What Tool Can You Never Remember or Get Good At?

There is a huge benefit to isomorphic TS when training juni...

What Tool Can You Never Remember or Get Good At?

Agreed with curl. I tend to make the request in Postman and...

What is the difference between parsing and serialization?

Serialization = encoding. Deserialization = decoding = pars...

Yet another reason to prefer unit tests πŸ˜‡

I find much more frustration in e2e testing. I'd you write ...

How to Debug Nodejs, TypeScript Code in VSCode

It's not a real (or secure) network! It was an example for ...

How to Debug Nodejs, TypeScript Code in VSCode

I find it much easier to use ts-node and you never have to ...

Games to teach programming to a 9-year-old?

This game is so much fun even for adults

Games to teach programming to a 9-year-old?

Check out the Kano Computer. I got one for my grandson. Rea...

Why I hate coding challenges in the hiring process

That one is a softball question to get them loosened up. No...

Why I hate coding challenges in the hiring process

Let's be honest - if you can't write a one liner on paper t...

Why I hate coding challenges in the hiring process

I probably should have been more clear. These are functions...

Why I hate coding challenges in the hiring process

The functions I'm talking about are simple enough that movi...

Why I hate coding challenges in the hiring process

I put candidates through coding challenges on paper. Hate m...

Achieving 100% code coverage will make you a better developer. Seriously.

I would say that 100% coverage is useless because you're ch...

How to Fix a Typo After You've Already Pushed Your Commit

While it may be rare, I prefer a workflow that doesn't have...

How to Fix a Typo After You've Already Pushed Your Commit

Your alternative title is better. You should never rebase a...

Better lessons from [No] semicolons in Javascript

I like the point of the article, which boils down to a way ...

Implementing 2D Physics in Javascript

Great article! My team will have fun with this.

Learn JavaScript OOP: A primer for web development

There is some good info in here if you're wanting to use OO...

What I should install on my Mac?

Highly recommend the relatively new Docker CLI UI, lazydock...

My confusions about TypeScript

Haven't found a good use for the Bridge Pattern, but I've o...

My confusions about TypeScript

We disallow type any in our code. It removes any benefits y...

My confusions about TypeScript

You beat me to it! typeof Model and T extends Model are the...

How to Support the Junior Dev on Your Team

Great article. One thing I try to keep in mind with Juniors...

Breaking down confusion of combining Async/Await with Array.forEach()

It is for this reason that we prefer for..of over .forEach wh...

✨ Support systems | The ultimate junior web developer survival guide

Great series! Sending this to my Junior developers!

What's your typical process for reviewing a pull request in GitHub?

I'd add that you can now make multi-link comments (comments...

Javascript and Classical Inheritance

Vertical (or classical) inheritance leads to tight coupling...

Table to json with jq and awk

I find scripting languages to be much easier to write this ...

Abbreviations in code: yay or nay?

It really depends on the word and the context. If the word...

Issues with VSCODE License β€” You should worry

Telemetry stuff is closed source so you don't see how they se...

Using Bull.js to manage job queues in a Node.js micro-service stack

We're doing something similar with microservices and worker...

Getting Into Microservices? Don't Build a Spaghetti Monster.

Can you elaborate on running migrations in the CI/CD pipeli...

Decision Time: PHP Framework Dilemma

I've never used Symfony so I can't speak to that. But havin...

Weekend task: Write your first TypeScript package and publish it to NPM!

You could use github.com/jdforsythe/typescript-n... to get ...

Why isn't Functional Programming the Norm?

The biggest factor for my team is the pressure of forward p...

What advice would you give to an unemployed software developer?

Contribute to open source and show that on your resume. As ...

To Split or Not to Split

Splitting of functions is an art. It should always reduce d...

Why isn't Functional Programming the Norm?

Mostly adoption is driven by need. Many devs have checked o...

Recomendations for open source projects in Javascript.

Off the top of my head - node-postgres (npm install pg) is ...

Do you actually use maths as a developer?

Most developers will never use any kind of advanced math an...

Would you pay to watch me coding?

That's the one. I guess I missed that whole debacle..

Would you pay to watch me coding?

Can't think of the name off the top of my head but there's ...

Code Smell: No AND in Function name

Sounds like a great idea for a custom tslint/eslint rule

Why I don't think a Degree is Necessary to Become A Developer.

I wrote my first piece of software in 1987 at the ripe old ...

Find the largest number in an Array - one line

Not if you use snippets!

Find the largest number in an Array - one line

jsbench.me/g4jx2nffbo/1 Array.prototype.reduce() seems to ...

How do you feel about the "misuse" of HTTP methods?

Like anything else, there are the die-hard theorists who sa...

Microservices: HTTP Requests vs Messaging

I don't think it's necessarily an either/or. Some services ...

What do you do if you're in the middle of a project and you realize it already exists in the world?

This is sometimes true, but it really depends on the app. H...

What do you do if you're in the middle of a project and you realize it already exists in the world?

This really depends on what exactly already exists and how ...

What's your take on writing tests for third-party services or integrations?

The prevailing wisdom here is to record actual responses fr...

Are CSS and HTML programming languages?

Smalltalk isn't "only" objects. There are other parts of th...

Webassembly is good but doesn't the thought scare you that sites will now be able to run full binary programs on your devices?

Not at all. They are designed to be safe.

Are CSS and HTML programming languages?

CSS isn't a programming language. Show me an example of som...

How long is a new feature/page expected to take?

The question shows either a fundamental misunderstanding or...

Best practices for authentication in an oauth API flow?

JWT with a key pair is a good way to prevent DB lookups or ...

What is that one tool/stack/framework that you have no interest with despite the popularity?

Just like anything else, Docker is a tool for specific purp...

Confidence

If you're stuck on an issue, switch contexts and get some e...

Finding time when you have a family

It's definitely more of a challenge, but it's all about bal...

What habit do many senior engineers have that juniors should try to avoid adopting?

I totally agree. Writing code is an art and, like painting,...

Tired of Guessing What 'this' Is Referring To?

I don't write React code. I'm a full stack JS dev and avoid...

Tell me about jQuery Patterns!

I'd suggest the rewrite from scratch strategy. :)

Feature Request: Add the "Reading List" or "Bookmark" button on the posts page (card layout) itself

Totally agree. Sometimes I'm scrolling the list but don't h...

Tired of Guessing What 'this' Is Referring To?

I'd advise to avoid writing code that uses this altogether....

What was the config of your first computer?

Amstrad 16MHz PC, 2 5.25" floppy drives, no hard drive (the...

Are coders real people???

No offense taken! It can be hard to break out of the online...

Did JavaScript objects have static methods before ES6 class static methods?

Yes, the classes look prettier but are just the old .protot...

Js and burning out

If you're worried about backwards compatibility being a per...

Are coders real people???

Yes, we are real people. I drink beer, do woodworking, have...

How to plan a software?

The basis to all systems is there is some sort of desired o...

Setting Up TypeScript for Node

If you are planning on publishing npm modules with Typescri...

How can I attract a group of developers for open source projects?

It will be much easier if you have something, anything, to ...

Welcome Thread - v33

Hello, World! I'm here because technology is my passion. I'...

Did you negotiate ($) for your first technical job?

Always negotiate. This is a business transaction. They want...

How do you find the largest and smallest number in an unsorted integer array?

I'm not a python guy, but wouldn't this scan the entire ar...

loading...