πŸ‘︎ 44
πŸ’¬︎
πŸ‘€︎ u/sizwe24
πŸ“…︎ Jan 10 2022
🚨︎ report
How good is typescript as a backend language?

Hi,

recently I talked to a few backend developers that program in Go and Java / Kotlin. They say, that typescript is way inferior, and Go and Java / Kotlin are the real modern backend languages. But when I asked for reasons they could hardly put the finger on anything specific. They claimed i.a. that the tooling of those languages was superior to typescript.

I have used typescript quite extensively in the past for frontend programming (react) and have not done so much backend developing with it. But I see typescript as a mighty language that has a lot of flexibility and also has typing. I am not so familiar with the backend tooling so they might be right here.

But when it comes down to microservices I see no advantage in using Go/Kotlin over typescript. You just use a docker container and make an express endpoint and you are good to go.

Also, I see the advantage in having typescript in the backend that you can potentially use the same language for frontend and backend, which can be especially useful for small companies/startups which have more full-stack developers than a strict separation of backend/frontend developers.

What do you think about that matter?

πŸ‘︎ 63
πŸ’¬︎
πŸ‘€︎ u/tonks456
πŸ“…︎ Dec 31 2021
🚨︎ report
Why C# goes well with TypeScript nate.org/csharp-and-types…
πŸ‘︎ 202
πŸ’¬︎
πŸ‘€︎ u/binarynate
πŸ“…︎ Dec 21 2021
🚨︎ report
Dependency inversion principle in Typescript staszewski.me/dependency-…
πŸ‘︎ 53
πŸ’¬︎
πŸ‘€︎ u/staszewski
πŸ“…︎ Jan 15 2022
🚨︎ report
I made a web app to convert explicit Spotify playlists to their clean versions using React and TypeScript v.redd.it/q0xbphemvi681
πŸ‘︎ 815
πŸ’¬︎
πŸ‘€︎ u/aryanchopra26
πŸ“…︎ Dec 19 2021
🚨︎ report
try/catch in TypeScript is such a gigantic pain in the ass. Even worse if used in Node, holy hell...

I just encountered this problem because TS would complain that the error object does not have a code property.

This issue is almost three years old and the best solution to date is to create an ugly typeguard to narrow the type down and turn off unsafe-any to use it?

Is there a way to make the compiler aware that it's running in Node? I did set the target according to the Node target mapping.

This is really frustrating and I gotta be honest with you, folks. It really feels like I just keep spending hours and hours trying to make the compiler happy without any real benefit to the actual project...

πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/real_kerim
πŸ“…︎ Jan 06 2022
🚨︎ report
[AskJS] How heavy do you lean into TypeScript?

Following up on my post from a few weeks ago, I've started to learn TypeScript. When you read through the documentation or go through the tutorials, you find that there is a lot you can do with TypeScript. I'm curious as to how much of TypeScript you actually use, i.e. incorporate into your projects.

I come from a plain JS and React background, and much of TS just seems unnecessarily... ceremonial?

I can appreciate defining types for core functions, but I struggle to understand the real-world gains (outside of some nice autocompletes here and there) provided by buying into the language wholesale.

So my question is, how much of TypeScript do you use in your projects? And if you implement more than the basics, what clear wins do you get as you incorporate more and more of TypeScript into your project? TIA

πŸ‘︎ 140
πŸ’¬︎
πŸ‘€︎ u/devacct0
πŸ“…︎ Dec 12 2021
🚨︎ report
BitSai: a new cross-platform, modern, and open source Bitcoin wallet written in Typescript and React

Landing page: https://bitsai.co

Github Repo: https://github.com/bitsai-org/bitsai

Hi guys this a new bitcoin wallet created entirely by me!

It was a long journey of me wanting to make an open source project and learn the Bitcoin protocol. So here it is hope you enjoy the app and if there are any question please don't hesitate to ask :)))

πŸ‘︎ 36
πŸ’¬︎
πŸ‘€︎ u/Benmeft
πŸ“…︎ Dec 26 2021
🚨︎ report
VSCode vs Webstorm for developing applications using TypeScript?

