投稿時間:2022-04-23 10:15:43 RSSフィード2022-04-23 10:00 分まとめ(20件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Googleの「Android 14」のコードネームは「アップサイドダウンケーキ」に https://taisy0.com/2022/04/23/156138.html android 2022-04-23 00:15:29
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 「工場の製造が追い付かない」――ファミマの「クリームパン」、4週間で650万個販売 好調の理由を広報に聞いた https://www.itmedia.co.jp/business/articles/2204/22/news191.html ITmediaビジネスオンライン「工場の製造が追い付かない」ーファミマの「クリームパン」、週間で万個販売好調の理由を広報に聞いたファミリーマートが発売した「ファミマ・ザ・クリームパン」の売れ行きが絶好調だ。 2022-04-23 09:42:00
TECH Techable(テッカブル) ファミマとLuupが資本業務提携。ポート設置店拡大や新サービス創出など全面的な協業へ https://techable.jp/archives/177609 新サービス 2022-04-23 00:00:47
python Pythonタグが付けられた新着投稿 - Qiita OpenWeatherから取得した天気情報をGCS、BigQueryに蓄積する https://qiita.com/Tusnori/items/480b06b1a81c60556c79 bigquery 2022-04-23 09:58:40
python Pythonタグが付けられた新着投稿 - Qiita 『Python1年生』で勉強中(その3) https://qiita.com/megrim_q/items/904f83c6a7e8594b7212 記録 2022-04-23 09:06:54
js JavaScriptタグが付けられた新着投稿 - Qiita 【JavaScript】文字列を切り詰めて「...」を付ける https://qiita.com/chiyo_i/items/1412f5091904b01598f8 javascrip 2022-04-23 09:42:07
AWS AWSタグが付けられた新着投稿 - Qiita AWS公式資料で挑むSCS認定(44)-こんな時どうする(全分野その21) https://qiita.com/mingchun_zhao/items/e7493f0b5679bb4dc719 資料 2022-04-23 09:42:07
AWS AWSタグが付けられた新着投稿 - Qiita 【Glue】約9万件のパーティションを作る時間を計測してみた https://qiita.com/zumax/items/f74dd457b82a90250052 msckrepairtable 2022-04-23 09:28:58
技術ブログ Developers.IO [AWS CDK]組織内に展開するStackSetsをコードで管理する https://dev.classmethod.jp/articles/aws-cdk-organizations-stacksets/ awscdk 2022-04-23 00:37:23
海外TECH MakeUseOf Amazon Is Giving Away 10 Free Kindle Books for World Book Day https://www.makeuseof.com/world-book-day-amazon-giving-free-kindle-books/ amazon 2022-04-23 00:03:55
海外TECH DEV Community Why Fail-fast Offensive Programming is better? https://dev.to/vtsen/why-fail-fast-offensive-programming-is-better-1gko Why Fail fast Offensive Programming is better I personally prefer fail fast offensive over fail safe defensive programming style because it is practical and improves my code productivity This article was originally published at vtsen hashnode dev on April I once had a discussion with my boss and we never came to a conclusion because he is a fail safe guy and I m a fail fast guy So who is correct Or is this merely a personal choice Why I Prefer Fail fast In this article I m going to share with you reasons why I prefer fail fast offensive programming style Validate My AssumptionsFail fast validates my assumptions In coding we often make assumptions and our assumptions mostly wrong at first because we simply don t fully understand the system Fail fast offensive programming style can quickly validate my assumptions Each time my code fails it makes me a better programmer Less Conditional LogicsFail safe code usually comes with more conditional logics If this fails do another thing and if that fails again do something else When proper clean architecture is NOT being done correctly the fail safe code could become very messy Fail fast simply removes this unnecessary conditional checks Pinpoint Root Cause FasterBecause fail fast code fails the code immediately the reported error or exception typically quite close to the actual root cause This reduces the debugging time significantly When fail safe code fails you will have a hard time finding the root cause because it is not supposed to fail in the first place When I Use Fail safe Well I still use a fail safe approach only when dealing with code e g external libraries that is not within my control You want your system to be robust to handle any errors or exceptions from this external libraries Another example is dealing with external dependencies For example a network call or file system call which will throw exceptions Final ThoughtsIn my opinion fail safe defensive programming style is too ideal and not practical because you can t guarantee bug free and cover all scenarios When there is a bug it is harder to find the root cause Have you ever work on the code base when something fails and you have no clue at all It takes you many hours or days to figure out the problem So my coding approach is I always do fail fast first to validate all the assumptions If the software fails and I can t fix the issue due to not within my control I will convert the code to be fail safe Eventually the fail fast approach can also lead to a robust system Which approach do you prefer See AlsoMy Random Thoughts 2022-04-23 00:24:19
海外TECH DEV Community Creating a forum with React and Appwrite – Part 3 https://dev.to/alexcodes/creating-a-forum-with-react-and-appwrite-part-3-5chp Creating a forum with React and Appwrite Part Welcome to the second part in this multi part series on creating a Forum with React and Appwrite If you havn t seen it already go and checkout part here In this installment we re aiming to be able to add new posts and comment on them It s going to be a meaty one so grab your cup of tea and snacks DatabaseAs with any new part of this series we need to get a few things ironed out in the database Firstly head over to your Appwrite Console and click Database We re going to need a new collection to hold our comments for the articles Click add collection and fill out the prompt like below AttributesHead over to the attributes tab for the collection you just created and add the following attributes Attribute IDTypeSizeRequiredArrayDefault ValuepostIdStringYesuserIdStringYescontentStringNoauthorStringNo IndexesHead over to the Indexes tab for the collection you just created and add the following Indexes Index KeyTypeAttributesuserIdkeyuserId ASC postIdkeycategoryId ASC Collection PermissionsOne thing I ve forgotten to mention throughout the series is you ll need to setup your collection permissions By default it s set to collection wide We dont want this Later on in the series we may need to adjust some permissions to allow things to be edited by an Administrator But for now go through each of your collection settings and double check they re set to the following Profiles Posts and Comments collections Categories collection ️On The ToolsWith the pleasantries out the way let s get cracking Head over to your env file and add the following to the bottom of the file REACT APP COMMENTS COLLECTION faeaMake sure you replace faea with the comments collection id found in your appwrite console Create DocumentsWe need to add some code into src Services api js to provide an interface for our UI to be able to create new doucmnets into our database Add the following somewhere into the file createDocument collectionId data read write gt return api provider database createDocument collectionId unique data read write Essentially what we re doing here is telling AppWrite s SDK to call the REST endpoint that handles document creation with a unique ID along with the permission and data information for the document New PostOpen src Components Forum Posts NewPostButton NewPostButton js and update it to look like the following const style position absolute top left transform translate width bgcolor background paper boxShadow p export function NewPostButton props const REACT APP POSTS COLLECTION process env const user useSelector state gt state user const isLoggedIn setIsLoggedIn useState user isLoggedIn const open setOpen React useState false const title setTitle React useState const content setContent React useState const handleOpen gt setOpen true const handleClose gt setOpen false useEffect gt setIsLoggedIn user isLoggedIn function submitPost let fetchPosts id props api createDocument REACT APP POSTS COLLECTION categoryId id userId user account id title title content content author user account name role all then gt setTitle setContent handleClose fetchPosts return isLoggedIn lt gt lt Button style marginTop rem variant contained color primary onClick handleOpen disableElevation gt New Post lt Button gt lt Modal open open onClose handleClose aria labelledby modal modal title aria describedby modal modal description gt lt Box sx style gt lt Typography id modal modal title variant h component h gt New Post lt Typography gt lt TextField fullWidth label Tile id title sx mt value title onChange e gt setTitle e target value gt lt TextField sx mt id content label Content fullWidth multiline rows onChange e gt setContent e target value gt lt Button sx mt variant contained onClick gt submitPost gt Submit lt Button gt lt Box gt lt Modal gt lt gt null Your also going to need to update src Components Forum Posts Posts js to pass through the category id through the props to the child component return lt gt lt Grid container gt lt Grid item xs gt lt NewPostButton id searchParams get id fetchPosts fetchPosts gt lt Grid gt lt Grid item xs style textAlign right gt lt BackButton gt lt Grid gt lt Grid gt posts map post gt lt PostItem title post title description post description author post author key post id id post id gt lt gt Add CommentWe re going to need a new button to click to create a new comment It s very similar to the new post button We could refactor it to leverage it for both scenarios but I m lazy We will revisit this but for now create a new file src Components Post Components NewCommentButton NewCommentButton js with the following export function NewCommentButton props const user useSelector state gt state user const isLoggedIn setIsLoggedIn useState user isLoggedIn useEffect gt setIsLoggedIn user isLoggedIn return isLoggedIn lt Button style marginTop rem variant contained color primary disableElevation gt New Comment lt Button gt null View Post amp CommentsLets render the post and comments Create a new file src Components Post Post js with the following content export function Post props const REACT APP COMMENTS COLLECTION REACT APP POSTS COLLECTION process env let comments setComments useState let post setPost useState const searchParams setSearchParams useSearchParams const navigate useNavigate function fetchComments api listDocuments REACT APP COMMENTS COLLECTION Query equal postId searchParams get id then result gt setComments result documents function fetchPost api getDocument REACT APP POSTS COLLECTION searchParams get id then post gt setPost post useEffect gt if searchParams get id fetchComments fetchPost else navigate return lt gt lt Grid container gt lt Grid item xs gt lt NewCommentButton id searchParams get id fetchComments fetchComments gt lt Grid gt lt Grid item xs style textAlign right gt lt BackButton gt lt Grid gt lt Grid gt lt Card style marginTop rem gt lt CardContent gt lt Typography gutterBottom variant h component div gt post title lt Typography gt lt Typography variant body color text secondary gt post content lt Typography gt lt Typography variant body color text secondary gt by post author lt Typography gt lt CardContent gt lt Card gt comments map comment gt lt Card style marginTop rem gt lt CardContent gt lt Typography variant body color text secondary gt comment content lt Typography gt lt Typography variant body color text secondary gt by comment author lt Typography gt lt CardContent gt lt Card gt lt gt Final AdjustmentsNow we ve got the leg work out the way let s make some adjustments so what you ve developed is useable Head over to your App js file to add a new route Under your posts route add the following lt Route path post element lt Post gt gt Finally let s make posts clickable Open src Components Forum Posts PostItem PostItem js and update lt CardActionArea gt to lt CardActionArea onClick gt navigate post id id gt You may also need to add this in the same function under export function PostItem props const navigate useNavigate You should now be able to add new posts for example Also if you login as another user you can see other comments and posts ConclusionBy now you should have a fairly basic but working message board You can now list categories and topics aswell as view comments From now on the articles will be much more byte sized Focussing on adding smaller features rather than larger pieces of work As always hit me up on twitter or comment here if I ve missed something or you need something clarifying Whats next We re going to carry on adding features in future articles I m also doing a Sub series that takes the finished project and converts it into AWS Amplify instead of Appwrite with Lambda functions API Gateway and Icognito Chuck us a follow on Twitter or on Dev to if you want to be the first to know What features do you want to see added Drop a comment or get in touch with suggestions Learn moreAppwrite s DocsAppwrite s DiscordMy GithubTwitterProject Github 2022-04-23 00:18:58
海外TECH DEV Community Javascript Productivity with Lodash https://dev.to/ankitaabad/javascript-productivity-with-lodash-535f Javascript Productivity with LodashDon t be Busy Be ProductiveLife is too short to write everything from scratch Javascript has an ecosystem of amazing libraries that we can leverage Lodash is one of them When you open the official website of lodash you are greeted with the following quote A modern JavaScript utility library delivering modularity performance amp extras I heavily rely on the utility functions that come with lodash It not only makes me productive but also reduces my codebase size and thus reduce bugs I created a small tutorial to explain this beautiful library Check this out 2022-04-23 00:12:20
海外TECH Engadget Raven Studio game testers can vote to form a union, NLRB rules https://www.engadget.com/activision-blizzard-raven-union-nlrb-004312127.html?src=rss Raven Studio game testers can vote to form a union NLRB rulesA group of quality assurance testers at Raven Software have received the blessing of the National Labor Relations Board to conduct a union vote per a page ruling from the agency released Friday Raven s parent company ーActivision Blizzard ーdid not respond in time to a request for voluntary recognition for the new union the Game Workers Alliance back in January nbsp Tensions within the company came to a head last December when approximately a third of the group s QA testers were suddenly laid off ーafter several months of promises to improve compensation Raven workers began organizing shortly thereafter and engaged in a weeks long strike nbsp Once they returned to work however they were informed their unit would be broken up quot Our QA colleagues will embed directly within various teams across the studio quot was how Raven Studio head Brian Raffel put it at the time a move the seemed intended to stymie unionization efforts nbsp Since then Activision tried to convince the NLRB that the dispersed nature of the QA team should be grounds to dismiss the vote But as per today s ruling the agency didn t sign on to that view According to Jennifer Hadsall a regional director of the agency there is “no evidence that Q A testers are being eliminated or that their role would fundamentally change with the embed process Activision also tried and failed to convince the NLRB that the entirety of Raven Studio s estimated employees would need to be included in the vote quot We are pleased that after reviewing the evidence the National Labor Relations Board rejected Raven Software management s attempts to undermine our efforts to form a union quot a group of Game Workers Alliance organizers told Engadget over email quot It s now time for Raven management to stop trying to prevent us from exercising our rights We are looking forward to voting for and winning our union quot According to a statement from Activision the company is “disappointed that a decision that could significantly impact the future of our entire studio will be made by fewer than percent of our employees The company is also seeking avenues to appeal the NLRB s ruling nbsp Raven software was founded over years ago and had a hand in producing some beloved games like Heretic and Hexen during the golden age of first person shooters Since its acquisition by Activision in it s role has largely been reduced to maintaining the Call of Duty franchise nbsp Tensions between Raven and its owners have mirrored those within Activision Blizzard at large where sexual misconduct claims allegedly covered up by the company s top brass have roiled rank and file workers Employees staged a walkout last November in disgust to voice dissent against the corporate culture in general and CEO Bobby Kotick in specific Earlier this week it was reported that on two separate occasions Meta COO Sheryl Sandberg used her influence to allegedly quash negative stories about Kotick her then boyfriend that were in the works at British tabloid The Daily Mail nbsp The NLRB will begin mailing out ballots to eligible part time and full time QA workers who will have until May to cast a vote count is presently schedule to take place on May nbsp Are you an Activision Blizzard worker with a tip to share You can reach me confidentially on Signal messengered at 2022-04-23 00:43:12
ニュース BBC News - Home Ukraine war: How Russia replaces Ukrainian media with its own https://www.bbc.co.uk/news/world-europe-61154066?at_medium=RSS&at_campaign=KARANGA russian 2022-04-23 00:05:00
ニュース BBC News - Home Mariupol: Videos appear to show dead civilians https://www.bbc.co.uk/news/61187310?at_medium=RSS&at_campaign=KARANGA mariupol 2022-04-23 00:06:28
北海道 北海道新聞 ソマリア首都で爆発、6人死亡 イスラム過激派が関与主張 https://www.hokkaido-np.co.jp/article/673123/ 首都 2022-04-23 09:34:00
北海道 北海道新聞 アフガンで爆発、33人死亡 連日の犠牲者計70人超に https://www.hokkaido-np.co.jp/article/673122/ 連日 2022-04-23 09:29:00
北海道 北海道新聞 英国のルイ王子が4歳に 王室が近影公開 https://www.hokkaido-np.co.jp/article/673117/ 近影 2022-04-23 09:18:00
北海道 北海道新聞 「北海道ラグビーの日」命名 4月30日、5月1日 日本ハム移転後の札幌ドーム活用期待 https://www.hokkaido-np.co.jp/article/672971/ 日本ハム 2022-04-23 09:08:10

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)