python |
Pythonタグが付けられた新着投稿 - Qiita |
PySBのexamplesを確認してみる(第2回 bax_pore_sequential.py & run_bax_pore_sequential.py) |
https://qiita.com/yo314159265/items/178d93cb33958e2269e5
|
document |
2022-06-12 03:55:38 |
技術ブログ |
Developers.IO |
独自 CA で発行したサーバ証明書を使用して API Gateway の mTLS を設定してみた |
https://dev.classmethod.jp/articles/api-gateway-mtls-using-an-imported-certificate/
|
gateway |
2022-06-11 18:53:42 |
海外TECH |
MakeUseOf |
How to Credit a Creator on TikTok: 3 Ways |
https://www.makeuseof.com/tiktok-how-to-credit-creators/
|
tiktok |
2022-06-11 18:45:14 |
海外TECH |
MakeUseOf |
8 Things to Do Right After You Install Fedora Linux |
https://www.makeuseof.com/things-to-do-after-installing-fedora/
|
Things to Do Right After You Install Fedora LinuxYou ve installed Fedora Now what Here are some important things you should do right after your first boot to make your Linux experience comfortable |
2022-06-11 18:30:14 |
海外TECH |
MakeUseOf |
How to Fix Call of Duty: Warzone's Dev Error 6068 on Windows |
https://www.makeuseof.com/windows-call-of-duty-warzone-modern-warfare-dev-error-6068-fix/
|
error |
2022-06-11 18:16:13 |
海外TECH |
MakeUseOf |
5 RAM Myths and Misconceptions That Really Aren't True |
https://www.makeuseof.com/tag/myths-misconceptions-about-ram/
|
misconceptions |
2022-06-11 18:05:14 |
海外TECH |
DEV Community |
The 6 key questions I ask when reviewing code |
https://dev.to/jertyuiop/the-6-key-questions-i-ask-when-reviewing-code-3ch
|
The key questions I ask when reviewing codeIn the and a half years I ve been working as a software developer I ve done a lot of code reviews below are the questions I ask myself and my general thought process when reviewing code I d be interested to hear what other people do the same or differently to me please do leave a comment once you ve finished reading Before looking at the code I read the ticket descriptionWhere I work we are assigned relatively small tasks called tickets so the first thing I do is read through the ticket before looking at the code review This may seem obvious or unnecessary but I think it s important to know what the code is meant to achieve as well as checking that it makes logical sense and works I like to have this in the back of my mind as I go through the code review so I usually keep the ticket open on a different screen so I can look at it alongside the review if needed Then for each code change I encounter I ask… What is this change doing and Why The what may be as simple as removing import statements adding an if check or creating a new method The why could then be I remove these imports as they re no longer used We need to check for this condition before doing the below or I need to add in this new functionality For changes like adding a new method I would ask this for the bigger picture what is this method doing but I would also ask this for each line code block within the method For tests I would ask what case is being tested what is the expected outcome and why If it takes me a long time to understand this part it could be because I am unfamiliar with the code base or practices used but it s worth adding a comment to ask if you re not sure what s happening If it s quite complicated then perhaps the code could be slightly refactored a method variable could be renamed or a comment added in the code to make it more clear Once I understand the logic I ask myself Should this be happening Does it align with what is specified in the ticket description What is not happening here Can I think of any other cases that should be accounted for Are there tests Once I understand the what and why I then think about How for changes more complicated than just removing unused code How is this code change achieving what is intended Will this functionally do what is required by the ticket Can I spot any potential issues where this may behave incorrectly Are there any improvements that can be made This could be performance related or otherwise e g could an if check be short circuited is there repeated code that could be made into a method are any parts not used and can be removed Can I think of any other cases that could be caught here This overlaps a bit with what I said in the previous section but this is slightly different because we re looking at a lower level here will the code behave correctly in all cases e g is a null empty invalid input handled correctly Then I think about Where where is this functionality used This is particularly for changes that would affect other places like changing a public method s signature or functionality or a stored procedure Where is this functionality used and are there other places that already use this functionality and might need to be edited to accommodate the change Have all instances been updated that need to be E g for a ticket to update all instances of X check have all the X checks been updated or might there be more somewhere else If we re using a variable from elsewhere what is its value and does it make sense here E g if a string variable is used check the original string and make sure the wording still makes sense for this use case Sometimes I will search for this myself in the code base if I have an idea where to look otherwise we can leave a comment to ask if the author has checked this Source Saving the world with a code review For text or messages that are displayed returned I would ask Who will see this message If an external user customer will see this message would it make sense to them or does it just make sense to the developers who wrote it We may well need input from someone in a different department like Business Analysis or Product to help with the wording Another consideration is do we want to display this level of information to external users or are we telling them too much about our backend systems If this is for messages being logged will this message make sense if you come across it in a log file Could it do with more context or a reference id so that we can debug more easily If there are existing code comments do they need updating For new comments do they accurately describe what s happening especially given things may have changed even during the review process For automation that is triggered or on a schedule When will this be run This is something I come across more rarely but for this sort of change I would check this generally makes sense and that it aligns with what is outlined in the ticket Finally after reading all the code am I satisfied that this will achieve all the ticket s goals Usually the answer is yes but if something seems to behave differently or is missing then I would leave a comment to ask about it Of course things may have changed since the ticket description was written but even so it s worth asking to make that clear to you and to other reviewers Extra Idea leave a positive comment So often the only comments I leave on code reviews are negative and I just wouldn t leave any comments if I don t find problems with the code After watching the video mentioned below I ve been challenged to write a positive comment in code reviews to help encourage my colleagues Not to force it or be patronising but if there s something I genuinely think is good or interesting then instead of keeping it in my head why not put it in a comment as well Thank you for reading until the end I hope you found some of that interesting Is there anything else that you think about when reviewing code What do you do differently Recommended watching reading“The Art of Giving and Receiving Code Reviews Gracefully by Alexandra Hill under minutes I found this very useful in particular the “As a reviewer we can… and “As an author we can… sections helping us to bring out the best in each other when reviewing code Here is the equivalent blog post if you d rather read it Source for the title picture Code Review |
2022-06-11 18:20:00 |
海外TECH |
DEV Community |
Get started with Chakra-UI |
https://dev.to/thatanjan/get-started-with-chakra-ui-1638
|
Get started with Chakra UIIn this blog I will teach you how to get Started with Chakra UI Video Tutorial What is Chakra UI Chakra UI is a React UI library that has tons of pre styled components and utilities that you can use on the website InstallationI will use nextjs yarn create next app lt my app gt Install packages cd lt my app gt yarn add chakra ui react emotion react emotion styled framer motion Setup Chakra UI with nextWrap the Component component with the ChakraProvider component import ChakraProvider from chakra ui react function MyApp Component pageProps return lt ChakraProvider gt lt Component pageProps gt lt ChakraProvider gt export default MyAppNow we can use chakra UI components How to import componentsAlways import the components and utilities as a named import from the chakra ui react package import Button Text Heading Box Link useTheme from chakra ui react const Index gt return lt Heading gt Heading lt Heading gt export default Index Custom stylesThere are two ways to customize the styles Style Props With style props you can use almost any CSS property as props See all the available style props const Index gt return lt Heading color red fontSize rem gt Heading lt Heading gt SX prop With sx prop you can use any custom style as an object All the property name has to be camelcase const Index gt return lt Heading sx color red fontSize rem gt Heading lt Heading gt Change the color modeWe can change the color mode using the useColorMode hook import React from react import IconButton useColorMode from chakra ui react import MoonIcon SunIcon from chakra ui icons const ToggleMode gt const colorMode toggleColorMode useColorMode return lt IconButton icon colorMode dark lt SunIcon gt lt MoonIcon gt onClick toggleColorMode gt export default ToggleMode Light mode Dark modeTo learn more about chakra UI theme and responsive styles please watch the video tutorial Commonly Used ComponentsHere are some of the components that I use most BoxAspect RatioFlexGridStackButtonInputTextareaTextHeadingLinkIconImage Shameless PlugI have made an Xbox landing page clone with React and Styled components I hope you will enjoy it Please consider like this video and subscribe to my channel That s it for this blog I have tried to explain things simply If you get stuck you can ask me questions By the way I am looking for a new opportunity in a company where I can provide great value with my skills If you are a recruiter looking for someone skilled in full stack web development and passionate about revolutionizing the world feel free to contact me Also I am open to talking about any freelance project I am available on Upwork ContactsEmail thatanjan gmail comlinkedin thatanjanportfolio anjanGithub thatanjanInstagram personal thatanjantwitter thatanjan |
2022-06-11 18:06:55 |
Apple |
AppleInsider - Frontpage News |
See all the macOS naming locations in this Apple Maps guide |
https://appleinsider.com/inside/apple-maps/tips/see-all-the-macos-naming-locations-in-this-apple-maps-guide?utm_medium=rss
|
See all the macOS naming locations in this Apple Maps guideApple s crack marketing team has now named ten versions of macOS from Mavericks to Ventura Here s where they all are whether they came with a photograph of a sand dune or a mountain range Take a look at where macOS Catalina s wallpaper was shotUnbelievably the last OS X named after a type cat was ten years ago Back in the then current OS X Mountain Lion was replaced by OS X Mavericks named after the surfing area in California Read more |
2022-06-11 18:20:48 |
海外TECH |
CodeProject Latest Articles |
Using Bitwise Operations on Bitfields as a Primitive SIMD |
https://www.codeproject.com/Articles/5328556/Using-Bitwise-Operations-on-Bitfields-as-a-Primiti
|
bitfields |
2022-06-11 18:50:00 |
ニュース |
BBC News - Home |
March For Our Lives: Tens of thousands rally for stricter US gun laws |
https://www.bbc.co.uk/news/world-us-canada-61772039?at_medium=RSS&at_campaign=KARANGA
|
demand |
2022-06-11 18:35:18 |
ニュース |
BBC News - Home |
Rwanda asylum plan: Campaigners' challenge to be heard on Monday |
https://www.bbc.co.uk/news/uk-61769300?at_medium=RSS&at_campaign=KARANGA
|
mondaythey |
2022-06-11 18:22:55 |
ニュース |
BBC News - Home |
New Zealand v England: Daryl Mitchell makes 190 on day two at Trent Bridge |
https://www.bbc.co.uk/sport/cricket/61772541?at_medium=RSS&at_campaign=KARANGA
|
bridge |
2022-06-11 18:38:49 |
ニュース |
BBC News - Home |
Premiership semi-final: Leicester Tigers 27-14 Northampton Saints - George Ford inspires win |
https://www.bbc.co.uk/sport/rugby-union/61744542?at_medium=RSS&at_campaign=KARANGA
|
Premiership semi final Leicester Tigers Northampton Saints George Ford inspires winGeorge Ford inspires Leicester to victory against Northampton in his final home game to send Tigers to the Premiership final |
2022-06-11 18:24:39 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【元芸人が教えるウケる会話術】おもしろい人は「会話ですべったとき」なんて言う? - おもろい話し方 |
https://diamond.jp/articles/-/303619
|
話し方 |
2022-06-12 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
自分らしさは「ホッチキス」くらい些細なものでいい - 起業家の思考法 |
https://diamond.jp/articles/-/303958
|
|
2022-06-12 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【出口学長・日本人が最も苦手とする哲学と宗教特別講義】 キリスト教が世界に広がった見事な布教戦術と 誰も知らない《寒冷化》の影響とは? - 哲学と宗教全史 |
https://diamond.jp/articles/-/303309
|
|
2022-06-12 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【日本随一の絵馬師が教える】 2枚同時に見るだけで、突然、人間関係のしがらみ解消! 《伊邪那岐命・伊邪那美命》×《菊理媛神》=絶望から大逆転!『ダブル強運貯金』の新・方程式 - 1日1分見るだけで願いが叶う!ふくふく開運絵馬 |
https://diamond.jp/articles/-/303442
|
【日本随一の絵馬師が教える】枚同時に見るだけで、突然、人間関係のしがらみ解消《伊邪那岐命・伊邪那美命》×《菊理媛神》絶望から大逆転『ダブル強運貯金』の新・方程式日分見るだけで願いが叶うふくふく開運絵馬見るだけで「癒された」「ホッとした」「本当にいいことが起こった」と話題沸騰刷Amazon・楽天位。 |
2022-06-12 03:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
陰口や悪口が気にならなくなる究極の方法 - 生きづらいがラクになる ゆるメンタル練習帳 |
https://diamond.jp/articles/-/304402
|
|
2022-06-12 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【伝説の営業マン×スタンフォード校長】 「次も会いたい!」と言われる人がやっている3大流儀 - スタンフォード式生き抜く力 |
https://diamond.jp/articles/-/303511
|
|
2022-06-12 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【ハーバード×スタンフォードの名医が教える】 誰にでも訪れる「小さい文字が見えにくくなった」という症状の正体とは? - ハーバード × スタンフォードの眼科医が教える 放っておくと怖い目の症状25 |
https://diamond.jp/articles/-/303981
|
そこで参考にしたいのが、『ハーバード×スタンフォードの眼科医が教える放っておくと怖い目の症状』である。 |
2022-06-12 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
どんどん増える 学校からのプリント類 の整理法とは? - 人生が変わる 紙片づけ! |
https://diamond.jp/articles/-/303930
|
どんどん増える学校からのプリント類の整理法とは人生が変わる紙片づけ一番大事なのに、誰も教えてくれなかった「家の中の紙の片づけ方」を書いて、続々重版となりメディアでも話題の石阪京子先生の「人生が変わる紙片づけ」。 |
2022-06-12 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【おすすめファンド7】国内外の株式に分散投資して高い成長を目指すグローバル株式ファンド(スカイオーシャン・アセットマネジメント) - 最新版つみたてNISAはこの9本から選びなさい |
https://diamond.jp/articles/-/303696
|
|
2022-06-12 03:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「スリランカってどんな国?」2分で学ぶ国際社会 - 読むだけで世界地図が頭に入る本 |
https://diamond.jp/articles/-/304324
|
|
2022-06-12 03:05:00 |
コメント
コメントを投稿