Hey everyone,

I've been developing mobile applications using React Native and TypeScript for a couple of years now and was always using Visual Studio Code. However, recently I've been thinking whether it's worth to switch to Webstorm, since most of my colleagues use it and it seems like a pretty powerful IDE.

Personally, I feel like Visual Studio Code is faster and more enjoyable to use, but requires massive configuration to become a powerful tool. Whereas Webstorm seems to be more suitable for higher end application development and feels more comfortable with detecting interfaces (TypeScript or even Graphql) and writing unit tests.

Without considering that Webstorm is paid, what would be your preferred choice? I would love to hear opinions from either side. Much appreciated.

EDIT: Thanks, for the advice everyone. I decided to try and switch over to WS, since it seems to be better overall and the support for it here is overwhelming!

πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/sir_caramel
πŸ“…︎ Jan 07 2022
🚨︎ report
What ORM to use with TypeScript

Hello,

I have been using Sequelize for some time in my previous JavaScript project. For my new project I have decided to go with TypeScript and I saw that people were having issues with Sequelize. I have been looking at MikroORM, PRISMA, TypeORM and really can't decide what to use, opinions out there are really mixed. What ORM should I pick?

πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/CybBob
πŸ“…︎ Jan 12 2022
🚨︎ report
I built a Mini Social Network with React,Typescript, NodeJS,and Tailwind

I built a fullstack mini-social network with React,Node ,Typescript, MongoDb and Tailwind

Check it out
Demo : https://react-social-network-101.netlify.app/
Source Code :https://github.com/albeniskerqeli10/react-social-network-v1

P.s If you don't want to register to this web app, you can use a demo account to login in the social network:
demo email:testtest@gmail.com
demo password:testtest

😊

πŸ‘︎ 112
πŸ’¬︎
πŸ‘€︎ u/albenis99
πŸ“…︎ Dec 28 2021
🚨︎ report
A starter template with Vite, Vue3, Vue Router 4, Pinia, Quasar, and TypeScript

Hi folks,

I watched Evan You's session from VueConf Toronto and decided to pull together some of the best practices that are coalescing.

I've put together a starter template that has the key pieces plugged together with:

  • Vue3
  • Vite
  • Pinia (Vuex 5)
  • Vue Router 4
  • Quasar

Let me know what you think!

https://github.com/CharlieDigital/vue3-pinia-quasar-ts

πŸ‘︎ 42
πŸ’¬︎
πŸ‘€︎ u/c-digs
πŸ“…︎ Jan 15 2022
🚨︎ report
The Story of TypeScript youtube.com/watch?v=EUlM3…
πŸ‘︎ 67
πŸ’¬︎
πŸ‘€︎ u/tyler-mcginnis
πŸ“…︎ Jan 10 2022
🚨︎ report
What is your go-to feature to show off to somebody new to or skeptical of TypeScript?
πŸ‘︎ 42
πŸ’¬︎
πŸ‘€︎ u/FullstackViking
πŸ“…︎ Dec 31 2021
🚨︎ report
Haveno is still looking for a frontend lead developer (ReactJS, typescript) or a small frontend team to build Haveno's user interface!

We are still looking for an experienced lead frontend developer proficient in ReactJS and typescript. We would be also happy to hire a small frontend team for the job.

The skill set we are looking for:

  • experience building well-designed ReactJS apps with Typescript
  • experience as lead dev of a UI app
  • familiar with open source and collaborative development
  • experience leading a small group of UI developers (2-3 people)

The React app should use modern technologies and patterns which are supported and easily maintained by community members into the future, accounting for accessibility. The app will communicate to the Haveno daemon through gRPC APIs.See the Proof of Concept.

The lead developer or team will be paid in XMR. We are very flexible, feel free to contact us for any questions :)

If you are interested (or know somebody that could be interested) and have the skills we are looking for, please let us know. DM us here or write us at contact@haveno.exchange.

haveno.exchange
Matrix chat rooms

