AZ.dev

287 posts

AZ.dev

AZ.dev

@AZdotDEV

The A to Z of software development notes and how-tos

Katılım Eylül 2020
537 Takip Edilen927 Takipçiler
AZ.dev
AZ.dev@AZdotDEV·
Me: number + array JavaScript: Sure, I’ll assume you meant converting them both to strings first? Got it TypeScript: WTF
English
1
2
13
0
AZ.dev
AZ.dev@AZdotDEV·
Few understand this in JavaScript.
English
3
2
21
0
AZ.dev
AZ.dev@AZdotDEV·
TypeScript tip: If you don't know the type of something, use `unknown` instead of `any` any basically means I don't care about this type, just let me do anything on it. That's bad unknown, however, means I don't know this type and I'm not really using it. That's much better
English
1
1
11
0
AZ.dev
AZ.dev@AZdotDEV·
What kind of JavaScript developer are you?
English
1
2
3
0
AZ.dev
AZ.dev@AZdotDEV·
What pattern do you use to name your GraphQL operations?
English
0
0
1
0
AZ.dev
AZ.dev@AZdotDEV·
"APIs should be easy to use and hard to misuse" - Joshua Bloch
English
0
8
18
0
AZ.dev
AZ.dev@AZdotDEV·
Learning React or Node today? Retweet and follow, and I'll DM you a 100% coupon code for my 2 books, React beyond the basics and Node beyond the basics. Note: The books are still a WIP so any feedback will be greatly appreciated. Happy Father's Day to all dads and single moms!
English
6
49
28
0
AZ.dev
AZ.dev@AZdotDEV·
If you have to review commits that have mixed whitespace changes, you can use the --color-words diff option to ignore the whitespaces changes. git diff --color-words
English
0
0
2
0
AZ.dev
AZ.dev@AZdotDEV·
Git tip: Put any non-significant changes that do not affect the code in separate commits. Examples: trailing whitespaces/eol, code formatting Don't mix them with other code changes because it makes reviewing a lot harder.
English
1
0
8
0
AZ.dev
AZ.dev@AZdotDEV·
REST is great for resources that are independent of each other. When you introduce relationships, things become a graph. Querying a graph with a REST API is like eating a salad one vegetable at a time.
English
0
6
12
0
AZ.dev
AZ.dev@AZdotDEV·
@EILYART Definitely. Even if you don’t get to use GraphQL, there is a lot to learn and adapt under REST APIs.
English
0
0
0
0
AZ.dev
AZ.dev@AZdotDEV·
Learning GraphQL is learning 2 languages: The language used by services to describe schemas: object types, scalars, lists, enums, unions, interfaces The language used by consumers to describe data needs: queries, mutations, subscriptions, fragments, fields, aliases, directives
English
0
6
12
0
AZ.dev
AZ.dev@AZdotDEV·
AZ.dev tweet media
ZXX
2
0
12
0
AZ.dev
AZ.dev@AZdotDEV·
@F_S_Gutierrez Let me see what I can do. Can you please DM your email.
English
1
0
0
0
Francisco Gutierrez
Francisco Gutierrez@F_S_Gutierrez·
@samerbuna impossible for me to renew my annual subscription to jscomplete and no support answer my emails what can i do? i'm a bootcamp student right now and i need your way to explain things -)
English
1
0
0
0
AZ.dev
AZ.dev@AZdotDEV·
“but will this edge case really ever happen?” YES. And when it does it’ll make your users not trust your app.
AZ.dev tweet media
English
0
0
4
0
AZ.dev
AZ.dev@AZdotDEV·
Command line tip: The $_ bash command variable holds the most recent used parameter. For example, you can: mkdir ~/some/path Then: cd $_ to get into that new directory.
English
0
2
11
0
AZ.dev
AZ.dev@AZdotDEV·
@theoutlander Not sure that’s a good strategy. I think frequent small breaks work much better.
English
1
0
2
0
Nick Karnik
Nick Karnik@theoutlander·
@samerbuna Nice! I usually don’t quit till I fix it because sometimes the problem is just very complex to revisit. I try to make up for that by taking long breaks through the week.
English
1
0
2
0
AZ.dev
AZ.dev@AZdotDEV·
Coding Tip: When you need to take a long break, or at the end of the day, leave your code in a problem state (red test, error on screen, ...) This makes it easier for you to resume and remember exactly where you left things off.
English
3
3
15
0