10/14 ã® Tech Play ã§ã®çºè¡¨è³æã§ã https://techplay.jp/event/873259
2022å¹´10æ1æ¥ã«éå¬ããã #postdev ã§ã®çºè¡¨ã§ã
社å ç¨ã®åçºè¨äºã§ãããéããçç±ããªãã®ã§ããã«æãã¾ãã ãã©ã¦ã¶ã«ã¹ã£ãããªã³ã¼ããæ¸ãã¦ãã¨ããã©ã¦ã¶ã node.js åºæã®ç°å¢ãã¤ã³ã©ã¤ã³ã§è¨è¿°ãã¦ãã¾ããã¨ãå¤ã ããã¨æãã¾ãã ããã¦ãã¡ãã¡ãªãã©ã¦ã¶åãã®ã¨ã³ããªãã¤ã³ãã®ä¾ãæ¸ãã¾ãã // main.ts let id = localStorage.get('id'); if (!id) { id = `${navigator.userAgent}-${Math.random()}`; localStorage.set('id', id); fetch('/auth', { method: 'POST', credentials: 'include', body: JSON.stringify({ id, at: Date.now(), }), headers: {'Content-Type': 'applicat
fullstack TSãªã¢ããªã±ã¼ã·ã§ã³ãå¢ãã¦ããæ¨ä»ãTSã§validatorãå®è£ ããéã«ä½ãæ¡ç¨ãããã¯ä¸å¤§ãããã¯ã§ããä»åã¯ããã®ä¸ã§ãæ°ãããªã©ã¤ãã©ãªã§ããBlitzãæ¡ç¨ãã¦ããZodã«ã¤ãã¦è¦ã¦ããã¾ãã Zodã¨ã¯ Zodã®ç¹å¾´ã¨ãã¦ãSchema firstãªvalidationã©ã¤ãã©ãªã§ããã¨ããã®ãããã¾ãã validateããschemaï¼åä¸ã®schemaããobject, arrayã¾ã§ï¼ãå®ç¾©ããããããã¼ã¹ã«parseããã¨ãããã®ã§ãã å ¬å¼ã«ããexampleãè¦ã¦ã¿ã¾ãããã import { z } from "zod"; // creating a schema for strings const mySchema = z.string(); mySchema.parse("tuna"); // => "tuna" mySchema.p
æè¿éçºãã¦ããBtoB SaaSãµã¼ãã¹ã®æè¡ã¹ã¿ãã¯ããRailsããNode.jsã«ç§»è¡ããã ããã«ãããããã³ãã¨ã³ããããã¯ã¨ã³ããå ¨ã¦ãTypeScriptã§çµ±ä¸ãããã¨ãã§ããã ç¹ã«Node.jsã®Webããã¯ã¨ã³ãã®æ§æã«ã¤ãã¦ãã¾ã ã¾ã ä¸ã®ä¸ã«ç¥è¦ãå°ãªãæ°ããã¦ããã®ã§è¨äºã«ãã¦ããã Webããã¯ã¨ã³ã - Node.js(TypeScript) Nexus/Apollo Server (Webãµã¼ãã¼) GraphQLãµã¼ãã¼ã¨ãã¦ãApollo Serverã®ã³ã¼ããã¡ã¼ã¹ããªã¢ããã¼ãã§ã®ã©ããã¼ã§ããNexusã使ã£ã¦ããã Railsããã®ç§»è¡ã決æã§ããã®ããApollo Serverã¨Prismaã«ãããå¤é¨ã¨ã®éä¿¡ãåä»ãã§ããã¤éçºä½é¨ããæ¸ããããã«ãªããããã¨ããã®ã大ããããã æ°å¹´åã®æ®µéã ã¨ãç´ ã®expressã使ã£ã¦Webãµã¼ãã¼ãç«
2åç®ãå ¬éä¸ãªã®ã§ã¿ã¦ãã ããï¼ https://zenn.dev/tatta/books/4e993c596e7dc9 TypeScriptã使ãã¯ããã¦1å¹´ã«ãªãã®ã§ãããã¯ã¨ã³ãã®Webã¢ããªãè¨è¨ããã¨ãã«æ°ãä»ãã¦ãããã¨ãã¾ã¨ãã¾ãããï¼â»ç¤¾å åå¼·ä¼ç¨è³æã®å ¬éçã§ããï¼ TypeScriptã«ã¤ãã¦ã¯ãNext.jsãä¸å¿ã«ããã³ãã¨ã³ãã«é¢ããå ¬éæ å ±ãè±å¯ã§ããä¸æ¹ã§ããã¯ã¨ã³ãã«é¢ããå ¬éæ å ±ãå°ãªãã¨æãã¦ãã¾ããï¼ããããç§ãNext.jsããTypeScriptããã¥ã¼ããããã§ããï¼ TypeScript * GraphQL ã¨ããæ§æã¯ä»äºã»è¶£å³ã§æ¡ç¨ããã¦ããæ¹ãå¤ãã®ã§ã¯ãªãã§ããããï¼ ç§ããã®1人ã§ããç§ã®ãããªæ¹ã®ããã«ããããã¯ã¨ã³ãã®è¨è¨ãã©ã¯ãã£ã¹ã«ã¤ãã¦ã¾ã¨ãããã¨æãçãåãã¾ããã æ¬æ¸ãããããå§ããèªè ã«ã¨ã£ã¦ã¯æç§æ¸ã®ããã«ãªãã
2021-01-21 TypeScript10 bad TypeScript habits to break this yearTypeScript and JavaScript have steadily evolved over the last years, and some of the habits we built over the last decades have become obsolete. Some might never have been meaningful. Here's a list of 10 habits that we all should break. If you are interested in more articles and news about web product development and entrepreneurship,
5: ãã¹ãã³ã¼ãã§ãåã®è¦æ±ãé¨åçã«ããæºãããªãã¢ãããã¯ãªãªãã¸ã§ã¯ããanyã«ãã£ã¹ããã¦ã¢ãã¯ã¨ãã¦ä½¿ãã®ã§ã¯ãªããã¡ããã¨ããã¢ãã¯ãä¸ç®æã§å®ç¾©ãã¦ããã使ã 6: ãªãã¸ã§ã¯ãã®ç¨®é¡ã«ãã£ã¦ããããããã£ãæã£ã¦ãããæã£ã¦ããªãã£ããããæã«ã?ã§ãªãã·ã§ãã«ãªããããã£ã«ããã®ã§ã¯ãªããã©ããã種é¡ã®æã«æã£ã¦ããã®ããã¤ã³ã¿ã¼ãã§ã¼ã¹ã§æ示ãã
åæ©ã¨ç®ç æ®æ®µãNext.jsã§ã¢ããªã±ã¼ã·ã§ã³ãéçºãã¦ãã¾ããå½å㯠Next.js ã«ã TypeScript ã«ãæ £ãã¦ããªãã£ãããããã¼ã¸ã®ãã¹ãå®æ°ã§å®ç¾©ããLink ã³ã³ãã¼ãã³ãã§å¼ã³åºãã¦ãã¾ããã // constants/path.ts export const TOP_PATH = '/' export const USERS_PATH = '/users' // ...
ã¿ãªããTypeScriptã§ãµã¼ãã¢ããªã±ã¼ã·ã§ã³ï¼Node.jsï¼ã®ãã¸ãã¯ãæ¸ãæã«ãç°å¸¸ç³»ã®è¡¨ç¾ãã©ã®ããã«ããã¦ãã¾ãã§ããããï¼ããã§ããç°å¸¸ç³»ã¨ã¯ãä»æ§ä¸æ³å®ãããç°å¸¸ã®ãã¨ã§ããæºæ£å¸¸ç³»ã¨è¨ã£ããããããã¨æãã¾ãã ç§ã¯JavaScriptã®å»¶é·ã§TypeScriptãã¯ãããã®ã§ãæå㯠null ã undefined ãè¿ããã throw ãç¨ããããæ¹ããã¦ãã¾ãããã次第ã«TypeScriptãæã¤åãçãããã§ããã ãåå®å ¨ã«ç°å¸¸ç³»ã表ç¾ãããã¨èããããã«ãªãã¾ãããããã¦è©¦è¡é¯èª¤ããçµæãããæãã®è½ã¨ãæã«è½ã¡çããã®ã§ããã®å 容ã«ã¤ãã¦ãä¼ããããã¨æãã¾ãã ã¾ãè¨äºã®å¾åã§ã¯ãç°å¸¸ç³»ã®åãå®è£ ããä¸ã§ããã£ãç¹ã«ã¤ãã¦ããä¼ããããã¨æãã¾ãã TypeScriptã®ç°å¸¸ç³»è¡¨ç¾ã«ã¤ã㦠1. nullãundefinedãè¿ã åé ã§ãè¿°ã¹ããã
ã¯ããã« ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®all-userã§ãï¼ ããã¯delyã¢ããã³ãã«ã¬ã³ãã¼9æ¥ç®ã®è¨äºã§ãã æ¨æ¥ã¯ãããã¯ããã¶ã¤ãã¼ã®kassyãããã¬ã¼ã³ãããã¶ã¤ã³ã¨ã¨ã³ã¸ãã¢ãªã³ã°ãã¤ãªãããã«éè¦ãª3ã¤ã®ãã¨ãã§ããã dely.design éçºç¾å ´ã§ãç´é¢ãããã¨ã®å¤ãã³ãã¥ãã±ã¼ã·ã§ã³ã®åé¡ã¨ãããã«å¯¾ãã¦å¿æãã¦ãããã¨ã«ã¤ãã¦æ¸ããã¦ãã¦ãããããã¨ããªãããªããèªãã§ãã¾ãã¾ããããã²ãã¡ããã覧ãã ããï¼ ããã§ã¯ãTypeScriptã使ã£ãã¯ã©ã·ã«ã®ããã³ãã¨ã³ãéçºã®ä¸ã§ãæããã¸ãã¨ãªã£ãããªãã¢ãã¡ãç´¹ä»ãããã¨æãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ 1. 循ç°ä¾åã®ã¨ã©ã¼ãåé¿ããæ¹æ³ ã©ããã¦ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã®ãï¼ ã¨ã©ã¼ãåé¿ããæ¹æ³ ã©ããã¦ã¨ã©ã¼ã«ãªããªãã®ãï¼ å ¨ã¦ã®ã¨ã©ã¼ãåé¿ã§ããããã§ã¯ãªã Parcel, Rollup,
trusted by K active monthly developersBuild data-driven applications â with a great DX Prisma provides the best experience for your team to work and interact with databases. Even complex things like connection pooling, caching, real-time database subscriptions are a breeze with our products. Build your application, fortify to make everything run smoothly, and grow with your users and requirements.
TypeScriptã®åã·ã¹ãã ã¯ãã¦ããªã³åãå§ãã¨ããæ§ã ãªæ©è½ãæã£ã¦ããã®ãç¹å¾´çã§ãã ãã®ä¸ã§ããmapped typesã¨conditional typesã¯é«åº¦ãªæ©è½ã¨ãã¦ç¥ããã¦ãã¾ãã ã¨ãããããã®æ©è½ã®è¨å¤§ããããå ¨ã¦ã使ãããªãå¿ è¦ã¯ãªããTypeScriptã®è¤éãªæ©è½ãç¡éã«ä½¿ãã¹ãã§ã¯ãªãã¨ããè¨èª¬ã¯ãã³ãã³ç¾ãã¾ãã ãã®ã¨ãã«æ§çã«ä¸ãããããã®ãmapped typesã¨conditional typesãªã®ã§ãã çè ã¯ããããã®æ©è½ã¯ä½¿ããã ã使ãåãã¹ãã§ããã¨ããèããæã£ã¦ãã¾ãã 主張ã®æ ¹å¹¹ã«ã¯ãé«åº¦ãªåã使ãã°ããæ£ç¢ºã«ã¤ã³ã¿ã¼ãã§ã¼ã¹ãè¨è¿°ãããã¨ãã§ãããã¨ãããã¦æ£ç¢ºãªã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ä½¿ãããããæ£ç¢ºãªåæ¨è«çµæã«è²¢ç®ãããã¨ãããã¾ãã æ£ç¢ºãªã¤ã³ã¿ã¼ãã§ã¼ã¹ãåæ¨è«çµæã¯ãã³ã¼ãã®ç解é度ãéçºå¹çãä¿é²ãã¾ãã ãããã¯åã·
æ¦è¦ Rest API ãçµç±ãã¦ãã¤ãã¿ã¼ã®ãªãã¤ã¼ãæ å ±ãåå¾ãã Aurora DB ã«æ ¼ç´ãããµã³ãã«ãã¼ã« twitterer ãã以ä¸ã®æ§æã§å®è£ ããã ãã®éç¨ã§ 5000å åãããããè½ã¨ãç©´ãè¸ã¿æããã®ã§åãæ¹ãæ¸ããã¨æã£ããã 1æ¥çµã£ããéç¨ãã»ã¨ãã©å¿ããã®ã§ã¡ããã¨åãçµæã主ã«æ¸ãæ®ãã AWS Aurora Serverless (MySQL5.6) ServerlessFramework Lambda Node.js TypeScript express typeorm typeorm-aurora-data-api-driver åæã¨é¢é£è¨äº Aurora Serverless DB ãä½ã£ã¦ Node.js(TS) ãã使ã ãåæã¨ãã¦ãã¾ãã Aurora Serverless MySQL(5.6) ã§æ¥æ¬èªãã¼ã¿ãæ±ããããã«ãã ãè¨å®ãã¦
åãTypeScriptã¨ããè¨èªãå©ç¨ããå ´åã«ããã¦ãããã©ã³ã¹ãã¤ã©ã«ãã£ã¦TypeScriptèªä½ã®æ©è½å¶éãããã£ãããæãã¬ãã©ãã«ãæãå ´åãããã¾ããããããã®ãã©ã³ã¹ãã¤ã©ã®ç¹å¾´ãè¸ã¾ããä¸ã§ãããã«ããçããåé¡ãè¦ã¦ããã¾ãããã 1-1. tsc TypeScriptã®éçºå ã§ããMicrosoftç´æ£ã®TypeScriptãã©ã³ã¹ãã¤ã©ã§ããTypeScriptãå©ç¨ããéã« typescript ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãããããã«å梱ããã¦ãã¾ãã å ¬å¼ãã¼ã«ãªã ããã£ã¦æãæ©ãææ°ãã¼ã¸ã§ã³ã®TypeScriptã«å¯¾å¿ããããè¨èªãã¹ã¦ã®æ©è½ãå©ç¨ãããã¨ãã§ããä¸æ¹ã§ããã³ãã©ã§ã¯ãªãããminifyãchunkã®è¨å®ã¯ã§ãã¾ãããã¾ããPath Aliasesã®æªè§£æ±ºãæ§ESã¸ã®äºææ§ãä¸å®å ¨ã§ãããã¨ãæ¬ ç¹ã¨ãã¦æãããã¾ãã tsco
ãã®è¨äºã¯ Recruit Engineers Advent Calendar 2019 ã® 23æ¥ç®ã®è¨äºã§ãã TypeScript ã®ããã¸ã§ã¯ã㧠React ã³ã³ãã¼ãã³ããæ¸ãã¦ããã¨ãã³ã³ãã¤ã©ã«æããããã¨ããã³ãã³ããã¾ãããããä¸ã«ãããµã³ãã«ã³ã³ãã¼ãã³ãã JavaScript ã§æ¸ããã¦ããã¨ãããã¸ã§ã¯ãã«ãã£ã¦ããã¨ãã«ã³ã³ãã¤ã«ã§ããªãã¨ãããã¨ã¯ããããããããªãã§ãããããany ã§ã³ã³ãã¤ã©ãé»ããããã¨ãã§ãã¾ããããã£ãã TypeScript ã使ã£ã¦ããã®ã§ãå®å ¨ã«è§£æ±ºãããããã£ã¦ãã¨ã§ãã®ãããªè¨äºãæ¸ãã¾ããã åå®ç¾©ã¯ @types/react@16.9.17 ã«ãããã£ã¦ãã¾ããç®æ¬¡ãã¿ã¦ããã®ç¨åº¦ã®ãã¨ã¯ããç¥ã£ã¦ãããã¨ããæ¹ã¯ react-typescript-cheatsheet ãã¿ã¦ãã ãããReact + TypeScr
ããã«ã¡ã¯ãç·¨éé·ã®ç½ç³ã§ãã ãã®è¨äºã¯ã9æ24æ¥ã«éå¬ãããHTML5 Conference 2017ã«ç»å£ããã¨ãã¹ãã¼ãã«ãã話ãããã»ãã·ã§ã³ã®ãããã¯ãä¸å¿ã«èªã£ã¦ããã ããã¨ãããã®ã§ããã»ãã·ã§ã³ã®å 容ãããæ·±ãç解ããæå©ãã«ãªãã ãã§ãªããæ¬è¨äºåä½ã§ãé¢ç½ãèªãã§ããã ãããã¨ãç®æãã¦ãã¾ãã ä»åã話ã伺ã£ãã®ã¯ãæ ªå¼ä¼ç¤¾ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã®ééå¥å©ããã§ãã ééããã®ã»ãã·ã§ã³ãDeep dive into TypeScriptãã«é¢ããã¹ã©ã¤ãè³æã¯ããã¡ãã§å ¬éããã¦ãã¾ãã ãªãæ¬ç¨¿ã®ãµã³ãã«ã³ã¼ãã¯ãã»ã¨ãã©ãä¸è¨ã¹ã©ã¤ãããå¼ç¨ãããã®ã«ãªãã¾ãï¼ä¸é¨èª¬æãç°¡ç¥åãããããééããã®è¨±å¯ãå¾ã¦çè ãæ¸ãæããé¨åãããã¾ãï¼ã çè ããã®ãè©«ã³: ä»åã®ã¤ã³ã¿ãã¥ã¼ãããã³å¯¾è±¡ã»ãã·ã§ã³ã¯å¤§å¤å 容ãæ¿ããè¨äºã«ããã¨é·å¤§ã«ãªããããï¼ã¹ã©ã¤ãè³æ
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}