πŸ‘︎ 95
πŸ’¬︎
πŸ‘€︎ u/HavenoDEX
πŸ“…︎ Dec 18 2021
🚨︎ report
My open-source Node/TypeScript/GraphQL e-commerce framework Vendure. Solo-developed and now used by IBM & billion-dollar startups. vendure.io/
πŸ‘︎ 55
πŸ’¬︎
πŸ‘€︎ u/-pertinax-
πŸ“…︎ Jan 08 2022
🚨︎ report
Why C# goes well with TypeScript nate.org/csharp-and-types…
πŸ‘︎ 38
πŸ’¬︎
πŸ‘€︎ u/binarynate
πŸ“…︎ Dec 21 2021
🚨︎ report
Auto-Currying In TypeScript v10i.dev/p/auto-currying-…
πŸ‘︎ 94
πŸ’¬︎
πŸ‘€︎ u/drizzer14
πŸ“…︎ Dec 29 2021
🚨︎ report
[HIRING] Looking to hire React JS / Typescript / NodeJS Full Stack Developer - Contract or Full Time - $150k+/yr - Remote

[HIRING] Looking to hire React JS / Typescript / Solidity Developer - Contract or Full Time

I am looking for a Mid to Senior level React JS / Typescript developer. Solidity experience is preferred, but not required if you have a strong development background. Starting salary is $150k USD / year, fully remote.

PM here with some info about yourself, past projects, open source projects if you have any, how long have you been programming, and what languages do you have experience in.

Thanks! Looking to fill role ASAP.

πŸ‘︎ 76
πŸ’¬︎
πŸ‘€︎ u/reborn1002
πŸ“…︎ Dec 30 2021
🚨︎ report
Mom, can we have Typescript?
πŸ‘︎ 119
πŸ’¬︎
πŸ‘€︎ u/Nerd_EXEReddit
πŸ“…︎ Jan 04 2022
🚨︎ report
TypeScript Decoders and why they Matter if you care about robust code bekk.christmas/post/2021/…
πŸ‘︎ 34
πŸ’¬︎
πŸ‘€︎ u/_tskj_
πŸ“…︎ Dec 23 2021
🚨︎ report
Announcing TypeScript 4.5 devblogs.microsoft.com/ty…
πŸ‘︎ 235
πŸ’¬︎
πŸ‘€︎ u/myroon5
πŸ“…︎ Nov 17 2021
🚨︎ report
v-if with TypeScript

Hi everyone,

I'm new to Vue, moving from React background. This has been driving me crazy. What is the proper way to handle TypeScript with `v-if`?

<p v-if="user">{{ user.name }}</p> // TS error: user can be undefined or null
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/dev-andrew
πŸ“…︎ Jan 06 2022
🚨︎ report
100%OFF | TypeScript For Beginners 2022 udemycoupons.me/dev/types…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/UdemyCouponsMe
πŸ“…︎ Jan 10 2022
🚨︎ report
Migrating a MEAN AngularJS app to React, Next.js, and TypeScript blog.isquaredsoftware.com…
πŸ‘︎ 95
πŸ’¬︎
πŸ‘€︎ u/acemarke
πŸ“…︎ Dec 27 2021
🚨︎ report
Why C# goes well with TypeScript nate.org/csharp-and-types…
πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/binarynate
πŸ“…︎ Dec 21 2021
🚨︎ report
Announcing TypeScript 4.5 devblogs.microsoft.com/ty…
πŸ‘︎ 645
πŸ’¬︎
πŸ‘€︎ u/myroon5
πŸ“…︎ Nov 17 2021
🚨︎ report
Node API server for Mongo, Typescript or no?

I've done a REST API for MongoDB and MariaDB in both node before, but I've never done it typescript, which I like using.

However, I've heard that's its uncommon to make an API using Typescript... but that was from a post from five years ago. Is it still uncommon to use Typescript to make a a backend API? What are some reasons why someone would or would not do use Typescript in this case?

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Jin-roh
πŸ“…︎ Jan 02 2022
🚨︎ report
MongoDB Supercharged for Node & TypeScript

