A list of puns related to "Typescript"
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?
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...
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
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 :)))
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!
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?
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
π
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:
Let me know what you think!
https://github.com/CharlieDigital/vue3-pinia-quasar-ts
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:
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.
[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.
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
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?
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:
Code:
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.
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" },
],
}
tsconfig.backend.json
points to src/server.ts
& src/utils/db.ts
via the includes
setting.
tsconfig.frontend.json
points to src/assets/js/client.ts
via the files
setting.
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:
Make VSCode Intellisense and type/error checking work with the tsconfig files.
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
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!
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:
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.
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.
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.
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?
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/
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
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?
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
I know some Javascript but I have decided to master Typescript before going any further with JS, is that reasonable?
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.