IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 北京五輪の「日本人金メダリスト」予想 3位「平野歩夢」、2位「高木美帆」、1位は? |
https://www.itmedia.co.jp/business/articles/2202/04/news166.html
|
itmedia |
2022-02-04 21:30:00 |
AWS |
lambdaタグが付けられた新着投稿 - Qiita |
ローカルでAWS Lambdaをいい感じにデバッグする方法 |
https://qiita.com/ijufumi/items/30da0a540a0db1273fd2
|
ローカルでAWSLambdaをいい感じにデバッグする方法はじめにサーバーレスなどでLambdaを使うとかっこいいけど、ローカルで実行しづらくかと言ってAWSにデプロイして動かしてデバッグするというのは時間と手間がかかるのでなんかいい方法ないかなと模索した結果のまとめです。 |
2022-02-04 21:33:31 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
ローカルでAWS Lambdaをいい感じにデバッグする方法 |
https://qiita.com/ijufumi/items/30da0a540a0db1273fd2
|
ローカルでAWSLambdaをいい感じにデバッグする方法はじめにサーバーレスなどでLambdaを使うとかっこいいけど、ローカルで実行しづらくかと言ってAWSにデプロイして動かしてデバッグするというのは時間と手間がかかるのでなんかいい方法ないかなと模索した結果のまとめです。 |
2022-02-04 21:33:31 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
&& || & |の使い方 |
https://qiita.com/IshidaKeisuke/items/f23fd235fe783fde46b4
|
このコードでいえば、ユーザーがログイン中であるなら、左辺のuserインスタンスのnameがhogeであるかを調べるんですそしてusernamehogeがfalseなら、falseが返ってきて、trueならfugaが返ってくるんですusersignedinがfalseなら右辺のコードは実行されませんIfusersignedinusernamehogeputs“fugaend演算子は左辺がtrueのとき、右辺は実行されないんです。 |
2022-02-04 21:34:07 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ローカルでAWS Lambdaをいい感じにデバッグする方法 |
https://qiita.com/ijufumi/items/30da0a540a0db1273fd2
|
ローカルでAWSLambdaをいい感じにデバッグする方法はじめにサーバーレスなどでLambdaを使うとかっこいいけど、ローカルで実行しづらくかと言ってAWSにデプロイして動かしてデバッグするというのは時間と手間がかかるのでなんかいい方法ないかなと模索した結果のまとめです。 |
2022-02-04 21:33:31 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
RDS+EC2+S3のバックアップアンドリストアの流れをざっくり説明 |
https://qiita.com/watanabe-tsuyoshi/items/b1c2af5bdcdd73546d06
|
|
2022-02-04 21:09:29 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
&& || & |の使い方 |
https://qiita.com/IshidaKeisuke/items/f23fd235fe783fde46b4
|
このコードでいえば、ユーザーがログイン中であるなら、左辺のuserインスタンスのnameがhogeであるかを調べるんですそしてusernamehogeがfalseなら、falseが返ってきて、trueならfugaが返ってくるんですusersignedinがfalseなら右辺のコードは実行されませんIfusersignedinusernamehogeputs“fugaend演算子は左辺がtrueのとき、右辺は実行されないんです。 |
2022-02-04 21:34:07 |
技術ブログ |
Developers.IO |
AWS再入門2022 AWS Serverless Application Model (AWS SAM)編 |
https://dev.classmethod.jp/articles/re-introducation-2022-aws-sam/
|
ssapplicationmodelawssam |
2022-02-04 12:56:57 |
海外TECH |
MakeUseOf |
6 Reasons Why You Should Upgrade Your PC Motherboard |
https://www.makeuseof.com/tag/5-reasons-upgrade-pc-motherboard/
|
motherboard |
2022-02-04 12:22:19 |
海外TECH |
DEV Community |
Getting Started with Nextjs and GraphCMS |
https://dev.to/codewithkenn/getting-started-with-nextjs-and-graphcms-4p
|
Getting Started with Nextjs and GraphCMSHey there This is Kenn Your Daily Advocate Business Partner and Friend from CodeWithKenn Welcome to the Blog Make yourself at home Are you looking for a way to build a website with a faster and easier process this is for you Here I am to help you get started with Headless CMS and React Technologies Ecosystem In a nutshell today we re going to see how to connect Nextjs as Frontend to GraphCMS as Headless CMS The Tech StackWe re going to use Nextjs It lets you build server side rendering and static web applications using React It s a great tool to build your next website It has many great features and advantages which can make Nextjs your first option for building your next web application FreeCodeCamp We re going to use it as Frontend GraphCMS GraphCMS is the Headless CMS allowing you to build digital experiences the way you envisioned them with all your backends frontends and services working together in harmony GraphCMS GraphCMS is going to be used as our Backend GraphQL GraphQL is a query language and server side runtime for application programming interfaces APIs that prioritizes giving clients exactly the data they request and no more RedHat The Communication between Nextjs and GraphCMS is going to be made possible by GraphQL We ll fetch data using it Tailwind CSS Tailwind CSS is basically a utility first CSS framework for rapidly building custom user interfaces Hey In my Blog I don t complicate stuff I write simple useful and short articles So follow me Let s start Building GraphCMS as Headless CMS Create a Free Account and Setup the ProjectGo to the Signup Page Create An AccountStart a New Blank ProjectEnter the Project Name Description and Select the CDN Node for your Project Choose the Free PlanSkip this part You will invite laterNote This Section can help you invite your client if you re doing some Freelance work with somebody Here You Go Creating Content Model Schema Section Give the Content Model Name Don t worry we re gonna explain what a Content model is in a couple of seconds On our Website we re gonna Write a Greeting text from GraphCMS and fetch it to the Frontend using GraphQL A content model documents all the different kinds of content you have on your website It breaks content types down into their component parts describes them in detail and maps out how they relate to one another Content Model Details StructureIn this step you only have to choose what you really want to use You can find many data fields you can explore such as Single Text Multi Line Text Markdown Slug Image Rich Text Date Localization Note Most of the Headless CMSs have the same data types in their platforms So One you mastered this You can use whatever Headless CMS you want You will find a list of them We re gonna use the Single line text and Multi line text fields Choosing Fields and Entering Fields TitleLet s Enter our Welcome Text Content Section Go to the Next Section Content and Choose the Schema GrettingMessage for our Project Create the Content Note This can be created as many as we want For Example we can create many employees names to show on the Website Nextjs as our Frontend FrameworkWe ll be using a Nextjs Tailwind CSS Starter and Install GraphQL Install The Projectnpx create next app example with tailwindcss with tailwindcss app oryarn create next app example with tailwindcss with tailwindcss appInstall graphql requestyarn add graphql requestInstall GraphQLyarn add graphqlWhat we have got We can also add some customer font using Tailwind CSS Let s clean the Index Component Page import Head from next head export default function Home return lt div className flex min h screen flex col items center justify center py gt lt Head gt lt title gt Next Headless CMS lt title gt lt link rel icon href favicon ico gt lt Head gt lt main className flex w full flex flex col items center justify center px text center gt lt h className text xl font bold gt Welcome to lt a className text blue href gt GraphCMS lt a gt lt h gt lt div className mt flex max w xl flex wrap items center justify around sm w full gt lt div gt lt main gt lt footer className flex h w full items center justify center border t gt lt a className flex items center justify center href utm source create next app amp utm medium default template amp utm campaign create next app target blank rel noopener noreferrer gt Powered by lt img src vercel svg alt Vercel Logo className ml h gt lt a gt lt footer gt lt div gt Let s Connect Nextjs to GraphCMS Go back to the CMS in the Project Settings Page then to the Public Content API and Copy the Content API Key After that Let s Go back in Nextjs and Create a env local and paste the API key as below Let s Import graphql request into our index js project import GraphQLClient from graphql request And let s initialize our GraphQL Client projectconst graphcms new GraphQLClient process env GRAPHQL URL ENDPOINT export default function Home return Done We re connected Let s run the app npm run devHere is the output Note This doesn t come from the CMS remember we made it from the index js file Now Let s create our query from GraphCMSThis is our query query greetingMessages greatTitle productDescription Let s add it into Nextjs ìndex js file using the getStaticProps function Query Dataexport async function getStaticProps try const query query greetingMessages greatTitle productDescription const greetingMessages await graphcms request query return props greetingMessages catch error console log error return props Note We have used the try catch method for simple error handling but it s not a big deal Last Step Import The GreetingMessages as a Prop into the main Component export default function Home greetingMessages return Let s now see if it really works after refreshing the server Yes it does work Let s render the data and view it on the front page export default function Home greetingMessages return lt div gt lt div className mx auto flex flex col gt greetingMessages map content index gt lt div key index className my gt lt h className text xl font bold gt content greatTitle lt h gt lt p className text md my text justify font medium gt content productDescription lt p gt lt div gt lt div gt lt div gt Here We Goooo Alright Thanks for Reading Stay tuned More articles are coming out Feel free to follow comment and share the articles to support me Useful Resources for the JourneyTo go further in your journey here are the resources you need As a DeveloperDid you know you can run a Business with Headless CMS Getting started with GraphCMS What is Headless CMS Building a super fast and secure website with a CMS is no big deal What is Headless CMS Youtube Videos on Headless CMS Get Started with Gatsby JS and Headless CMS As Business Owner or CompanyWhat is Headless CMS How To Model And Structure Content For A Headless CMS Should you use WordPress or Headless CMS Here is my Business Website WebContract Business for Headless CMS Let s connectTwitter Github LinkedIn Instagram FacebookWebContract Business for Headless CMSSee My Bio LinkWant to start blogging Join NOW |
2022-02-04 12:53:41 |
海外TECH |
DEV Community |
How To Add Jenkins Controller & Agent Node for Windows | Jenkins Tutorials | Part VI |
https://dev.to/lambdatest/how-to-add-jenkins-controller-agent-node-for-windows-jenkins-tutorials-part-vi-47aj
|
How To Add Jenkins Controller amp Agent Node for Windows Jenkins Tutorials Part VIThis is Part VI of the Jenkins LambdaTest Tutorial series wherein Moss tech with moss a DevOps engineer explains about configuring Jenkins controller and Jenkins agent nodes to overcome the limitation of a single Jenkins instance The growing organization needs to scale Jenkins on multiple platforms like Windows Mac OS Ubuntu and Linux Jenkins agents are machines to whom Jenkins controllers can delegate the task of building projects distributed across different platforms that support Java It allows multi platform build and testing using the same Jenkins Server An agent node might be a windows machine a Linux machine or some other platform that supports Java this allows multi platform build and testing using the same Jenkins server You will also learn about How does Jenkins connect to Windows agent Where does Jenkins agent run How does Jenkins agents work How do you deploy Jenkins agent and connect it to Jenkins master |
2022-02-04 12:34:20 |
海外TECH |
DEV Community |
Most Popular React Tech Stack in Professional Teams (Based on Data from 2022) |
https://dev.to/profydev/most-popular-react-tech-stack-in-professional-teams-based-on-data-from-2022-5c9c
|
Most Popular React Tech Stack in Professional Teams Based on Data from If you want to start a career as a React developer you re faced with a difficult decision What libraries and tools should you use for your next project The React ecosystem is huge There s always a new hype and way too many contradicting opinions How confusing The decision is simple though focus on the most popular libraries and tools that are used in professional dev teams Imagine you go to a job interview ask the team for the company s tech stack and your answer is “Cool that s exactly what I use The only problem is What is this tech stack You probably guessed it The answer is on this page This article gives you a list of the most important libraries and tools used in professional teams An objective list Not based on opinions but based on usage data surveys and community discussions Table of ContentsMost popular React librariesNext js as React framework Redux as state management library react query or RTK Query as fetching library React Hook Form as form library styled components or MUI for styling Most popular developer tools used with ReactPrettier for code formatting ESLint to catch problematic patterns TypeScript for type checking Most popular React testing frameworks and toolsJest as testing framework React Testing Library for integration tests Cypress for end to end tests Storybook for UI testing and documentation Most popular React developer workflowsTrunk Based Development Git workflow for collaboration Summary An advanced React learning pathLearn Trunk Based DevelopmentUse Next jsOptional Use TypeScriptUse ESLintUse PrettierUse styled components or MUIWrite tests with CypressOptional Use ReduxOptional Use StorybookFootnote How do npm download stats indicate popularity in professional dev teams Most popular React librariesWhen you look around in online communities you can frequently see questions like “Next js vs create react app vs Gatsby Which one should I use for my project or“Should I use Redux in my project with different opinions ranging from “Just use Context to “Zustand is much better This can be super confusing So in this first section we ll get an overview of the most important libraries for different use cases like state management forms or styling A quick note on methodology The main data source used in this article is weekly download stats from npm This reflects the popularity of a package particularly in professional developer teams In short most downloads are triggered by CI which is mostly used by professional teams You can find a more detailed discussion at the end of this page Next js as most popular React framework Source npmtrends com Jan Admittedly this is a comparison of apples and pears apart from Next js vs Remix But it s a comparison that is often asked for in online communities It s interesting to note the high weekly download numbers for Next js with M Compare this to M weekly downloads of React itself The point is that Next has become the go to framework for building React apps That s not a surprise Next js offers many benefits like server side rendering or code splitting without complicated a Webpack setup It is very mature and thus safe to use in production This comment from a discussion about starting a project with Next js vs Create React App says it all Redux as most popular React state management library Just a few years ago the standard for state management was without a doubt Redux Nowadays it seems that more and more people complain about it and recommend other libraries like Zustand or Jotai Source npmtrends com Jan But the download stats paint a different picture Redux is by far the most used state management library out there Only the native Context API seems to get close as shown by this poll The comments below the poll also indicate that Redux is especially prevalent in the professional world In recent years there have been more and more complaints about Redux as you can see in many discussions and the satisfaction ratio in the State of JS survey Many of the negative comments stem from older versions of Redux Nowadays it s recommended to use Redux Toolkit RTK since it s much easier to set up and removes a lot of boilerplate You can even combine it with Redux Toolkit Query for data fetching Adoption of RTK seems to increase quickly as it s the second most downloaded package in the chart above It looks like out of websites built with Redux uses RTK now react query or RTK Query as popular React fetching library Source npmtrends com Jan From these stats it looks like there is no clear winner in the data fetching category Actually there is I omitted Axios from the graph which has M weekly downloads Axios as well as the native fetch API are great to connect your app to an API The problem is that they need a lot of overhead and boilerplate for common use cases like error handling or caching In recent years a handful of libraries have started tackling this problem The most important ones are react query for REST amp GraphQL APIsRedux Toolkit Query if you already use Redux ToolkitApollo for GraphQL APIs The popularity of Apollo seems to be declining while react query is quickly picking up That makes react query the default recommendation for connecting a React app to a server If your app already uses Redux Toolkit though it makes sense to evaluate RTK Query instead It has similar features to react query and is included in the redux toolkit package Because it s not a standalone package the download numbers are not shown in the above graph and it s hard to tell how widely it s used To summarize let me refer to an awesome comment by Mark Erikson I would recommend not hand writing data fetching code no matter what you re using If you re already using Redux you should probably use RTK Query If you re using just React you should probably look at React Query React Hook Form as most popular React form library Source npmtrends com Jan Based purely on the download numbers the most widespread form libraries are Formik closely followed by React Hook Form But it s obvious that the latter is quickly increasing adoption Judging from the love it gets in this and other discussions React Hook Form is a clear choice Note you don t necessarily need a form library Many simple forms can be handled without any state management as Swyx or Josh W Comeau suggest styled components or MUI as most popular React UI library According to this poll roughly half of the professional world uses component libraries and the other half writes custom CSS the lower two bars combined Some developers complain that component libraries like MUI aren t flexible enough while others state that it doesn t make sense to reinvent the wheel But whether a product is built with a component library is always a trade off between custom design and cost of implementation maintenance According to the comments below the poll the most used libraries seem to be styled components for custom styles and MUI as component library Let s compare that with the download numbers Source npmtrends com Jan This graph seems to verify the results of the poll For custom styles CSS in JS solutions have been on the rise for some time with styled components being the most popular and Emotion quickly picking up Both are very similar so it doesn t really matter which one you pick If you don t want to create all components from scratch you can use custom styles in combination with a headless component library like Headless UI Among component libraries MUI former Material UI seems to be the most widespread Note that you need to add the green and the yellow lines because of the recent name change from Material UI to MUI If you have to decide between learning CSS or a component library I d personally follow this commenter Most popular developer tools used with ReactMost professional teams use tools in their IDEs and CI pipelines to catch bugs early on and to increase code quality readability Here are the download numbers of the most important tools Source npmtrends com Jan As you can see TypeScript Prettier and ESLint are all on a similar level regarding the download numbers It s important to note that these tools are used throughout the JS community and are not restricted to the React community I ll quickly explain each tool in the following sections Prettier for code formatting Prettier is an opinionated code formatter It s been around for years and is widely used As you can see in this screenshot of the Prettier playground you can write really ugly code and Prettier will make it look nice Using a code formatter ensures that every developer on the team sticks to a certain code style That results in more coherent code and improves readability Since it s easy to use I d suggest you adopt it in your personal projects as well You can attach it to your editor s “Format on save functionality ESLint to catch problematic patterns A linter like ESLint statically analyzes your code detects problematic patterns and enforces best practices It can warn you that your code contains bugs before you release it Like in this example ESLint is very customizable But it s better to follow a standard by using a popular preset Which preset to use Airbnb was long the default but many feel it s too prescriptive Rather use the default eslint recommended settings in combination with Prettier TypeScript for type checking TypeScript has seen vast adoption in the professional world A good indicator is its usage ratio in the State of JS survey of the participating developers have used TS The React community seems to be pretty united on the TS side as you can see in this discussion about learning TypeScript Personally I rarely see a React job offer without mentioning TypeScript nowadays Which doesn t mean that it s a requirement to get the job especially for Junior devs but rather that TS is a common tool in the tech stack of companies The reason for this adoption is that TypeScript helps you detect problems with your code while you write it similar to ESLint But while ESLint focuses on conventions and finding problematic patterns TS goes a bit deeper Have a look at this example To ESLint this doesn t seem like a problem But it s clearly wrong since a number doesn t have a method toUpperCase This code would pass our linter and introduce a bug TypeScript checks the type of the variable It knows that text is a number and not a string as the name suggests Thus it complains that the function text toUpperCase doesn t exist Most popular React testing frameworks and toolsESLint and TypeScript are the first safeguards against bugs by statically analyzing your code Automated tests are the third safeguard Automated tests ensure that the features of your app work correctly This is particularly helpful to prevent regressions meaning bugs introduced by changes to existing code The testing landscape appears to be fragmented at first glance These are the usage ratios of different testing libraries according to the State of JS survey This looks like quite a handful at first but we can group and compare them by different use cases Test frameworks Jest vs Mocha vs JasmineUtility libraries for testing React components React Testing Library vs EnyzmeEnd to end tests Cypress vs Puppeteer vs PlaywrightUI testing and documentation Storybook Jest as most popular React testing framework Source npmtrends com Jan As you can see Jest is the most used test framework in the JS testing landscape If we narrow down on the React community Jest is probably even more predominant I personally don t know any React project that uses Jasmine or Mocha in favor of Jest Jest is mostly used for unit tests e g of business logic or as the underlying test framework in combination with utility libraries like React Testing Library React Testing Library as most popular React integration testing lib Source npmtrends com Jan Even though Testing Library shows a low usage ratio in the survey from it has clearly taken over as the go to library for React tests according to the download stats This commenter points it out well React Testing Library is used to write integration tests That means you don t test every component in isolation but integrated with the system e g a page or larger parent component Most tests in a React application are typically integration tests Note If you want to learn more about the different types of tests check out this blog post by Kent C Dodds Even though it s still in use the predecessor of React Testing Library also RTL called Enzyme is dead by now You ll still find a lot of Enzyme tests in the wild but their usage will decrease in the future when more and more projects are updated to newer versions of React Cypress as most popular end to end testing tool Source npmtrends com Jan End to end tests also ee tests are used to test the whole system from frontend to database These tests ensure that everything works together The most popular tool for ee tests according to the download stats is Cypress with Puppeteer as the closest competitor I personally have seen many teams adopt Cypress and can highly recommend it You can watch the tests in a browser and time travel through every step This makes Cypress a great choice if you re new to testing Storybook as most popular React UI testing and documentation tool Since Storybook basically doesn t have a competitor let s add React Testing Library and Cypress to illustrate how frequently it is used in the real world Note that Storybook and Cypress are framework agnostic Source npmtrends com Jan The download numbers of Storybook are even higher than the ones of Cypress Storybook s competitor react styleguidist is basically non existent in comparison And according to its website a lot of big name companies make use of it You wonder what Storybook is about In large apps you can find thousands of components So it s really hard to keep an overview and the risk of duplication increases Storybook solves this problem With Storybook you can create components in isolation and run them in a separate environment You can easily test them by changing e g the props and screen sizes via the UI Most popular React developer workflows Trunk Based Development Git workflow for collaboration Apart from specific tools and libraries almost every developer team relies on Git for version control collaboration and integrating tools like linting type checks and tests into their automation There are a handful of different Git workflows out there A few years ago I mostly heard of Git Flow But now even the original creator discourages using Git Flow for most web apps on his website Web apps are typically continuously delivered not rolled back and you don t have to support multiple versions of the software running in the wild If your team is doing continuous delivery of software I would suggest to adopt a much simpler workflow like GitHub flow instead of trying to shoehorn git flow into your team From my experience trunk based development is the most common and popular Git workflow used in professional teams building web apps although I can t base it on numbers unfortunately It s very similar to the GitHub Flow mentioned in the quote above In short it works like this Create a new branch from the main branch Commit your code on this branch and push it to the remote repo e g on GitHub Open a Pull Request aka Merge Request in the remote repo Run linter type checks and tests Let your team members review your code Merge the branch into the main branch You can learn and experience trunk based development the GitHub Flow in my free course by playing Minesweeper with a bot Step is automated with a Continuous Integration CI tool Nowadays GitHub Actions seems to gain more and more popularity because of its simple integration with GitHub The goal of the CI and the code reviews is to catch as many bugs as possible before the release and improve the readability coherence and quality of the code Summary An advanced React learning pathOnce you covered the basics of React the best way to advance your skills is by building projects To make the best of your time you can approach your projects like a professional using the list of tools and libraries above Here is a suggestion for your next project s tech stack Learn Trunk Based DevelopmentAs a foundation of your development workflow learn about Trunk Based Development and use it in your project You can get your first hands on experience with my free course by playing Minesweeper with a bot It only takes an hour or two Use Next jsSet up the project with Next js by running npx create next app latest Next js adds some magic around React but it s fairly easy to get started You can simply edit or add pages in the pages folder like any other React component and learn the advanced features step by step when it s required If you want a bit more guidance you can also start with this official tutorial Optional Use TypeScriptI don t think knowing TypeScript is expected by a Junior developer But if you know some TypeScript already or you d like to give it a try initialize the project via npx create next app latest typescript In my opinion it s not necessary to force yourself to learn TS if you have a lot on your plate already It can be pretty annoying to use in the beginning and slow you down a lot If you work on an existing TS project though it can be a lot easier to pick up since you can peek at the type definitions of other developers and ask them for help Use ESLintNext js comes with ESLint preinstalled Adding eslint recommended in addition to the default next core web vitals might be a good idea to have a somewhat stricter set of rules Use PrettierIt helps to get used to a clean code format from the beginning Here are instructions on how to use Prettier together with ESLint in a Next js app Use styled components or MUIAt least in one of your projects write custom styles to sharpen your CSS skills The default Next js app uses CSS modules out of the box You can keep using it if you have a lot to learn already Otherwise give styled components a try If you want to use a component library pick MUI since it s the most widespread Write tests with CypressWrite at least a few tests either with React Testing Library or Cypress This will let you stand out from other Junior devs Similar to TypeScript starting to write tests can be a huge pain unfortunately Cypress has a few advantages here Compared to React Testing Library RTL it requires less setup you simply run your app and visit its URL in the test it has a lot of great features that make it intuitive to debug your tests For example you can watch your tests run in the browser and time travel by clicking through each step You can even use Cypress Testing Library on top so you already know the API of React Testing Library So even though most tests for a React app are typically written with RTL it might make sense to start with Cypress if you re new to testing Optional Use ReduxAdd Redux if your application has global state If you build a project for your portfolio or simply as practice you can use Redux without a second thought Redux is so widely spread in real world apps that it s useful to get some hands on experience in any case If you want to build a production app on the other hand you might want to consider this advice Optional Use StorybookSince it s used in many projects it can make sense to add Storybook to one of your projects It will definitely add a professional touch And that in turn might impress a hiring manager Similar to testing it s enough to document a few simple components just to get the hang of it Footnote How do npm download stats indicate popularity in professional dev teams My assumption is that the weekly npm download numbers reflect the popularity of a package in professional developer teams rather than individuals working on personal projects Here is my reasoning based on this article on the npm blog Most downloads are caused by installing dependencies e g npm install Most of the time npm install uses the cached packages from the local machine Exceptions are CI and build pipelines where everything is installed from scratch CI executions are typically triggered frequently e g on every push to a Git repository The bigger the team the more executions Most CI executions are triggered by professional teams Note that the download numbers don t reflect the absolute number of apps using a package But when we compare different packages to each other we get good results for relative usage Which answers the question of which package is most popular for a certain use case And that s what we re interested in here As an interesting example we can compare different JS frameworks to each other Source npmtrends com Jan React has five times more downloads than Angular or Vue And Svelte basically doesn t exist in comparison How does this compare to usage numbers from other sources According to wtechs com of all websites use React use Vue use Angular and less than use Svelte And according to builtWith com there are M websites using React M using Vue k using Angular and k using Svelte In all cases the usage numbers for React are roughly fivefold those of Angular and Vue except the data point from builtWith for Angular The data for Svelte seems to be an outlier in general probably due to low numbers So overall the npm download numbers seem to match the usage of these frameworks in production pretty well On a side note If you selected React to start a career in web development it seems like you made the right choice |
2022-02-04 12:26:27 |
海外TECH |
DEV Community |
CELEBRATING YOUR WINS |
https://dev.to/yusuf_software/celebrating-your-wins-2a91
|
CELEBRATING YOUR WINSLately I ve been thinking a lot about just how important it is to celebrate your wins when you re looking back at the previous quarter I found that my default was to only remember where I failed or fell short Even when I did remember something good I didn t really take any time to celebrate it or appreciate it That s not healthy though and it s certainly not the culture I want for you Frankly I don t want anyone on you to be as hard on themselves as I am on me I spend time thinking about why it is so important to celebrate wins and want to share that with you today See in addition to making you feel good there is also a hidden reason to celebrate wins I ve found that purposefully looking for progress I ve made actually improves the accuracy of my self reporting I m biased to overlook those wins and focus on projects I didn t finish or goals I didn t hit That s not really the full picture of what I accomplished in any given time period though Half the time I m just so buried in work moving from one project to the next that I don t even notice how many things I ve crossed off my list let alone celebrate them I m also learning to celebrate that any progress is some progress I tend to default to an all or nothing approach where I only recognize a win as accomplishing the goal I set for myself These are big wins like finishing a project shipping a piece of content or a book or hitting a fitness milestone Those are all great but they happen over long periods of time and sometimes don t go as planned Instead I m learning to celebrate progress for what it is If I only hit of a goal I had that s still more than if I had given up It s important to celebrate even really small wins like just showing up and giving it a shot How to Celebrate WinsHere s a process that you might find helpful to start celebrating wins more often First try to periodically gather up and review your wins I have a few different sources for this My paper journal is my first source since I do my reviews and planning on paper first So I ll go through those boards along with notes I ve taken or things I ve been thinking or feeling I ll also go back and reference my calendar to see if there s anything I ve missed Incidentally this is the same process I use to write up quarterly reports for work It really makes the process of gathering wins easier Don t neglect the importance of getting better at sharing your wins This one has always been hard for me because I was raised to keep quiet about my accomplishments so as not to appear arrogant The problem is that if no one knows what you re doing they ll assume it s nothing There are two key places to do this with your boss and in public This article by Kim Maida sums this up really nicely Managers want to do right by the contributors on their team but they aren t omniscient superheroes It s impossible to know every single thing that each team member accomplishes on a daily basis especially in autonomous distributed or remote work environments Share your wins with your boss and share them often Your manager will appreciate it and they will remember and take actions as a result And regarding sharing wins publicly While this might sound like “shameless self promotion it will get you noticed Sometimes we all need a little shameless self promotion There s nothing wrong with public validation for the blood sweat tears and tremendously hard work we put into the things we do You can share your wins on social media or in blog posts I ve also discovered that many Discord communities have a celebrating wins channel which is really nice Having a designated space like that helps relieve people of feeling self conscious or spammy I also really love getting to see other people s wins and celebrate with them Lastly it s important to actually celebrate wins yourself Some people do this with a special meal a bottle of something nice and tasty or buying themselves something fun I think what works for me is unplugging a little early for the day or giving myself an extra bit of leisure time Regardless it s surprisingly important to do this B J Fogg a behavioral scientist at Stanford who wrote a book called Tiny Habits has a helpful article about why it s really important to celebrate every tiny win to help solidify new habits Let s PracticeLet s make this issue really practical and beneficial to everyone This week think of one recent accomplishment you did no matter how big or small and take a moment to celebrate it Write in and let me know what the win was and what you did to celebrate itIn conclusionThe best way to celebrate your wins is by rembering them and sharing them with the world No one would know if you can only if you show them And that s all If you got questions or confusion or anything you are free to hit me up would really love to help out as fast as I can YusufTech enthusiastTwitter Instagram Saifyusuph |
2022-02-04 12:10:32 |
海外TECH |
DEV Community |
Shell command for cleaning up git repositories from unused branches |
https://dev.to/radlinskii/shell-command-for-cleaning-up-git-repositories-from-unused-branches-pj6
|
Shell command for cleaning up git repositories from unused branchesHello In this short post I d like to share with you a simple solution to the issue I m encountering from time to time The problem is that each of repositories I m actively working on is aggregating a lot of branches because in my workflow I m creating a new branch for each new task I m working with After merging branch to main I want to keep the branch for a while just in case but then as one would expect I forget to delete it So after some time when I run git branch I am getting more and more results Actually I ve decided to do something about it when I saw that I have local branches in one of my local repos The solution that came to my mind was to right a shell function and add it to my zshrc that would work as command that can remove all of the unused local branches automatically I ve decided that this command should work in the opposite way to git branch delete where you provide a list of branch names you want to delete So instead I want to provide the list of branches I want to keep After a thought that I d need to add branch main or master each time I d run this command I ve decided to always add them to the list of branch names that should not be deleted Another improvement I ve decided to add was to always keep the current branch Just in case I ve decided to clean up all the branches but forgot that I m already not on the main branch In my case I ve added it to a file called custom aliases that I keep developing for improving productivity and is imported inside my zshrc Here s the code for it So if you ran git branch and see something like and then you run You will end up with clean repo with just the main branch current branch and the branches you explicitly provided not being deleted And all that with just a single command not bad That s it from me thanks for reading I encourage you to leave a like comment here or star comment on github See you |
2022-02-04 12:06:23 |
Apple |
AppleInsider - Frontpage News |
MacBook Pro, Pro Display XDR will automatically dim when hot |
https://appleinsider.com/articles/22/02/04/macbook-pro-pro-display-xdr-will-automatically-dim-when-hot?utm_medium=rss
|
MacBook Pro Pro Display XDR will automatically dim when hotApple has revealed that the screens on its new inch MacBook Pro revised inch MacBook Pro and Pro Display XDR will limit their brightness under certain circumstances It s an automatic feature that applies specifically to the screen technology introduced with the Pro Display XDR and the Liquid Retina XDR of the MacBook Pro According to a new support document Apple says that as well as automatically dimming the screen the feature will display a warning triangle in the menu bar Similarly Control Center will show an icon of a screen with a small warning triangle to one side Read more |
2022-02-04 12:31:23 |
Apple |
AppleInsider - Frontpage News |
Second class action suit targets Powerbeats Pro battery life, charging issues |
https://appleinsider.com/articles/22/02/04/second-class-action-suit-targets-powerbeats-pro-battery-life-charging-issues?utm_medium=rss
|
Second class action suit targets Powerbeats Pro battery life charging issuesA Powerbeats Pro owner has filed a class action lawsuit against Apple for its false misleading and deceptive advertising over the wireless headphones battery life and charging case An existing class action suit claims that Powerbeats Pro don t last the advertised nine hours Now a separate second one takes issue with both the nine hours and Apple s claim of how long they can run with the aid of the charging case Apple markets its Powerbeats Pro as rechargeable high end Bluetooth headphones says the filing included in full below In an effort to attract buyers willing to pay hundreds of dollars for premium headphones Defendant boasts that the Powerbeats Pro will last up to hours listening time on a single charge from their charging case and that the charging case provides a total of more than hours listening time Read more |
2022-02-04 12:08:41 |
海外TECH |
Engadget |
'Pokémon Legends Arceus' sells 6.5 million copies worldwide in seven days |
https://www.engadget.com/pokemon-legends-arceus-sells-65-million-copies-worldwide-in-seven-days-124528906.html?src=rss
|
x Pokémon Legends Arceus x sells million copies worldwide in seven daysPokémon Legends Arceus has sold million copies after just one week on sale making it one of the fastest selling Switch games yet Nintendo announced If the official figures hold up the game will have outsold both Pokémon Sword and Shield and Pokémon Brilliant Diamond and Shining Pearl both of which sold million copies in the first week nbsp Thank you to the more than million explorers worldwide who have already embarked on an exciting new adventure in PokemonLegendsArceus We hope you re loading up on more potato mochi before your next research mission pic twitter com uMKRHkhhDーNintendo of America NintendoAmerica February That could make Arceus the second fastest selling Switch title of all time a big win for an quot experimental quot game with a far different look and gameplay than mainline Pokémon titles It doesn t seem likely to catch Animal Cross New Horizons however which sold million copies in just days nbsp As we ve detailed before Pokémon Legends Arceus is an open world action RPG set in the Sinnoh region long before the events of Pokémon Diamond and Pearl and their remakes The aim of the game is to create the region s first ever Pokédex so you need to carry out research tasks to learn more about each Pokémon The game has generally received decent review scores and given that it s part of one of the biggest media franchises on the planet its success is not a huge surprise nbsp |
2022-02-04 12:45:28 |
海外TECH |
Engadget |
The Morning After: Amazon is raising the price of Prime |
https://www.engadget.com/the-morning-after-amazon-is-raising-the-price-of-prime-121510956.html?src=rss
|
The Morning After Amazon is raising the price of PrimeAmazon Prime is increasing in price for the first time since The monthly fee is going up to previously or per year previously The higher rates kick in February th for new customers but they won t take effect for existing customers until they renew March th or later Amazon pinned the increase on the quot continued expansion quot of Prime perks like free games through Twitch and pharmacy discounts along with higher wages whose wages and transportation costs On top of that there are also the company s big Prime Video projects the upcoming Lord of the Rings series is expected to cost million just for its first season ーMat SmithThe biggest stories you might have missedIn the Joe Rogan debate Spotify is acting like a spectator rather than a playerSenate bill targeting Apple and Google in app payments moves forwardThe new Moto G Stylus adds a Hz display a big battery and not much elseCanada will get its first universal quantum computer from IBMHow to watch the Beijing Winter OlympicsNetflix will release at least movies in Rotterdam is dismantling a bridge so Jeff Bezos superyacht can pass throughBut what about the Prime prices GettyBezos may no longer be the CEO but the Amazon founder will profit from those price increases And he has things to spend money on such as his ostentatious Y superyacht It s so big that to get it through Rotterdam the shipbuilder will have to temporarily dismantle part of a bridge The city is catching some flak over the decision Koningshaven Bridge built in was declared a national monument after it was decommissioned in The city finished restoring it in and vowed to never dismantle the bridge again But here we are Continue reading Snap is finally making moneySnapchat has more users than ever Nearly five years after going public Snap is finally profitable The company shared the milestone in its Q earnings release where it reported million in positive net income Sure it s a tiny percentage of its billion in quarterly revenue but it s an important step for the company that has at times struggled with user growth Daily active users have now climbed to million Continue reading EPA objects to US Postal Service plan to buy a new gas powered delivery fleetThe Biden administration wants zero emissions mail vehicles According to The Washington Post the Environmental Protection Agency and White House Council on Environmental Quality have sent letters to the US Postal Service urging it to rethink a proposal to mostly buy gas powered next gen delivery trucks in a project worth up to billion It said the current strategy is a quot lost opportunity quot to more drastically reduce the carbon footprint of one of the world s largest government fleets Continue reading Canon EOS R reviewInnovative eye control focus and speed for a price EngadgetThe megapixel EOS R is the mirrorless equivalent of Canon s DX Mark III DSLR It delivers incredible shooting speeds of up to fps with reliable autofocus that can handle face and eye tracking for people and animals According to Steve Dent who put the camera through its paces image quality is the best we ve seen on any Canon camera The new eye control AF lets you focus on a subject just by looking at it ーsomething that works well for some people but not everyone The R is also very strong with video handling K RAW at fps with no overheating issues The only caveat is that price Continue reading Ford starts with its highest EV sales numbers to dateThe company is now the number two EV retailer Beyond the incredible pre order numbers for both the hybrid Maverick and the EV F Lightning Ford s EV push is working The company reports sales of its EVs in January quot grew almost times faster than the overall electrified segment quot units in total making Ford the current number two retailer of electric vehicles in the country behind Tesla and also making it the country s top selling automaker overall The company sold Mavericks in January alone Continue reading The Switch is now Nintendo s best selling home console everIt just surpassed the Wii with million sales since it launched in The Nintendo Switch another success story It s now bested the Wii making it the best selling home console ever Thanks to what it called a quot good start quot by the OLED Switch it sold million units in Q October to December far surpassing the million PS units Sony sold That takes total Switch sales to million since it launched in taking it past the Wii s lifetime sales of million Having said that Nintendo revised its yearly forecast down by a million units It now believes it ll sell million units down from the million it forecast last quarter Continue reading |
2022-02-04 12:15:10 |
金融 |
RSS FILE - 日本証券業協会 |
協会員の異動状況等 |
https://www.jsda.or.jp/kyoukaiin/kyoukaiin/kanyuu/index.html
|
異動 |
2022-02-04 13:00:00 |
海外ニュース |
Japan Times latest articles |
Beijing welcomes the world to controversial Winter Olympics |
https://www.japantimes.co.jp/sports/2022/02/04/olympics/winter-olympics/beijing-olympics-opening-ceremony/
|
Beijing welcomes the world to controversial Winter OlympicsAlthough Beijing was able to begin its edition on schedule ーunlike the troubled Tokyo Games ーthese Winter Olympics have also been marked by |
2022-02-04 21:27:13 |
ニュース |
BBC News - Home |
Boris Johnson rocked by wave of No 10 resignations |
https://www.bbc.co.uk/news/uk-politics-60253231?at_medium=RSS&at_campaign=KARANGA
|
adviser |
2022-02-04 12:18:19 |
ニュース |
BBC News - Home |
China joins Russia in opposing Nato expansion |
https://www.bbc.co.uk/news/world-asia-60257080?at_medium=RSS&at_campaign=KARANGA
|
geopolitical |
2022-02-04 12:48:39 |
ニュース |
BBC News - Home |
Backlash after Bank boss says don't ask for big pay rise |
https://www.bbc.co.uk/news/business-60252340?at_medium=RSS&at_campaign=KARANGA
|
andrew |
2022-02-04 12:19:31 |
ニュース |
BBC News - Home |
Southend West by-election: Anna Firth wins seat for Tories |
https://www.bbc.co.uk/news/uk-england-essex-60254176?at_medium=RSS&at_campaign=KARANGA
|
amess |
2022-02-04 12:10:51 |
ニュース |
BBC News - Home |
Brexit: Sea border checks order suspended by High Court |
https://www.bbc.co.uk/news/uk-northern-ireland-60259351?at_medium=RSS&at_campaign=KARANGA
|
border |
2022-02-04 12:54:22 |
ニュース |
BBC News - Home |
Logan Mwangi: Mother denies murdering five-year-old son |
https://www.bbc.co.uk/news/uk-wales-60259208?at_medium=RSS&at_campaign=KARANGA
|
hearing |
2022-02-04 12:12:16 |
ニュース |
BBC News - Home |
Six Nations: Wales-Ireland kit clash frustrates colour-blind fans |
https://www.bbc.co.uk/news/uk-wales-60229589?at_medium=RSS&at_campaign=KARANGA
|
people |
2022-02-04 12:26:26 |
ニュース |
BBC News - Home |
Brexit: The NI Protocol and its economic impact |
https://www.bbc.co.uk/news/uk-northern-ireland-60259342?at_medium=RSS&at_campaign=KARANGA
|
protocol |
2022-02-04 12:44:14 |
ニュース |
BBC News - Home |
Silverwood was under 'impossible strain', Thorpe leaves & Root to remain skipper |
https://www.bbc.co.uk/sport/cricket/60260548?at_medium=RSS&at_campaign=KARANGA
|
Silverwood was under x impossible strain x Thorpe leaves amp Root to remain skipperChris Silverwood was placed under an impossible strain to combine roles as England head coach and lead selector according to Sir Andrew Strauss |
2022-02-04 12:29:03 |
北海道 |
北海道新聞 |
高級食パン、札幌で激戦 異業種参入や売り場面積拡大 ぜいたくな味わい 贈答用にも |
https://www.hokkaido-np.co.jp/article/642052/
|
札幌市内 |
2022-02-04 21:19:00 |
北海道 |
北海道新聞 |
北京冬季五輪が開幕 国家体育場で開会式 |
https://www.hokkaido-np.co.jp/article/642049/
|
北京冬季五輪 |
2022-02-04 21:17:00 |
北海道 |
北海道新聞 |
北海道新幹線の高架区間工事 今秋にも着手 札幌市が都市計画を同意 |
https://www.hokkaido-np.co.jp/article/642051/
|
札樽トンネル |
2022-02-04 21:18:00 |
北海道 |
北海道新聞 |
後志管内の感染最多121人 初の3桁 |
https://www.hokkaido-np.co.jp/article/642048/
|
新型コロナウイルス |
2022-02-04 21:15:00 |
北海道 |
北海道新聞 |
今月「3回目」接種本格化 釧根64歳以下、4月までに開始 |
https://www.hokkaido-np.co.jp/article/642046/
|
根室管内 |
2022-02-04 21:14:00 |
北海道 |
北海道新聞 |
1月降雪、小樽176センチ 平年比12%増 後志管内 |
https://www.hokkaido-np.co.jp/article/642047/
|
降雪 |
2022-02-04 21:14:00 |
北海道 |
北海道新聞 |
JFL昇格へ始動 スカイアースが初練習 |
https://www.hokkaido-np.co.jp/article/641986/
|
北海道十勝スカイアース |
2022-02-04 21:10:37 |
北海道 |
北海道新聞 |
小樽運河彩る映像の輝き 岸壁などに投影 クルーズで鑑賞 |
https://www.hokkaido-np.co.jp/article/642041/
|
小樽運河 |
2022-02-04 21:08:00 |
北海道 |
北海道新聞 |
函館市の聴覚障害学生不採用 「聞こえない=無理」 他の職場でも |
https://www.hokkaido-np.co.jp/article/642040/
|
聴覚障害 |
2022-02-04 21:06:00 |
北海道 |
北海道新聞 |
紅色鮮やか「さがほのか」 北斗のイチゴ、出荷が本格化 |
https://www.hokkaido-np.co.jp/article/642039/
|
北斗市内 |
2022-02-04 21:04:00 |
ビジネス |
東洋経済オンライン |
中国製造業「オミクロン・ショック」で景況感悪化 「財新中国製造業PMI」、1月は再び50を割り込む | 「財新」中国Biz&Tech | 東洋経済オンライン |
https://toyokeizai.net/articles/-/508362?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
biztech |
2022-02-04 21:30:00 |
コメント
コメントを投稿