投稿時間:2022-06-19 14:08:35 RSSフィード2022-06-19 14:00 分まとめ(8件)
カテゴリー等 | サイト名等 | 記事タイトル・トレンドワード等 | リンクURL | 頻出ワード・要約等/検索ボリューム | 登録日 |
---|---|---|---|---|---|
Ruby | Rubyタグが付けられた新着投稿 - Qiita | Railsでcheckboxとvalidationを使っただけなのに | https://qiita.com/flat35hd99/items/9888f296e3daef2aa754 | presencetr | 2022-06-19 13:01:11 |
Docker | dockerタグが付けられた新着投稿 - Qiita | Docker未経験の素人がSpring + MySQL + で開発環境を構築したら | https://qiita.com/be834194/items/461cc2073870c791431b | docker | 2022-06-19 13:55:19 |
Docker | dockerタグが付けられた新着投稿 - Qiita | 仮想マシン上にDockerをインストールする | https://qiita.com/Cobochan-O/items/3af0ff3d20f59d8e94ba | 参考文献 | 2022-06-19 13:33:04 |
Ruby | Railsタグが付けられた新着投稿 - Qiita | Railsでcheckboxとvalidationを使っただけなのに | https://qiita.com/flat35hd99/items/9888f296e3daef2aa754 | presencetr | 2022-06-19 13:01:11 |
技術ブログ | Developers.IO | [DynamoDB] UserErrors が発生した場合に、その原因をCloudTrailで確認してみました | https://dev.classmethod.jp/articles/dynamodb-user-errors/ | dynamodbstrea | 2022-06-19 04:13:46 |
海外TECH | DEV Community | JavaScript to TypeScript | Complete Guide with React ⚛️ | https://dev.to/suchintan/javascript-to-typescript-complete-guide-with-react-1nd8 | JavaScript to TypeScript Complete Guide with React ️ Table of ContentIntroductionIntroduction to TypeScriptVariablesFunctionsMultiple TypesClassesReact TypeScript Project StructureModelsApisComponentsPagesThank you Introduction Hello amazing developer before digging into this topic let me give you a small introduction and so instructions Don t worry it would be quick and crisp I am Suchintan Das a Full Stack Developer currently working over two startups I have been into web development for past two years Connect me on LinkedinThe whole syntaxes and code are uploaded on this Repository If you find it useful you can star the repository to show a appreciation Thanks Introduction to TypeScript I know most of you guys who are reading this blog are either not familiar with TypeScript or have a little knowledge about TypeScript as a whole Don t worry in this whole blog we are going to cover every single thing from the start to bottom and even if you are new to TypeScript you can build a good project easily along with React Let s first understand some important syntaxes of TypeScript I will be explaining the syntaxes considering that you are coming from JavaScript background and have knowledge about the syntaxes of the same Variables JavaScript let a check let b let c h element let d let e false let f check let g c h let i nulllet j undefinedlet k h element TypeScript let a string check let b number interface ctype h string let c ctype h element let d Array lt number gt let e boolean false let f string number check tuplelet g string c h let h unknown noideaabout a variable whose type is not known it could be a string object boolean undefined or other types but not numberlet i null nulllet j undefined undefinedlet k Array lt ctype gt h element Functions JavaScript let func arg gt return str let func arg gt TypeScript const func arg number string gt return str const func arg number void gt Multiple Types JavaScript function randomfunc arg randomfunc shape check randomfunc shape undefined xPos randomfunc shape yPos randomfunc shape check xPos yPos TypeScript interface typeOptions shape string undefined number multiple types to same parameter xPos number optional parameters yPos number optional parameters function randomfunc arg typeOptions randomfunc shape check randomfunc shape undefined xPos randomfunc shape yPos randomfunc shape check xPos yPos Classes JavaScript class Check a b const ch new Check ch a ch b check string TypeScript class Check a number b string const ch new Check ch a ch b check string Now that we are familiar with all the syntaxes of TypeScript we can now dive into React with TypeScript full project setup Let s go React TypeScript Project Structure Here s a small peak to the Project Let s start the React Project with TypeScript Template using the commandnpx create react app client template typescriptNote To explain the whole structure I will be making a todo list project so that everyone can get an idea how to implement the same on any other project or product React TypeScript with Project Models ITask tsexport interface Tasks id number title string content string export interface TaskList extends Array lt Tasks gt export interface TasksProps d TaskList undefined changed Function Here s you can see for this project there are interfaces that I used First interface Tasks is description of elements of the Array of Objects and the second interface TaskList is the declaration of array of the interface Tasks Thirdly there is another interface TasksProps which is used here to describe all the props typing while passed between components Apis Task tsimport axios from axios import TaskList Tasks from models ITask import token from utils authController const baseUrl http localhost receive tasksexport const getTasks async gt try const response await axios get baseUrl tasks gettasks headers Authorization bearer token return response data as TaskList catch e console log e add tasksexport const postTasks async data Tasks gt try const response await axios post baseUrl tasks addtasks data headers Authorization bearer token return response status as number catch e console log e Here I have used axios for making backend calls The preference can go different for you The main idea here is to make a typing of arguements and return types each function would be having so that any developer can make a call in the right syntax and do get the desired form of response body Controllers authController tsxexport const token localStorage getItem idtoken as stringControllers are an essential element for frontend developers Things which decide the flow of the website are mostly the controllers of a website Like here the authentication part is put into the controllers as it would be a flow decider for mostly all the components Components Header tsximport React useState from react import Header css const Header gt return lt nav gt lt h gt Todo List lt h gt lt nav gt export default HeaderTaskInput tsximport React useState useEffect from react import postTasks from apis Tasks Task import TasksProps from models ITask import Home from pages Home Home import TaskInput css export const TaskInput React FC lt TasksProps gt d changed TasksProps gt states const callapi setcallapi useState lt Boolean gt false const sendd setsendd useState lt Boolean gt false const content setcontent useState lt string gt const title settitle useState lt string gt console log TaskInput console log d api call useEffect gt const senddata gt postTasks id d length title title content content then res gt if res let updatedata Array lt Object gt undefined d updatedata push id d length title title content content console log updatedata changed updatedata catch error gt console log error if sendd senddata changed callapi return lt div className taskinput gt lt h gt Add Tasks lt h gt lt input type text placeholder title onChange event gt settitle event target value gt lt textarea name content id cols rows placeholder content onChange event gt setcontent event target value gt lt textarea gt lt div className add gt lt button onClick gt setsendd true callapi setcallapi false setcallapi true gt Add lt button gt lt i className fa solid fa plus gt lt i gt lt div gt lt div gt export default TaskInput Tasks tsximport React useEffect useState from react import getTasks from apis Tasks Task import TaskList TasksProps from models ITask import Tasks css export const Tasks React FC lt TasksProps gt d changed TasksProps gt states const callapi setcallapi useState lt Boolean gt false console log Tasks console log d api call useEffect gt const receivedata gt getTasks then res gt changed res catch error gt console log error receivedata callapi return lt div className tasks gt d map ele gt return ele null lt div className task key ele id gt lt h gt ele title lt h gt lt p gt ele content lt p gt lt div gt null lt div gt export default Tasks Here s a small summary of all the components TaskInput component is sent two props whose typing are already been declared on models The props are the states sent from parent component Home tsx to TaskInput tsx and Tasks tsx so any changes in any of the child component gets reflected on the other component The api calls also have been declared already and the function call is made from the components for the data Pages Home tsximport React useState from react import Header from components Header Header import TaskInput from components TaskInput TaskInput import Tasks from components Tasks Tasks import TaskList from models ITask import Home css const Home gt const data setdata useState lt TaskList undefined gt return lt gt lt Header gt lt div className dashboard gt lt TaskInput d data changed setdata gt lt Tasks d data changed setdata gt lt div gt lt gt export default HomeThe states for data are declared on the parent component and sent as props to child components to make data changes on any child components reflect back to the other child It s possible as the pointer to the state is sent to the childrens Thank you You have made it till the end of this blog More such blogs are on the line It would be encouraging if a small comment would be there on the blog I go through each one of them so do comment If you want to get a notification when it would be published don t forget to tap on the follow button And at last I want to say Keep coding ️⃣ keep rocking | 2022-06-19 04:30:26 |
海外TECH | DEV Community | Becoming a Modern Developer - Week 0 | https://dev.to/mittell/becoming-a-modern-developer-week-0-4n85 | Becoming a Modern Developer Week IntroductionWelcome to Week Yes you read that correctly This is the week before the start of my journey towards Becoming a Modern Developer If you haven t read the introduction to this journal diary series then I would recommend you do for some background but I ll try and summarise it here At the end of I moved from the UK to Japan and decided to try and look for work as a Software Developer However my experience of working in the UK differs greatly from the demands of many roles here so I intend to fix that I also want to document my journey findings and thoughts throughout this process partly as a way to record and monitor my progress and maybe to serve as something which might be useful and or insightful to anyone else BackgroundIn my last post I said I would outline my plan to achieve this and I thought I d pinned down my ideas pretty well but I can t help but have some doubts So I figured I d try and work them out in writing here Let s start with my biases and preferences then the hopefully somewhat objective requirements and finally the plan to achieve them In the time between trying to work out my future and getting to Japan so around to I d spent some time learning little bits of different technologies to try and open my eyes to some of the other development practices and opportunities out there in the wider world For reference a lot of work available to me was in the form of era NET and PHP roles where the use of HTML CSS and JavaScript had pretty much stayed the same for the last decade Though the occasional reference to modern frameworks circa would become common I initially started with learning Angular since that would encourage me to learn TypeScript and improve my ageing JavaScript knowledge This led me to look at Node and I completed Colt Steele s The Web Developer Bootcamp course on Udemy to get a better handle on modern Front End practices and introduce myself to the Node ecosystem The course has since been rewritten which I ll get to shortly By I d even dabbled in React working with Google Firebase and had followed numerous tutorials on general website building I began to feel right at home using VSCode working with modern HTML CSS and even ES flavoured JavaScript I d modernised my understanding of C and NET specifically NET Core at the time since that was more important in terms of finding work in the local area As COVID hit I somehow found employment twice actually but that fact is a story for another day And while I was able to use the modern skills I d gained in C and NET I wasn t building upon the other things I had learned While I was fortunate to work within a team that had started working with Vue it was only scratching the surface of what was actively being done with modern JavaScript and SPA Frameworks 🥲Since arriving in Japan I began to revisit Node and intended to continue my education in Vue improving my understanding of Vue Router and Vuex etc Along with introducing NoSQL and GraphQL in order to get to a point where I could generally recreate anything I could do in C and NET but with JavaScript and Node instead That was the initial plan anyway But since I started looking and applying for work several factors have become reality again they were covered in the last post if you wish to read them The PlanOh yeah The plan I said I d get to it To build up to and consider myself a Modern Developer I ve come up with points or goals that I need to meet along with my rationale Improve my confidence working with the Front End along with at least one in demand SPA Framework I ve been a Back End developer for most of my development life but always dabbled in the Front End when needed While I can happily look around HTML and CSS I ve never been that great with building appealing and flexible layouts I would love to continue what I have with Vue but the fact that React is in higher demand and what I wish to cover is practically the same literally starting from scratch it makes sense to pursue this goal with React instead Continue to build upon my Back End experience but within a non Microsoft language and ecosystem I had previously written that the following languages are in high demand here Java Kotlin Python Ruby Go and Rust But I neglected to mention that Node was also in there granted it doesn t come up as much as Java or Python But there is certainly a demand for it and often seen paired alongside React at least I ve already re started learning to work with Node this year and I feel that continuing to use JavaScript and in time TypeScript when combined with a SPA Framework would at least give me a strong grasp of one alternative language to what I already have There is the temptation to jump into Java or Python but there is already so much to learn as it is I don t want to complicate it any further by adding yet another language into the mix I wouldn t be averse to maybe dabbling in one of them at a later point once I d got myself a pretty solid grounding with the rest of the points in this plan Get good at writing tests and often maybe even venturing into Test Driven Development territory I come from a world where writing tests was either unheard of or just a practice in wasting time that could be better spent on writing well better code I ve come to learn this isn t the best mindset to think of testing and instead see it as another tool in your arsenal of software development Having worked a little bit with testing Node using Mocha and Chai I would like to push myself into using something like Jest another testing library that is often mentioned concerning JavaScript Testing in general React has its own React Testing Library which I believe can sit alongside Jest without issue so it makes sense to learn to work with that in addition As for the practice of Test Driven Development itself I d say I would prefer to be more competent with using the tools available to me to start with before I begin improving the process of using them However this might come back to bite me Learn GraphQL When I first tried to learn React I remember following tutorials which used GraphQL to query data from an external source as an alternative to working with a RESTful API But since nobody was asking for this anywhere around me the need to learn this was nothing more than an idea However in Japan it s very clearly in demand and not having any real experience with it is only hurting my chances of finding work Improve my understanding of NoSQL database technologies and working with non Microsoft SQL databases In short this means getting to grips with MongoDB for the most part it s clearly in demand and versatile enough to accommodate numerous different applications I ve been learning this somewhat with my Node education so I just need to continue on this path As for SQL well I have experience but I don t technically remember most of it SQL is something that I started very heavily with during my first developer role working with Microsoft Access there will be a post on that one day Since then I learned to work with ORM Object Relational Mapping libraries that took care of most of the heavy lifting and therefore didn t really need to write any SQL since Not to mention I was in a Microsoft world which means SQL Server is all that exists ever In Japan I see MySQL and PostgreSQL mentioned a lot not as much as MongoDB but often alongside it since we just can t escape SQL no matter how hard we try So I need to become more familiar with working with either technology really and since I m learning Node it means learning new ORM libraries to achieve just that Containers learn how they work and how to implement them This one is pretty simple to define learn Docker and Kubernetes I need to know how to containerise an application and deploy it along with how to orchestrate the creation allocation and management of containers These two technologies are in demand and I don t think I ve seen a job description without them though it s often listed as a preferred skill You also can t learn these and avoid the idea of Microservices which does dictate an applications architecture and deployment process I don t want to fully commit to going down this route yet but I at least need to become familiar with the concepts around Microservices Build experience working with Cloud Computing Services This one is a little complicated Not because of time or experience but due to potential costs While these services often have free and limited free tiers it s a little concerning that costs can accrue from having just a few applications hosted and maybe the wrong configuration for them in place I m not talking from experience with Microsoft Azure and hosted SQL Server instances or anything In regards to demand AWS seems to be the primary candidate followed by GCP I ve found that since the Microsoft ecosystem is barely mentioned here Microsoft Azure only gets a passing mention with roles that just want any form of experience in this area It makes sense to look at AWS for this goal and I know some of the material I have to study uses it too There is a month limited free tier that would probably give me enough time to learn and use what I need not just for the study material but for my own efforts too But I m hesitant due to potential costs since well I m unemployed Learn the Theory from Structures to Algorithms Design Patterns to Anti Patterns Architectural styles and general solution designing I don t come from a Computer Science background my education of choice was Computer Games and Drone Technology Even though software was an unavoidable part of either degree there was never any real fundamental education in technical theory and design Something I wish I d considered strongly at the time of making those decisions but alas hindsight wins again I have already started on this by looking into formal definitions of Data Structures and measuring Algorithms there s certainly plenty to get myself into over the next months But I do need to expand my understanding of the use of Design Patterns how they can turn into Anti Patterns and how best to design software solutions when faced with a problem that needs solving etc You could argue that this is something that is encountered every day by anyone who considers themselves or works as a Software Developer by trade but the truth is anyone can write code that works and for a lot of people that s all they need Something that works If you really want to understand what you are doing and wish to work in a manner that enables you to build real solutions that will last you are going to need to know a bit more than writing code that just works Put Theory into Practice I need to learn how to solve code based problems explain technical concepts design solutions and demonstrate via diagrams and whiteboard drawings This out of all the goals terrifies me the most It s one thing to be able to write code and to think you understand it but when pressed to explain and demonstrate it I don t blame anyone for faltering I know I do Interviewing in the UK for me never really stretched beyond a simple job application and interview I think in the last couple of years there would be the odd request to build something But it just wasn t the norm to do anything more than that at least where I was based anyway But Japan like what I d seen with pretty much everything else online has demands for passing Code Tests and Assessments along with several rounds of interviews which I d assume would cover more than just the team I d be working with or the manager I d work under Preparing to show what I can do is going to take a LOT more work than just learning different technologies this needs to be part of the process throughout my journey I have started a little on this goal since my fear of interviews here pushed me to rush into finding something I could work through But what I need to do is spend just a little bit of time each week it could be a code challenge each day or just a couple each week to start with Building up to writing out solutions in the form of diagrams or whiteboard drawings and starting to try and explain my thought process Some of this can be demonstrated with sites like LeetCode and HackerRank and maybe getting to a point where I can tackle something regularly on those sites would be a good place to reach too I ll be honest I m still a little fuzzy on this goal purely because of my current feelings around it and the anxiety it induces But the only way to achieve this one is by constant incremental effort In PracticeSo that s my plan for now I feel like there is a chance for it to flex and change depending on what I learn or how I think demand is shaping here But to start with it seems a pretty clear set of things that need to be achieved But I feel like something is still missing I didn t really explain my execution did I Since it s all well and good saying what I NEED to learn but what about the HOW Well again this is something I kinda took care of a while ago back when I was in the UK and had an income Having spent a large number of hours on sites like YouTube PluralSight Udemy and LinkedIn Learning I found myself hoarding a series of courses covering several different topics I was curious about Most of these are on Udemy and while my opinion of the quality of courses there varies I feel like I have enough content to cover my goals to an extent I mentioned Colt Steele s course The Web Developer Bootcamp which has since been redone from when I last completed it I have actually been working through this very slowly from the start of this year I had hoped to have it finished by the end of this week to make both mental and physical room for moving on these goals However due to personal delays and interview preparations I haven t managed to finish the course just yet and should be able to have this completed within the next week With theory I ve hastily started Stephen Grider s course The Coding Interview Bootcamp Algorithms Data Structures which I think I will resume alongside the primary material I ll be studying during the coming weeks As for the goals themselves here are a few of the courses I m looking to work through General Front End Projects In Days HTML CSS amp JavaScriptThe Complete Junior to Senior Web Developer Roadmap Advanced CSS and Sass Flexbox Grid Animations and More Client Side Data Storage Ultimate GuideProgressive Web Apps PWA The Complete Guide SPA ReactReact The Complete Guide incl Hooks React Router Redux The Modern React Bootcamp Hooks Context NextJS Router React and Typescript Build a Portfolio ProjectNext js amp React The Complete Guide incl Two Paths Microservices with Node JS and ReactMicrofrontends with React A Complete Developer s Guide General Back EndNodeJS The Complete Guide MVC REST APIs GraphQL Deno The Modern GraphQL Bootcamp with Node js and Apollo Understanding TypeScript EditionUnit Testing for Typescript amp NodeJs Developers with Jest Project BuildsBuild a Google Meet Clone from Scratch WebRTC amp Socket ioCreate a Twitter Clone with Node js Socket IO and MongoDB Theory Practice amp InterviewsMaster the Coding Interview Data Structures AlgorithmsMaster the Coding Interview Big Tech FAANG InterviewsWould you believe this isn t an exhaustive list This is where my ADHD seems to show itself and yes it can make things a huge barrier to entry for me Staring at that list alone is hardly motivation for climbing the mountain ahead So I m not I just thought I d mention it here for the sake of illustrating how my brain might try and see things For managing this I m currently using Trello which was filled out with these courses along with time estimations long ago So all I have to do is pick one and drag it to an Active list record my time and maybe some notes and return it to the Course list By giving myself the freedom to pick and choose what I work on rather than staring at a never ending list provided I make sure to log time etc I should be able to keep an accurate and living record of what I m working on and the progress I ve made I ve already started taking this approach with writing this series as it too is a task I can drag into the Active list and log time against etc ConclusionThat s all for my plan currently and I should probably get back to my interview prep and finish off Colt Steele s course plus I really want to start a React course as soon as possible Thanks for reading if you made it this far and thanks again if you somehow made any sense of it See you next week | 2022-06-19 04:04:44 |
ニュース | BBC News - Home | Newspaper headlines: New strike 'chaos' and Johnson warns of long war | https://www.bbc.co.uk/news/blogs-the-papers-61854990?at_medium=RSS&at_campaign=KARANGA | front | 2022-06-19 04:29:01 |
コメント
コメントを投稿