Intro:

I've been working with MongoDB for over 8 years and I've created a set of tools which, in my opinion, bring the Developer Experience to the next-level.

My 2 cents about this wonderful database have been synthesised here: https://www.bluelibs.com/blog/2021/12/10/mongodb-supercharged-for-node

Highlights:

  • We achieved faster than RAW SQL fetching of relational data with Nova (we beat RAW PostgreSQL queries by 2.5x running some deep queries, and Sequelize was put to shame by having 8x). Benchmark Results (Disclaimer: I'm in no way a SQL hater nor do I compare apple or oranges. I just compare fetching speeds of relationally linked datasets)
  • We achieved true ORM-like behaviour for MongoDB via DeepSync & Nova (for fetching)
  • Realtime Data Queries (scalable and real-time complex lists with filters, sorting, pagination not just a single document) for MongoDB via GraphQL. Documentation

Code:

  • If you want to just dive in and code with it here's our sample very light-weight microframework with http (express) and mongodb: Mongo+HTTP Code Repository
  • This project is part of the BlueLibs monorepo.

Ending notes:

Suggestions, opinions, critiques are always welcome, hope I sparked your interest in this wonderful database. If you want to see what're we doing, you can "Watch" the monorepo.

πŸ‘︎ 58
πŸ’¬︎
πŸ‘€︎ u/theodordiaconu
πŸ“…︎ Dec 16 2021
🚨︎ report
Dependency inversion principle in Typescript staszewski.me/dependency-…
πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/staszewski
πŸ“…︎ Jan 15 2022
🚨︎ report
Need help setting up a TypeScript project with multiple configuration files in VSCode.

Hello. So I have been trying to get this to work for an unreasonable amount of time without success, so finally I thought I'd ask for some help here. TL;DR provided at the bottom.

Here is the github repository for this project which I have setup for this, and it has the following structure:

 

typescript-vscode-esbuild
β”œβ”€ src
β”‚  β”œβ”€ assets
β”‚  β”‚  └─ js
β”‚  β”‚     └─ client.ts (included in tsconfig.frontend.json)
β”‚  └─ utils
β”‚     └─ db.ts (included in tsconfig.backend.json)
β”‚  β”œβ”€ server.ts (included in tsconfig.backend.json)
β”‚  β”œβ”€ tsconfig.backend.json
β”‚  β”œβ”€ tsconfig.frontend.json
β”œβ”€ tsconfig.json
└─ package.json

 

As you can see, there is a tsconfig.json inside the root directory, which contains references to the backend and frontend tsconfig files inside the src folder

 

{
    "compilerOptions": {
        // ...
    },
    "references": [
        { "path": "./src/tsconfig.backend.json" },
        { "path": "./src/tsconfig.frontend.json" },
    ],
}

 

 

Additionally these two config files will have different target and module settings since backend is for Node, and with frontend we are targeting a browser environment.

 

So I have two goals here:

 

  1. Make VSCode Intellisense and type/error checking work with the tsconfig files.

  2. Run the typescript compiler in watch mode, but only to do the type checking, without any emits. I am using ESBuild to handle all compilation, however, it does not provide any type checking so we still rely on the tsc compiler for that (just the type checking, nothing else).

 


 

Here is the problem, I can not get both #1 and #2 (goals) to work together at the same time. If you wonder how I ended using project references (references), the sole reason for that is to keep VSCode happy. Previously I ha

... keep reading on reddit ➑

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/decho
πŸ“…︎ Jan 04 2022
🚨︎ report
Type Enthusiast's Notes about TypeScript. Part 3

Link to Part 3 of my series about types in TS:

https://rpeszek.github.io/posts/2022-01-03-ts-types-part3.html

Part 3 is about TS Complexity and discusses gotchas related to narrowing, subtyping, and variance
with examples of some very weird compiler behavior.
Reddit tends to remove my post if I just post a link. I gave up trying to publish link only.
Hope this post stays.
Happy New Year!

πŸ‘︎ 35
πŸ’¬︎
πŸ‘€︎ u/RobertPeszek
πŸ“…︎ Jan 03 2022
🚨︎ report
Δ† Programming Language which can be translated automatically to C, C++, C#, Java, JavaScript, Python, Swift, TypeScript and OpenCL C. Instead of writing code in all these languages, you can write it once in C github.com/pfusik/cito
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/nixcraft
πŸ“…︎ Oct 09 2021
🚨︎ report
Just update my Next JS Starter Code to Tailwind CSS 3 built with Next JS 12 + TypeScript + ESLint + Prettier + Husky + Lint-Staged + PostCSS + SEO + VSCode + One-click deployment to Netlify/Vercel + etc.

Hi,

More than two years ago, I have built my Next JS boilerplate code in Next JS 9 and Tailwind CSS 1.X. I'm still using it for all my projects and help me start a new project more quickly with all dependencies I need to write quality code. So, I keep updating it.

Now, the starter code uses the Next JS and Tailwind CSS latest version: Next JS 12 and Tailwind CSS 3. It has reached more than 1200+ ⭐ stars on GitHub. Here is the list of dependencies including out of the box:

  • Next JS 12
  • Tailwind CSS 3
  • TypeScript 4.5
  • React 17
  • ESLint for TypeScript
    • with Next JS default configuration and Next JS Core Web Vitals
    • with Airbnb configuration
  • Prettier, integrated to ESLint
  • Husky
  • Lint-Staged
    • Running linter
    • Running type checking before committing
  • PostCSS for Tailwind CSS and integrated to styled-jsx, NextJS default CSS-in-JS library
  • VSCode configuration
    • Debugging session for client side (frontend)
    • Debugging session for server side (backend)
    • VSCode Extension
    • VSCode Settings
  • Strict Mode for TypeScript and React
  • SEO with Next-seo
  • Bundler Analyzer
  • One click deploy
    • Vercel
    • Or, Netlify
    • Or, you can deploy manually to any hosting service

You can find the repository on GitHub at ixartz/Next-js-Boilerplate or you can also check the Next JS Starter Live demo.

Totally open to any feedback and suggestion.

Thanks.

πŸ‘︎ 25
πŸ’¬︎
πŸ‘€︎ u/ixartz
πŸ“…︎ Dec 29 2021
🚨︎ report
For mongoDB with Typescript and GraphQL: Typeorm or mongoose or MikroORM? Also TypeGraphQL?

Hello,

Which npm module is preferred for mongoDB with Typescript in Node.js, TypeORM or Mongoose.js or MikroORM or something else. Also which GraphQL library is used so that we have only one file containing both GraphQL/MongoDB schema so that there is only one source of truth? Is that TypeGraphQL?

EDIT: Thank you everyone who took time to reply. Much appreciated you all.

πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/simple_explorer1
πŸ“…︎ Jan 04 2022
🚨︎ report
Where to find part time, freelance jobs for a NodeJS & typescript dev?

I'm looking to do part-time gigs while I work on my career to make some extra money but I can't really find jobs other than fill time developer jobs which I'm not looking for. Does anyone know a website or place I can see gigs where it's paid contribution to open source project or private entities wanting work done? I don't know where to look other than creating a Fivver page or UpWork.

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Red3nzo
πŸ“…︎ Jan 04 2022
🚨︎ report
Coming from 8 years of using IntelliJ and JVM based languages, I find myself now doing typescript and JS for the backend mostly. IJ seems to not do well with typescript at all, any recommendations?

I'm on Ultimate - https://i.imgur.com/ZNvclOt.png

E.g. It seems to compile very slowly, where a squiggly under an improper change can sometimes take a minute to appear.

Seems a known IJ issue: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000770044-Typescript-inspections-sometimes-unreliable-and-or-slow

My colleagues use Visual studio, and it's sounding promising, but IJ at this point is second nature to me and I don't wish to give it up. Any plugins or other addendums I could use to make TS in it less painful?

πŸ‘︎ 67
πŸ’¬︎
πŸ‘€︎ u/how_you_feel
πŸ“…︎ Nov 21 2021
🚨︎ report
Why Derw: an Elm-like language that compiles to TypeScript? derw.substack.com/p/why-d…
πŸ‘︎ 34
πŸ’¬︎
πŸ‘€︎ u/ugly_jar
πŸ“…︎ Jan 01 2022
🚨︎ report
Type Assertions in TypeScript - why not? mainawycliffe.dev/blog/ty…
πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/wmmaina
πŸ“…︎ Dec 30 2021
🚨︎ report
Coding in typescript is fun
πŸ‘︎ 64
πŸ’¬︎
πŸ‘€︎ u/Frankie_2154
πŸ“…︎ Jan 12 2022
🚨︎ report
Runtime Data Validation from TypeScript Interfaces

or: How I (ab)used the TypeScript compiler to enable transparent runtime data validation using Zod and TypeScript interfaces.

For one of my side-projects, I need a runtime validation system, but don't want to force the user to learn a whole new schema language. So, I hacked it into the compilation step. It was interesting, so I did a write-up:

https://garrettmills.dev/blog/2022/01/14/Runtime-Data-Validation-from-TypeScript-Interfaces/

πŸ‘︎ 21
πŸ’¬︎
πŸ‘€︎ u/glmdev
πŸ“…︎ Jan 14 2022
🚨︎ report
Options API - Typescript Integration

Hello everybody,

I'm a "newbie" that learnt vue2 and now has read the docs to upgrade to vue 3 but I have skipped all about composition API. I'm learning typescript also at the moment and it feels like indispensable to know what you are doing when handling big objects and external libraries.

The point is that I have read that options API doesn't works good with typescript / doesn't leverage the full power of typescript, but I think that (maybe) it would better to not have to learn composition API right now too.

So the question is, how much / what I'm going to miss about typescript using options API instead of composition API? It's really 100% recommend to upgrade from options to composition if you want good typescript strict "rails"?

Thanks for your time

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/H25E
πŸ“…︎ Jan 12 2022
🚨︎ report
Json property undefined when importing JSON [typescript]

Hi! I'm having this problem, not sure if it's next or typescript related.

i have a json like:

[{countries:[...]}, {continents:[...]}]

When i import and use it, I get this error:

Type '({ countries: string[]; continents?: undefined; } | { continents: string[]; countries?: undefined; })[]' is not assignable to type 'IndicatorField[]'

I don't understand why Json's type is casted to an union which can have each of the properties optional and undefined, when properties are clearly defined in the file.

has somebody had this problem?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/neutral24
πŸ“…︎ Jan 10 2022
🚨︎ report
The only thing I hate more than dates is TypeScript
πŸ‘︎ 55
πŸ’¬︎
πŸ‘€︎ u/miketierce
πŸ“…︎ Dec 31 2021
🚨︎ report
How to enable Top-level Await in Typescript alinalihassan.com/blog/to…
πŸ‘︎ 26
πŸ’¬︎
πŸ‘€︎ u/hassanalinali
πŸ“…︎ Dec 27 2021
🚨︎ report
I just made this cool app that shows PokΓ©mon. Using react native, typescript, redux, styled components using the PokΓ©mon api. v.redd.it/jlvztku5is781
πŸ‘︎ 44
πŸ’¬︎
πŸ‘€︎ u/BetoMoedano
πŸ“…︎ Dec 26 2021
🚨︎ report
TypeScript

Hi ppl, i'm looking forward to start learning TypeScript since i'v heard that we are planning on implementing it on a project soon.

Do you have any suggestions on where to start, some good free (or couple dollars) courses, and how to hit the best learning curve. I would be able to invest about an hour or two daily.

Currently i'm writting code in last version of React.

Arigato

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/MainStreetBrotha
πŸ“…︎ Dec 29 2021
🚨︎ report
Is it wise to learn Typescript before Javascript?

I know some Javascript but I have decided to master Typescript before going any further with JS, is that reasonable?

πŸ‘︎ 27
πŸ’¬︎
πŸ‘€︎ u/FallenDownReprise
πŸ“…︎ Nov 18 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.