投稿時間:2022-10-07 05:23:27 RSSフィード2022-10-07 05:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Renew SaaS Contract Private Offers - AWS Marketplace | Amazon Web Services https://www.youtube.com/watch?v=KzcE0ZWyjzk Renew SaaS Contract Private Offers AWS Marketplace Amazon Web ServicesThis video covers how customers or buyers on the AWS Marketplace can upgrade from their active subscription to SAaS contract products in AWS Marketplace It covers the upgrade and renewal process for SaaS contracts through scenarios offer creation and the buyer subscription More on AWS Marketplace Private Offers AWSMP Private Offer Overview Subscribe to AWS Marketplace Private Offer Videos Subscribe to more AWS videos Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWSMarketplace AWSDemo MPPO AWS AmazonWebServices CloudComputing 2022-10-06 19:08:14
海外TECH MakeUseOf The 12 Best Augmented Reality Apps for Android https://www.makeuseof.com/tag/best-augmented-reality-apps-android/ android 2022-10-06 19:45:14
海外TECH MakeUseOf How to Check the Weather of Another City and Customize the Weather Icon in News and Interests https://www.makeuseof.com/news-interests-weather-icon-city/ interests 2022-10-06 19:15:14
海外TECH DEV Community React Pro Tip #1 - Name your `useEffect`! https://dev.to/deckstar/react-pro-tip-1-name-your-useeffect-54ck React Pro Tip Name your useEffect There s a very simple trick that will x your useEffect hooks readability and probably improve their performance too use named functions as callbacks for your useEffects You might even find that you don t need an effect at all Contents TLDRBackstoryDrawbacksFurther reading TLDR Do this useEffect function doSomethingAfterMounting lt name me Your effect code Not this useEffect gt Your effect code Note that this may or may not make sense to you in months time What for This should provide key benefits More clarity in the purpose of the effect so other programmers would could easily tell what it s supposed to do just by reading the name If the effect throws an error the function s name will show up in the stack trace which should help debugging It should psychologically nudge the programmer into trying to make the effect do only one thing and to split different tasks into several useEffects if necessary But before you even write a useEffect consider if you even need one There are plenty of situations where using props directly or another hook like useMemo may make much more sense BackstoryuseEffect can be a dangerous hook if you don t know what you re doing Doubly so because it s usually opaque with little indication of intent I can t count how many times I ve stared at a giant useEffect with no idea what it was written to do or what its authors were thinking Once upon a time I had to refactor a huge amount of logic for a form page The original author had used useEffect in exactly the way that React doesn t recommend for updating state based on new props for caching for initializing field values for fetching data from an API and other bad practices Even worse he had often written all of that functionality into just one useEffect Clearly someone had never heard of useMemo There were several useEffects that stretched to lines or more Worse yet there were often several of them in one file each of which had its own setState calls that made the effects dependent on each other One file had such useEffects which side note is almost certainly far far too much code for any single component And alas that was not the end of it It turned out that these bad practices were littered throughout the website on code written by several programmers over many months The refactoring took a week and while it s nice to have some stable work to do I m pretty sure both I and the client would ve preferred if I had been doing something more productive It was around that time that I realized that not only is useEffect is very easy to abuse but that probably the worst part of it was how opaque it was I was reading Bob Martin s Clean Code around this time and noticed that this gentleman had some pretty nice tips Among other pearls of wisdom he advised that all variables and functions should have a clear informative name functions should be small and short aim to do one thing have no side effects have minimal or no repetition and should have separated error handlingthe best comment is no comment at all ーyour code should be self explanatory in its intention through its concise logic and good namingIt was obvious to anyone with eyes that these principles were being woefully neglected in our client s codebase So as I did my rewrites I aimed to break up the enormous components with multiple useEffects into smaller easily understandable parts One file could turn into two or five or even ten This meant having to figure out what all of those giant effects actually did ーand to do that I often pulled out big chunks of logic into their own shorter functions fetch effects got their own functions as did moveUI openModal reorderList and many others It turned out that many of these things didn t even need to be effects and were thus eliminated But other things needed to stay as effects ーthings like autoClose or setHasMounted and I wanted to find a way for these effect hooks to also have names I aspired to code in a way so that even a person who didn t know how to program or at least didn t know JavaScript could see a name and instantly know the point of those few lines Comments wouldn t do so I started out with the simple idea of using a memoized callback that would get automatically called whenever its dependencies changed Idea using a named useCallback to add clarity to useEffect don t do this const doSomethingInAnEffect useCallback gt The effect code useEffect gt doSomethingInAnEffect doSomethingInAnEffect This definitely made things better The effects finally had a meaning even if they required this superfluous use of a memoized function It was at that point that one day it just struck me like a lightbulb if all I need is a name why not just use an old fashioned named function instead of an arrow function It seemed so simple and why not We never needed to use this inside the effect And then we could avoid the new useCallback hell that was festering Could it really be so simple I turned to Google and as it turns out I wasn t the first person with the idea see the sources below And if it s on Twitter it must be a great idea right Idea just using an old fashioned named function DO do this useEffect function doSomething insert effect in here lt notice no extra dependencies As I tried to name my effects I realized that their names weren t always so obvious ーand usually this was because one effect was trying to do too many things Once I realized this it became natural to split things apart until each effect did just one thing or just got removed completely and our code quickly got more clearer and simpler as a result Who knew that naming things well would turn out to be a gift that keeps gift on giving And so since then I ve always used named functions whenever I needed useEffect and I advise everyone else to do so too I don t blame my colleagues whom I also call my friends for writing messy useEffects I ve written plenty of unmaintainable code too haven t we all Plus back in those days we didn t have awesome guidance articles like You Might Not Need an Effect which I very much recommend you to read by the way I d also argue that we had inherited the psychological burden of only having one place for effects ーnamely componentDidUpdate ーfrom back in the days when we only had class components and this may have nudged us into a write a giant effect that handles everything state of mind that was didn t always shake off naturally So what have we learned I d say that this experience taught me a few lessons Make sure to keep your functions as short as possible Ideally they should do one thing This tip includes React components too If you need to render a giant form it s probably better to split it up into different files for each section and maybe even each field useEffect shouldn t be treated as a go to solution and can be dangerous if you don t know what you re doing To avoid hurting your app s performance consider if you can get by with just using the prop itself or with using useMemo and useCallback And finally while naming things may be one of the only two hard things in computer science it is absolutely vital for the readability of your code Which is why you absolutely must name all of your useEffects with named functions Drawbacks Are there even any So far I haven t had any issues with this method but have certainly felt the benefits One issue I can imagine occurring is pointer mismatches if you use the this keyword in your effect Recall that arrow functions do not have their own this but rather use their parent s this That said I have never ever seen this being used in an effect or in fact at all in a functional component so I guess it s a non issue ConclusionFrom what I can see we should all switch to using named functions in useEffect and should do so immediately This should make our code cleaner and more reliable and doesn t seem to have any drawbacks Not only would a simple name let everyone know your intentions but it should push you to write short do only one thing effects too What do you think Let me know in the comments And thanks for reading Further reading Sergio Xalambrí Pro Tip Name your useEffect functionsCory House Twitter thread about named useEffectsReact documentation You Might Not Need an EffectRobert C Martin Clean Code A Handbook of Agile Software CraftsmanshipAshutosh Verma The Difference Between Regular Functions and Arrow Functions 2022-10-06 19:46:58
海外TECH Engadget Now TikTok is copying Instagram with 'Photo Mode' https://www.engadget.com/tiktok-photo-mode-instagram-194215693.html?src=rss Now TikTok is copying Instagram with x Photo Mode x At this point we re all pretty used to seeing Instagram copy TikTok Now in a new twist TikTok is copying Instagram with a new feature called “Photo Mode The update allows TikTok users to share multiple still photos in a post along with captions of up to characters The new photo posts which can also feature music will appear in users For You page alongside videos In a blog post TikTok says it hopes Photo Mode combined the recently extended character count will allow creators to “express themselves and more deeply connect with others But Photo Mode is also making the For You Page more like Instagram in ways that may not be as creative According to Mashable the feature is already being used by creators to share recycled text memes and other content that s often popular on Instagram But TikTok now copying Instagram s original premise is especially noteworthy given that Instagram has reportedly been struggling with engagement with its TikTok clone Reels The Wall Street Journal recently reported that TikTok is still vastly outpacing Instagram Reels in daily watch time It s also the latest bout of every social media platform shamelessly copying each other until they all look kind of the same In the last six weeks alone Instagram TikTok and Snapchat have come up with their own take on French upstart BeReal Instagram s hasn t formally launched yet Twitter introduced a TikTok style feed for full screen videos While YouTube Shorts itself a TikTok clone added TikTok style voice overs 2022-10-06 19:42:15
海外TECH Engadget Boston Dynamics and other industry heavyweights pledge not to build war robots https://www.engadget.com/boston-dynamics-and-other-industry-heavyweights-pledge-not-to-build-war-robots-190338338.html?src=rss Boston Dynamics and other industry heavyweights pledge not to build war robotsThe days of Spot being leveraged as a weapons platform and training alongside special forces operators are already coming to an end Atlas as a back flipping soldier of fortune will never come to pass Their maker Boston Dynamics along with five other industry leaders announced on Thursday that they will not pursue or allow the weaponization of their robots according to a non binding open letter they all signed Agility Robotics ANYbotics Clearpath Robotics Open Robotics and Unitree Robotics all joined Boston Dynamics in the agreement quot We believe that adding weapons to robots that are remotely or autonomously operated widely available to the public and capable of navigating to previously inaccessible locations where people live and work raises new risks of harm and serious ethical issues quot the group wrote quot Weaponized applications of these newly capable robots will also harm public trust in the technology in ways that damage the tremendous benefits they will bring to society quot nbsp The group cites quot the increasing public concern in recent months caused by a small number of people who have visibly publicized their makeshift efforts to weaponize commercially available robots quot such as the armed Spot from Ghost Robotics or the Dallas PD s use of an EOD bomb disposal robot as an IED as to why they felt the need to take this stand nbsp To that end the industry group pledges to quot not weaponize our advanced mobility general purpose robots or the software we develop that enables advanced robotics and we will not support others to do so quot Nor will they allow their customers to subsequently weaponize any platforms they were sold when possible That s a big caveat given the long and storied history of such weapons as the Toyota Technical former Hilux pickups converted into DIY war machines that have been a mainstay in asymmetric conflicts since the s nbsp nbsp nbsp nbsp quot We also pledge to explore the development of technological features that could mitigate or reduce these risks quot the group continued but quot to be clear we are not taking issue with existing technologies that nations and their government agencies use to defend themselves and uphold their laws quot They also call on policymakers as well as the rest of the robotics development community to take up similar pledges nbsp 2022-10-06 19:03:38
海外TECH CodeProject Latest Articles Make a Countdown Timer Add-in for Powerpoint? https://www.codeproject.com/Tips/5343260/Make-a-Countdown-Timer-Add-in-for-Powerpoint powerpoint 2022-10-06 19:37:00
海外科学 NYT > Science U.S. to Begin Screening Air Passengers From Uganda for Ebola https://www.nytimes.com/2022/10/06/health/ebola-cdc-uganda.html federal 2022-10-06 19:43:18
海外TECH WIRED 13 Best Target Deal Days Sales (2022): Dyson, Apple, and More https://www.wired.com/story/target-deal-days-oct-2022/ event 2022-10-06 19:47:50
ニュース BBC News - Home UK's Truss joins Europe's leaders for big summit on Ukraine war https://www.bbc.co.uk/news/uk-politics-63151813?at_medium=RSS&at_campaign=KARANGA forum 2022-10-06 19:07:36
ニュース BBC News - Home Omonia Nicosia 2-3 Manchester United: Marcus Rashford inspires Europa League win after scare in Cyprus https://www.bbc.co.uk/sport/football/63153626?at_medium=RSS&at_campaign=KARANGA Omonia Nicosia Manchester United Marcus Rashford inspires Europa League win after scare in CyprusMarcus Rashford scores twice and assists another as Manchester United come from behind to beat Omonia Nicosia on Thursday 2022-10-06 19:13:13
ビジネス ダイヤモンド・オンライン - 新着記事 JR東海が7割増収でJR東・西も大幅増収、コロナ前と比べた「真の復活度」は? - ダイヤモンド 決算報 https://diamond.jp/articles/-/310901 2022-10-07 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 アマゾンのイノベーションを起こす「人事制度」の仕組み、こんなリーダーが評価される!【動画】 - アマゾン流 イノベーションが起こる「働き方」 https://diamond.jp/articles/-/310600 アマゾンのイノベーションを起こす「人事制度」の仕組み、こんなリーダーが評価される【動画】アマゾン流イノベーションが起こる「働き方」米アマゾン・ドット・コムの人事評価の鉄則とは特集『アマゾン流イノベーションが起こる「働き方」』の第回は、アマゾンの「人材活用術」を徹底解説。 2022-10-07 04:52:00
ビジネス ダイヤモンド・オンライン - 新着記事 三菱地所、三井不…不動産5社で売上高・利益「過去最高ラッシュ」、要因は? - ダイヤモンド 決算報 https://diamond.jp/articles/-/310902 三菱地所、三井不…不動産社で売上高・利益「過去最高ラッシュ」、要因はダイヤモンド決算報コロナ禍だけでなく、円安や資材高の影響も相まって、多くの業界や企業のビジネスは混乱状態にある。 2022-10-07 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 「会社で認められない」と悩む中高年、アドラー心理学3つの対処法が救う - 今こそ!リスキリング https://diamond.jp/articles/-/310836 「会社で認められない」と悩む中高年、アドラー心理学つの対処法が救う今こそリスキリング岸田首相が「リスキリング支援に年で兆円を投じる」と表明。 2022-10-07 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 米国株「経験則」裏切る値動き、米中間選挙後は“株価上昇”のアノマリーは途絶えるか - 政策・マーケットラボ https://diamond.jp/articles/-/310855 中間選挙 2022-10-07 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 【町田市ベスト20】小学校区「教育環境力」ランキング!2022年最新版 - 東京・小学校区「教育環境力」ランキング2022 https://diamond.jp/articles/-/310782 【町田市ベスト】小学校区「教育環境力」ランキング年最新版東京・小学校区「教育環境力」ランキング子どもにとってよりよい教育環境を目指し、入学前に引っ越して小学校区を選ぶ時代になった。 2022-10-07 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 「支払いは聖徳太子で」1万円の旧紙幣が偽札かも…店は拒否できる?弁護士に聞く - 弁護士ドットコム発 https://diamond.jp/articles/-/310767 一万円札 2022-10-07 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 過度な円安、政府の政策との矛盾…日銀の金融政策にもっと「怒り」を向けていい理由 - 金融市場異論百出 https://diamond.jp/articles/-/310893 過度な円安、政府の政策との矛盾…日銀の金融政策にもっと「怒り」を向けていい理由金融市場異論百出今の日本銀行の金融政策に対して、国民はもっと怒りをぶつけていいのではないか。 2022-10-07 04:27:00
ビジネス ダイヤモンド・オンライン - 新着記事 金正恩総書記「ミサイル連射戦略」の狙いとは?元外交官が考察 - DOL特別レポート https://diamond.jp/articles/-/310940 2022-10-07 04:26:00
ビジネス ダイヤモンド・オンライン - 新着記事 中国人が安倍元首相の国葬と反対デモを見て「衝撃」を受けたワケ - DOL特別レポート https://diamond.jp/articles/-/310835 2022-10-07 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 Tポイントの統合劇で突入のポイント5強時代、「ドコモ最強説」を唱える理由 - 今週もナナメに考えた 鈴木貴博 https://diamond.jp/articles/-/310904 Tポイントの統合劇で突入のポイント強時代、「ドコモ最強説」を唱える理由今週もナナメに考えた鈴木貴博「Tポイント」と三井住友カードなどが運営する「Vポイント」の統合が話題です。 2022-10-07 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 水際対策緩和で「韓国人インバウンド」急増が秒読み、日本行き航空券バカ売れ - DOL特別レポート https://diamond.jp/articles/-/310716 2022-10-07 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 金融センターランキングでシンガポールがアジア首位に、香港逆転の裏に深謀遠慮 - 莫邦富の中国ビジネスおどろき新発見 https://diamond.jp/articles/-/310905 中国ビジネス 2022-10-07 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 ロレックス、ヴィトンが数万円!?Facebookの怪しすぎる広告を追跡してみた - それ、ネット詐欺です! https://diamond.jp/articles/-/310903 ロレックス、ヴィトンが数万円Facebookの怪しすぎる広告を追跡してみたそれ、ネット詐欺ですロレックスの腕時計、エルメスのバーキンやルイ・ヴィトンのトートバッグ……定価なら数十万、数百万円もするような品物が、ものの数万円で買えるという怪しい広告がある。 2022-10-07 04:05:00
ビジネス ダイヤモンド・オンライン - 新着記事 OPEC減産、米国で勢い増す報復論 解体も視野に - WSJ発 https://diamond.jp/articles/-/310992 解体 2022-10-07 04:01:00
ビジネス 東洋経済オンライン 東上線、川越周辺「小江戸風情」以外に何がある? 都心の駅と勘違いする人がいる「霞ヶ関駅」も | トラベル最前線 | 東洋経済オンライン https://toyokeizai.net/articles/-/623578?utm_source=rss&utm_medium=http&utm_campaign=link_back 東武東上線 2022-10-07 04:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)