python |
Pythonタグが付けられた新着投稿 - Qiita |
paizaラーニング「指定された範囲・行数の数字の出力 Python3編」 |
https://qiita.com/colcmia/items/6d1bbdfb76a434fd8886
|
paiza |
2022-12-28 19:56:15 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
paizaラーニング「指定された行数の数字の出力 Python3編」 |
https://qiita.com/colcmia/items/af06611fe681bca266f6
|
paiza |
2022-12-28 19:52:31 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
paizaラーニング「指定された数字までの出力 Python3編」 |
https://qiita.com/colcmia/items/681a34a8c0cbb5ee9914
|
paiza |
2022-12-28 19:38:54 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
【docker✖️django】コンテナに入れ!2005, "Unknown MySQL server host...と2003, "Can't connect to MySQL server on...の解決方法! |
https://qiita.com/Ryo-0131/items/0c39a0fabdaeb44c0c04
|
applempro |
2022-12-28 19:46:40 |
技術ブログ |
Developers.IO |
AWS Systems Manager ランコマンドの出力を AWS CLI で直接確認するためにはひと工夫が必要 |
https://dev.classmethod.jp/articles/aws-systems-manager-run-command-aws-cli/
|
awscli |
2022-12-28 10:48:24 |
海外TECH |
MakeUseOf |
8 Eco-Friendly Products You Need in Every Home Office |
https://www.makeuseof.com/tag/eco-friendly-supplies-home-office/
|
Eco Friendly Products You Need in Every Home OfficeThere are many ways to improve your workspace but one of the best is to invest in eco friendly office supplies Here are some ideas to get you started |
2022-12-28 10:30:15 |
海外TECH |
DEV Community |
Scalable and Maintainable React Project Structure Every Developer Should Use. |
https://dev.to/devland/scalable-and-maintainable-react-project-structure-every-developer-should-use-3om4
|
Scalable and Maintainable React Project Structure Every Developer Should Use A good project structure can have a huge impact on how successful a project is in terms of understanding the codebase flexibility and maintenance Projects that are not well structured and maintained can quickly become a big mess and dreadful legacy that no one is too happy to work with I will now show you the structure that I very often use in my projects and explain the reasoning behind it This structure should be a good starting point for a large scale application and you can expand on it depending on the project s needs Here is the src structure I can recommend for most projects Let s cover the folders from top to bottom testsFirst we have the tests folder which will contain all the test file of the React application I use Jest in most of my CRA application I see that CRA opted for the use of filename test js format when writing tests But this approach is a bit cumbersome on the eyes and brain You can write tests in a folder named tests and jest will automatically run the tests in that folder apiThe api folder contains the API Layer of our application It will have methods that are responsible for performing API requests and communicating with a server assetsThe assets folder contains fonts images and videos In the fonts you can keep any custom fonts and typefaces In images store any pictures used throughout the application componentsThe components directory contains two directories common and specific The common directory will contain any reusable components that are commonly used throughout the application For instance buttons form components components related to typography and so on Any components that are not as common would be placed inside of specific components HooksThe hooks directory as the name suggests would hold any custom and reusable hooks Note that any hooks that are not really reusable but are coupled to a specific feature should be placed in the same directory as that feature For instance imagine we have a newsletter form component that contains a form to sign up a user for a newsletter This component could utilize a hook called useNewsletterSignup that would handle signing up a user A hook like this shouldn t be placed in the global src hooks directory but rather locally as it is coupled to the NewsletterForm component Here s what it could look like contextThe context directory should contain any global level context state providers layoutLayout directory as the name suggests should have components that provide different layouts for your pages For example if you are building a dashboard application you could render different layouts depending on if a user is logged in or not configIn the config directory you can put any runtime config files for your application and third party services For instance if you use a service like Firebase or OIDC for authentication you will need to add configuration files and use them in your app Just make sure not to confuse config with environmental variables as anything that goes here will be present in the build bundle constantsHere you can put any constant variables that are used throughout the application It s a good practice to capitalize your constants to distinguish them from other variables and localized constants in your app Below are some examples of defining and using constants Define constants separately in constants appConstants tsexport const APP NAME Super app export const WIDGETS LABEL Widgets Somewhere in your app import APP NAME WIDGETS LABEL from constants appConstants console log APP NAME You can also grab all named exports from the file import as APP CONSTANTS from constants appConstants console log APP CONSTANTS WIDGETS LABEL Define related constants in one object in constants appConstants ts Create an object with constant values export const apiStatus IDLE IDLE PENDING PENDING SUCCESS SUCCESS ERROR ERROR Somewhere in your app import apiStatus from constants appConstants console log apiStatus PENDING helpersAny utilities and small reusable functions should go here ーfor example functions to format date time etc intlThis directory is optional Add it if an application requires internalization support Intl also known as in is about displaying the content of an app in a format appropriate to the user s locale This content can include but not be limited to translated text or specific format of dates time and currency For instance whilst the UK uses DD MM YYYY format the US uses MM DD YYYY servicesIn larger applications we might have complex business logic code that is used in a few different places A code like this is a good candidate to be extracted from components and placed somewhere else and the services folder is a good candidate for that storeThe store folder is responsible for files related to global state management There are many state management solutions that can be used for React projects such as Redux Zustand Jotai and many many more stylesYou can put global styles variables theme styles and overrides in the styles folder typesHere you can put any global and shareable types With this approach you can save time and more easily share the TypeScript code and types you and your team need viewsUsually the views directory only contains route page components For example if we have a page that is supposed to allow users to view products we would have a component Products tsx in the views folder and the corresponding route could be something like this lt Route path projects element lt Products gt gt There is a reason why I said “usually though Many applications have route components in the views and the rest of the components for it are placed in the components folder This approach can work for small to medium applications but is much harder to manage and maintain when the number of pages and components grows SummaryChoosing the right folder structure is not an easy task You need to agree with the team on the structure that suits the application and what might suit one need might not suit another Should hopefully be valid for the next years to come What would you do differently to ensure a good maintainable structure Let me know in the comments below |
2022-12-28 10:47:25 |
海外TECH |
DEV Community |
The Importance of Mentorship in Tech |
https://dev.to/blst-security/the-importance-of-mentorship-in-tech-mpe
|
The Importance of Mentorship in Tech The definition of mentorshipIf you re thinking about finding a mentor there are a few things you should keep in mind First consider what you want to get out of the relationship What do you hope to learn What kind of guidance and support do you need Second look for someone who is knowledgeable and experienced in the area you re interested in Third make sure there is mutual respect and trust between you and your potential mentor Finding a mentor can be a great way to accelerate your career in the tech industry If you re looking for guidance support and advice from someone who has been successful in the industry consider finding a mentor The role of a mentorThe role of a mentor is to help their mentee grow and develop both professionally and personally A mentor should provide support and guidance but should also challenge their mentee to push themselves and to think outside the box A good mentormentee relationship is built on trust respect and mutual understanding The benefits of having a mentorThe benefits of having a mentor are numerous but here are a few of the most important ones A mentor can help you develop your skills A mentor can help you grow your network A mentor can help you overcome challenges A mentor can provide motivation How to find a mentor in techWhen it comes to finding a mentor in the tech industry the most important thing is to know what you want out of the relationship What are your goals What do you hope to achieve What can you offer in return Once you know what you re looking for it ll be much easier to find someone who s a good match Reach out to your professional and personal networks and see if anyone can introduce you to someone who might be a good mentor for you Talk to your friends colleagues and acquaintances and see if anyone knows someone who could help you achieve your goals If you don t know anyone in your personal networks who can help try reaching out to people in your professional networks Attend industry events and meetups where you can meet potential mentors in person Get involved in online communities related to your field of interest and see if anyone there knows of someone who could be a good mentor for you By taking these steps you ll be well on your way to finding a mentor who can help you reach your professional goals What to do when you become a mentorIf you become a mentor it is important to remember a few things First be supportive but honest with your mentee Secondly be patient and understand that everyone learns at their own pace Finally be flexible with your time and be willing to adjust your schedule to accommodate your mentee As a mentor you play an important role in supporting and guiding your mentee through their journey of learning Here are a few things to keep in mind Be supportive but honest It s important to be supportive of your mentee s efforts but at the same time be honest with them about their progress Encourage them when they do well but provide constructive feedback when they need to improve Be patient Everyone learns at their own pace so it s important to be patient with your mentee Allow them the time they need to absorb new information and master new skills Be flexible Be flexible with your time and schedule in order to accommodate your mentee s needs If they need extra help or more time for practice be willing to adjust your schedule accordingly By following these simple tips you can be an effective mentor and help your mentee reach their full potential In conclusion mentorship is important in tech for many reasons First it can help you develop your skills and knowledge Second it can help you build your network And third it can help you find a job or advance in your career So if you re looking to get ahead in tech find a mentor Star our Github repo and join the discussion in our Discord channel Test your API for free now at BLST |
2022-12-28 10:08:50 |
海外TECH |
DEV Community |
4 places to use Chat GPT |
https://dev.to/shreyvijayvargiya/4-places-to-use-chat-gpt-d63
|
places to use Chat GPT Under the HoodThe picture begins when I want to use chat GPT for my work I was confused about how to use it and where it can fit well If you want to watch instead of readingSo I did a bit of research understand the tool and then try to get into my daily routine or work See I am an entrepreneur writer developer and designer so I need to google things and research a lot and that is a time consuming process Instead I can directly use chat GPT to do most of the time consuming work for me Let s start Digital ContentYou can create Twitter tweets blog titles summaries and many other types of content I use to create some solid messages for emailing feedback thanking letters LinkedIn posts and so on Writing CodeI am anyway building this code system for my business Where I will reuse most of the code templates and components and for that I am using chat GPT to write most of the repeated code for me For example I don t want to rewrite the navbar sidebar Ui components CSS again and again and handle responsiveness So I directly use chat GPT code and put it somewhere in the repository and reuse it again and again Design InspirationsEvery time I want to make some project interface I need to go to dribble and got confused about how to find the exact inspiration I can now directly tell chat GPT the idea about the website I want to develop and can ask the basic design inspirations to get started It was really fast and helpful when I got the first basic design helps me to proceed asap Collecting DataI don t want to google out the data points and copy paste them into the notion or other databases Repeated work instead I just ask chat GPT about the data points and wrote a script to store the chat GPT output into notion databases or even other databases like Supabase When chat GPT gives me some data or collections I can simply tweet about it helping others around the world with some information so cool ConclusionI am developing projects using chat GPT for the idea watch this video Stay tuned for more such stories or subscribe I will reach directly to you via email Keep developingShreyiHateReading |
2022-12-28 10:02:07 |
医療系 |
医療介護 CBnews |
病床使用率が著しく低い病院に現地調査を-厚労省、都道府県に検討要請 |
https://www.cbnews.jp/news/entry/20221228194924
|
医療機関 |
2022-12-28 19:55:00 |
ニュース |
@日本経済新聞 電子版 |
東京から地方移住の支援金を子1人あたり100万円に。政府が2023年度に増額します。18歳未満の子どもの数に応じた加算額を現行の1人30万円から引き上げ、少子高齢化が進む地域へ子育て世帯の移住を後押しします。… https://t.co/Dq1ahMO0Wc |
https://twitter.com/nikkei/statuses/1608055167043178497
|
東京から地方移住の支援金を子人あたり万円に。 |
2022-12-28 11:00:02 |
ニュース |
@日本経済新聞 電子版 |
インフルエンザ、全国的な流行期入り 3年ぶり
https://t.co/CZMaIugPWI |
https://twitter.com/nikkei/statuses/1608048055173156867
|
流行 |
2022-12-28 10:31:47 |
ニュース |
@日本経済新聞 電子版 |
値上げラッシュに賃上げが追いつきません。消費者の節約志向が高まる一方、メリハリ消費が定着し消費の選別は加速。インバウンド需要の回復が頼みですが、中国からの観光客が戻らず完全復活には程遠い状態です。
https://t.co/rsgN4vOXwp |
https://twitter.com/nikkei/statuses/1608047622735937536
|
値上げラッシュに賃上げが追いつきません。 |
2022-12-28 10:30:03 |
ニュース |
@日本経済新聞 電子版 |
国立競技場、苦肉の民営化 国が最大10億円赤字補塡
https://t.co/ge1HjNRwBZ |
https://twitter.com/nikkei/statuses/1608045514905509888
|
国立競技場 |
2022-12-28 10:21:41 |
ニュース |
@日本経済新聞 電子版 |
[社説]元徴用工問題の突破口を開け
https://t.co/6gGUXsEi0U |
https://twitter.com/nikkei/statuses/1608044023591358465
|
徴用工問題 |
2022-12-28 10:15:45 |
ニュース |
@日本経済新聞 電子版 |
岸田首相、来年の衆院選考えず 増税前解散「あり得る」
https://t.co/2WzmWbVJDt |
https://twitter.com/nikkei/statuses/1608042382389571584
|
首相 |
2022-12-28 10:09:14 |
ニュース |
BBC News - Home |
China Covid: US considers restrictions on Chinese arrivals |
https://www.bbc.co.uk/news/world-us-canada-64107553?at_medium=RSS&at_campaign=KARANGA
|
china |
2022-12-28 10:22:29 |
ニュース |
BBC News - Home |
Russian troops able to freeze sperm for free - lawyer |
https://www.bbc.co.uk/news/world-europe-64107729?at_medium=RSS&at_campaign=KARANGA
|
ukraine |
2022-12-28 10:13:15 |
ニュース |
BBC News - Home |
Wales weather: Flood risk as heavy rain hits |
https://www.bbc.co.uk/news/uk-wales-64107819?at_medium=RSS&at_campaign=KARANGA
|
wales |
2022-12-28 10:27:04 |
ニュース |
BBC News - Home |
Dog rescued on Christmas Day from Utah mountains |
https://www.bbc.co.uk/news/world-us-canada-64108185?at_medium=RSS&at_campaign=KARANGA
|
christmas |
2022-12-28 10:34:42 |
サブカルネタ |
ラーブロ |
旭川市 カレー SIMBA(シンバ) |
http://ra-blog.net/modules/rssc/single_feed.php?fid=206136
|
simba |
2022-12-28 10:20:51 |
北海道 |
北海道新聞 |
薗浦元議員の公民権停止3年 罰金100万円、略式命令 |
https://www.hokkaido-np.co.jp/article/781811/
|
政治資金収支報告書 |
2022-12-28 19:36:00 |
北海道 |
北海道新聞 |
スケボー板の傷、アートに 倶知安のカフェ愛好者らの9点展示 |
https://www.hokkaido-np.co.jp/article/781810/
|
使用済み |
2022-12-28 19:32:00 |
北海道 |
北海道新聞 |
ニジマス幼魚、いけすに放流 岩内 海面養殖試験で5千匹 |
https://www.hokkaido-np.co.jp/article/781809/
|
養殖 |
2022-12-28 19:32:00 |
北海道 |
北海道新聞 |
W杯後も森保監督が続投 「日本に不可能はない」 |
https://www.hokkaido-np.co.jp/article/781764/
|
日本サッカー協会 |
2022-12-28 19:28:17 |
北海道 |
北海道新聞 |
道の聞き取り調査1月中めど終了 江差の不妊処置問題で |
https://www.hokkaido-np.co.jp/article/781799/
|
社会福祉法人 |
2022-12-28 19:22:00 |
北海道 |
北海道新聞 |
慰安婦合意7年、韓国で批判集会 徴用工も「拙速解決」反対 |
https://www.hokkaido-np.co.jp/article/781798/
|
従軍慰安婦問題 |
2022-12-28 19:20:00 |
北海道 |
北海道新聞 |
メッシ選手の部屋博物館に カタール大学、W杯中滞在 |
https://www.hokkaido-np.co.jp/article/781797/
|
部屋 |
2022-12-28 19:15:00 |
北海道 |
北海道新聞 |
抜海駅存続へ住民CF 24年度の維持費100万円目標 |
https://www.hokkaido-np.co.jp/article/781796/
|
維持費 |
2022-12-28 19:15:00 |
北海道 |
北海道新聞 |
不登校児、チームで支援 留萌で名寄・児童センター長が講演 |
https://www.hokkaido-np.co.jp/article/781795/
|
小中学校 |
2022-12-28 19:13:00 |
北海道 |
北海道新聞 |
<Fノート>元日本ハム金子誠さんの「週刊マック」<3> 関係者座談会編 FM番組に全力、三角山放送局を大事にしてくれる |
https://www.hokkaido-np.co.jp/article/781531/
|
人気番組 |
2022-12-28 19:12:10 |
北海道 |
北海道新聞 |
肝臓と小腸を女児に同時移植 京大病院で国内初、経過良好 |
https://www.hokkaido-np.co.jp/article/781790/
|
良好 |
2022-12-28 19:10:00 |
北海道 |
北海道新聞 |
奔走の一年 労ねぎらう 仕事納めで空知管内各首長ら |
https://www.hokkaido-np.co.jp/article/781788/
|
仕事納め |
2022-12-28 19:04:00 |
北海道 |
北海道新聞 |
冬の避難所 どう運営? 滝川高生、道のカードゲーム体験 |
https://www.hokkaido-np.co.jp/article/781787/
|
東日本大震災 |
2022-12-28 19:03:00 |
ニュース |
Newsweek |
15人を負傷させたヒョウ、ものすごい速度で車を襲撃 |
https://www.newsweekjapan.jp/stories/world/2022/12/15-62.php
|
|
2022-12-28 19:35:01 |
コメント
コメントを投稿