並び順

ブックマーク数

期間指定

  • から
  • まで

681 - 720 件 / 16707件

新着順 人気順

Rightの検索結果681 - 720 件 / 16707件

  • 【CSS】アニメーションで動く見出しをCSSで作ってみる! - mlog

    今回は、CSSを使って見出しにアニメーションをつけてみたいと思います! 最初に、ベースとなるCSSコードを紹介した後、アニメーションのパターンをいくつか紹介していきます。 目次 ブログで使用する場合は はてなブログの場合 ベースコード 表示の確認 アニメーションパターン 見出しの背景色を変えてみる! 見出しを回転させてみる! ゲージ風のアニメーションをつけてみる! まとめ ブログで使用する場合は ご利用のブログがHTML記述に対応している場合は、紹介するCSSを<style>と</style>で囲んで記述してください。 ※ CSS用の入力欄がある場合は<style>と</style>の囲みなしで記述してください。 HTMLコードについては、そのまま入力でOKです。 はてなブログの場合 以下の記事ではてなブログでCSSを使う方法をまとめています。 今回の内容をはてなブログで試す場合は、上記の

      【CSS】アニメーションで動く見出しをCSSで作ってみる! - mlog
    • 仕事納めだったのでワインのラベルを解読した - ただのにっき(2019-12-27)

      ■ 仕事納めだったのでワインのラベルを解読した あれは11月の9日だったか、相模大野の酒屋をウロウロしていたら「HACKER」なる見慣れないワインが入荷しているのをかみさんが発見。買って会社に持っていけという。そりゃまぁ、いちおううちの職場はハッカーの巣窟ではあるが。 それにしてもこのワイン、名前といいわざとらしい0と1の羅列といい、ぜったいに何か隠れてるに違いないじゃん。それにしても、ググっても日本語の情報ほとんどないし、なんでこんなの仕入れたんだろう。 というわけで購入して、納会の日にでも持っていこうかということになった。 で、本日仕事納めにつき、簡単な掃除のあとで納会会場(会議室)に持ち込んでみました。なお、味は素直で癖がなく、飲みやすい普通のワインでした。 1. まずはラベルを撮影、OCRにかける 丸いラベルを正面から撮ると周辺の歪みがひどいので、中央から左右に半分ずつ使うつもりで

        仕事納めだったのでワインのラベルを解読した - ただのにっき(2019-12-27)
      • 状態機械を合成してデッドロックを検出できる Go 言語パッケージを作ってみました - チェシャ猫の消滅定理

        はじめに マルチスレッドで動作するプログラムの設計は難しい問題です。個々のスレッドの動作は単純に見えても、複数が並行して動作する場合の動作は組み合わせ論的に複雑になります。また、タイミングに依存する不具合は狙って再現することが難しく、通常の単体テストによる検出にも限界があります。 そんなとき、有効な手法がモデル検査です。システムの取りうる状態をあらかじめ網羅的に探索することで、「実際に動作させた際にごく低い確率で踏むバグ」であっても、動作させることなく設計段階で発見することが可能になります。 ところでちょうど先日、デッドロック発見器を自作するハンズオンに参加する機会がありました。内容は非常にシンプルなモデル検査器を実装するというもので、せっかくなのでそのときの成果物を Go のパッケージとしてまとめたものを以下に公開しました。 github.com 以下、このパッケージで何ができるのかを具

          状態機械を合成してデッドロックを検出できる Go 言語パッケージを作ってみました - チェシャ猫の消滅定理
        • 深層学習入門 ~基礎編~ - Qiita

          対象者 深層学習について勉強始めたいな〜って考えている人向け。 いきなりライブラリを利用して何か作るのも手ですが、やっぱりちゃんと理解するには「車輪の再発明」しないといけませんね〜 本記事は深層学習の基礎理論メインですが、できるだけ数式を少なくして図メインでざっくり説明します。 実装などは次回以降順番にやっていこうと思います。 次回の記事はこちらです。 目次 深層学習とは ニューロンモデル レイヤーモデルとニューラルネットワークモデル 活性化関数 シグモイド関数(sigmoid) tanh関数 ReLU関数 ソフトマックス関数(softmax) 計算グラフ 足し算の計算グラフ 掛け算の計算グラフ 割り算の計算グラフ 指数関数の計算グラフ 底がネイピア数の指数関数の計算グラフ 対数関数の計算グラフ 底がネイピア数の対数関数の計算グラフ sigmoid関数の計算グラフ sigmoid関数の順伝

            深層学習入門 ~基礎編~ - Qiita
          • 脳が対側支配をする進化的な利点は何か - 知識のサラダボウル

            (著) 山拓 神経解剖を学ぶと、次のような疑問は自然と生じると思います。それは「なぜ脳では対側支配(contralateral innervation)があるのか」というものです。ここでの対側とは、身体の正中線に対し反対側のことを指します。例としては左運動野が右側の筋群を、右運動野が左側の筋群を制御するといった対側制御(contralateral control)が挙げられます。何ともややこしい配線ですが、なぜ同側支配ではダメだったのでしょうか?対側支配をする利点はあるのでしょうか? かなり基本的な内容に対する疑問ではありますが、この問題はRamón y Cajalの1898年の論文に端を発します (Ramón y Cajal. 1898)。古くはHippocratesも、左頭部負傷が右の筋群の運動に影響を与えることを知っていたようです (Vulliemoz et al., Lancet

              脳が対側支配をする進化的な利点は何か - 知識のサラダボウル
            • Ultimate Guide to Visual Testing with Playwright

              As your web app matures, it becomes challenging to ensure your GUI doesn’t break with any given update. There are a lot of browsers and devices, and countless states for every one of your components. Unit tests ensure your code remains consistent, and E2E tests will ensure your system remains consistent, but neither will catch visual anomalies, layout issues, or platform compatibility issues. Ente

              • 週報 2022/04/17 プログラミングの目標がない人のためのビルドツール実装 - しゅみは人間の分析です

                近況 あまりに天気が良くて鴨川に行ってみた。 自転車だと意外と近くて15分くらい。道は御池通を選んだ。広いので走りやすい。京都は観光客・自動車がそこらじゅうにいるのでルート選択が大事なのだ。 『うつ病九段』に、「メンタルをやった人は自然に触れることで回復するのだ」と書かれていた。鴨川はまさにそういう場所だと思う。 人はまばらで川は鳥だらけ。人間より鴨が多いことすらあるだろう。 ただぼーっと眺めるだけで癒される場所なので、次は原稿を終えた(はずの)妻氏を連れてくる予定だ。 冷えがつらい季節が終わりつつある。これからは疲れと胃腸の調子が課題である。万能の対策は散歩と睡眠だが、特に胃腸が弱っていたら足三里にお灸をせよ、と鍼の先生に言われた。千利休も使っていたツボである。 鍼の先生は爪楊枝とタオルさえあれば仕事ができるらしい。だから大地震が起きても営業するから、予約どおり来てくれ、と言われた。すご

                  週報 2022/04/17 プログラミングの目標がない人のためのビルドツール実装 - しゅみは人間の分析です
                • 「女性は男性のリハビリ施設ではない」とジュリア・ロバーツは言っていない、男のいらない女たち - ネットロアをめぐる冒険

                  【5/13 名言の英語訳を一部訂正】 たぶん、岡村隆史氏のラジオでの発言*1の流れを受けてだと思うのですが、ジュリア・ロバーツの言葉として、以下のものがTLによく流れてきました。 女性は悪く育った男性のリハビリ施設ではありません。男性を直すことも、変えることも、親になることも、育てることも、あなたの仕事ではありません。あなたに必要なのは課題ではなく、パートナーです。 英語圏では検証されているものの*2、その結果は「Unknown」となっていますが、今回はちゃんと初出を発見したので、「お、たまには仕事したな」と思ってください。 2018年の終わりごろから「ジュリア・ロバーツ」名義 この言葉が「ジュリア・ロバーツ」のものとされ始めているのが2018年おわりごろ。Facebookで以下の投稿があります。 Women you are not rehabilitation centers For b

                    「女性は男性のリハビリ施設ではない」とジュリア・ロバーツは言っていない、男のいらない女たち - ネットロアをめぐる冒険
                  • JavaScript's Memory Management Explained | Felix Gerschau

                    javascriptJavaScript's Memory Management ExplainedEven though the JavaScript engine manages memory for us, it's good to know what happens under the hood. Read in Chinese or Korean Most of the time, you can probably get by fine not knowing anything about memory management as a JavaScript developer. Afterall, the JavaScript engine handles this for you. At one point or another, though, you'll encount

                      JavaScript's Memory Management Explained | Felix Gerschau
                    • 「あの漫画はどうアニメになっていったのか」ライツ事業部副部長に聞いた - マガポケベース

                      1クール3カ月のアニメ作品。 制作に3億円、構想からオンエアまで3年がかかると聞けば、「え、そんなに?」と思うかもしれません。 今回はアニメ化の裏側……アニメ制作に欠かせない「委員会」の仕組み、またわたしたち読者が“推し作品のアニメ化”に微力ながらお手伝いできる方法について、講談社のライツ事業部副部長古川慎にうかがいました。 アニメ化作品が決まるまで ――今回はありがとうございます。ライツ事業部はどのような部署なんですか? 古川: ライツとは「権利」。 みなさん画像や映像の中に「©(copyright)」という文字を見たことがありませんか? そのrightを管理してビジネスにしているのが私たちライツ事業部です。 弊社、講談社では漫画や小説など、著者が生み出した多くの著作物を管理しています。こうした著作物の権利を運用して、「実写化」や「アニメ化」、「ゲーム化」などの展開を仕掛けるのが私たち、

                        「あの漫画はどうアニメになっていったのか」ライツ事業部副部長に聞いた - マガポケベース
                      • Pysa: An open source static analysis tool to detect and prevent security issues in Python code

                        Pysa: An open source static analysis tool to detect and prevent security issues in Python code Today, we are sharing details about Pysa, an open source static analysis tool we’ve built to detect and prevent security and privacy issues in Python code. Last year, we shared how we built Zoncolan, a static analysis tool that helps us analyze more than 100 million lines of Hack code and has helped engi

                          Pysa: An open source static analysis tool to detect and prevent security issues in Python code
                        • 10年間の修理受付を家電メーカーに義務付ける法律が可決

                          2020年11月にEUで「持続可能な単一市場に関する決議」が採択されました。この決議には「修理する権利」の規定も含まれており、EUで製品を販売する家電メーカーは、製品の修理を10年間受け付けることが義務付けられます。 Parliament wants to grant EU consumers a “right to repair” | News | European Parliament https://www.europarl.europa.eu/news/en/press-room/20201120IPR92118/parliament-wants-to-grant-eu-consumers-a-right-to-repair New EU ‘right to repair’ laws require technology to last for a decade | The Ind

                            10年間の修理受付を家電メーカーに義務付ける法律が可決
                          • 10 best practices to containerize Node.js web applications with Docker | Snyk Blog | Snyk

                            September 14, 2022: Check out our new and improved cheat sheet for containerizing Node.js web applications with Docker! Are you looking for best practices on how to build Node.js Docker images for your web applications? Then you’ve come to the right place! The following article provides production-grade guidelines for building optimized and secure Node.js Docker images. You’ll find it helpful rega

                              10 best practices to containerize Node.js web applications with Docker | Snyk Blog | Snyk
                            • Everything you need to know from ES2016 to ES2019

                              JavaScript is a language in constant evolution and in the past few years many new features have been added to the ECMAScript specification. This article is an extract of my book Complete Guide to Modern JavaScript and it covers the new additions of ES2016, ES2017, ES2018, ES2019. At the end of the article you will find a link to download a cheatsheet that summarizes everything. Everything new in E

                                Everything you need to know from ES2016 to ES2019
                              • Saving Passwords In Your Browser? You Shouldn't: Here's Why

                                Has Chrome, Edge, or another browser given you the option to "save password"? Here's why you shouldn't, and what to do instead. Everyone should already know how important it is to use strong passwords. Ideally, you'd have a different password for each account, and all of them would be long, complex, and contain numbers and special characters. Few abide by these rules, which is understandable. Afte

                                  Saving Passwords In Your Browser? You Shouldn't: Here's Why
                                • n⁵+5 と (n+1)⁵+5 の最大公約数 - 現実と数学の区別が付かない

                                  Twitterで見かけた答えが意外過ぎる問題. 多項式の公約数と言えば、昔どこかに投稿したんだけど、nが自然数の時の n^5+5 と (n+1)^5+5 の正の公約数としてあり得る整数が、おそらく見た目からは予想できない結果で、面白い。— nishimura (@icqk3) 2020年8月10日 自然数 の最大公約数 (greatest common divisor) を で表します. を自然数とする. を求めよ. この手の問題は,小さい で試してみるのが常套手段です. くらいまで試してみると,すべて となります.その後, を 1万,10万と増やしていっても,ずっと gcd は のままです.こうなると,はいはいパターン見えてきたよと であると予想を立て,数学的帰納法で証明しようという気になります.しかしこれはうまくいきません.実は のときは なのに, で急に\begin{align}\m

                                  • なぜ『THE WIRE/ザ・ワイヤー』は史上最高のテレビドラマと言われるのか? - 海外ドラマパンチ

                                    新古典としての地位を海外では築きつつある『THE WIRE/ザ・ワイヤー』ですが、日本での知名度が低い!なぜ、これほどの名作が日本で知られていないのか!ということで、今回は現代アメリカのリアルを描く海外ドラマ『THE WIRE/ザ・ワイヤー』の魅力を徹底的に紹介していきたいと思います。 ネタバレはないので、『THE WIRE/ザ・ワイヤー』を未見の方、少し観たことがあるけど途中で観るのを辞めてしてしまった方には特に読んでほしいです。もちろん、すでに観たことがある方も大歓迎です。 『THE WIRE/ザ・ワイヤー』基本データ 『THE WIRE/ザ・ワイヤー』は本当に史上最高のテレビドラマか? 『THE WIRE/ザ・ワイヤー』のここに注目! ①魅力的な登場人物たち ②他では見られない緻密な捜査 ③点と点が繋がる脚本の上手さ ④現実の社会問題を照らし出す そうは言っても最初はハードルが高い

                                      なぜ『THE WIRE/ザ・ワイヤー』は史上最高のテレビドラマと言われるのか? - 海外ドラマパンチ
                                    • The end of the Redis adventure - <antirez>

                                      When I started the Redis project more than ten years ago I was in one of the most exciting moments of my career. My co-founder and I had successfully launched two of the major web 2.0 services of the Italian web. In order to make them scalable we had to invent many new concepts, that were already known in the field most of the times, but we didn’t know, nor we cared to check. Problem? Let’s figure

                                      • Port forwarding local services with VS Code

                                        Version 1.92 is now available! Read about the new features and fixes from July. Local Port Forwarding Support for port forwarding is built into Visual Studio Code via Microsoft dev tunnels, no extension required. When running a local web service, you can use the Ports view to make the service accessible to others over the internet. How to use local port forwarding First, you need to have a service

                                          Port forwarding local services with VS Code
                                        • 書籍|能力主義と自己責任は正しいのか?|"The Tyranny of Merit" by Michael J. Sandel - カタパルトスープレックス

                                          2020年のアメリカ大統領選挙で負けたものの、なぜドナルド・トランプはこれほど多くの人を惹きつけるのか?なぜイギリス人はEU離脱を支持するのか?ポピュリズムと一言で言うけれど、なぜポピュリズムがここまで台頭してきたのか?ローレンス・レッシグが主張するように、政治が人々を代表していない。国民全員が四年生大学を出ているわけじゃないんだぜ!(アメリカは1/3しか学位を持っていない)。 トマ・ピケティの新著"Capital and Ideology"ではポピュリズム台頭の理由を一部を説明してくれてはいますが、非常に分かりにくい議論でもありました。それが日本語ではバラモン左翼(brahmin left)と商人右翼(merchant right)の議論です。なぜ、ポピュリズムが台頭するのか?それは既存の政党が有効な政策を打ち出せていないからだ。その主張はわかるのですが、ピンとこない。なぜか?右と左に分

                                            書籍|能力主義と自己責任は正しいのか?|"The Tyranny of Merit" by Michael J. Sandel - カタパルトスープレックス
                                          • Parse, don’t validate

                                            Historically, I’ve struggled to find a concise, simple way to explain what it means to practice type-driven design. Too often, when someone asks me “How did you come up with this approach?” I find I can’t give them a satisfying answer. I know it didn’t just come to me in a vision—I have an iterative design process that doesn’t require plucking the “right” approach out of thin air—yet I haven’t bee

                                            • RailsのGPL混入問題についてまとめ(mimemagic) - Qiita

                                              !!New!!Rails 5.2.5, 6.0.3.6, 6.1.3.1はmimemagicに依存しなくなった(3/27追記) mimemagicがMITに戻った(3/26追記) 概要 RailsのGPL混入問題についてまとめました。間違いがあればご指摘ください。(2021/3/25現在) https://github.com/rails/rails/issues/41750 ここには3つの問題がある。 Railsが依存しているmimemagicのライセンスがMITからGPL2.0になった もともとGPLのものが混入していたのにMITになってしまっていた これにより、Railsのbuildができなくなった Railsが依存しているmimemagic0.3.5が削除されたことが原因 Railsの依存モジュールにGPLのものが混入することとなった mimemagicを0.3.6以降にすればbu

                                                RailsのGPL混入問題についてまとめ(mimemagic) - Qiita
                                              • How Big Tech Runs Tech Projects and the Curious Absence of Scrum

                                                Project management is a topic most people have strong opinions on, and I’m no exception. To answer the question of how different companies run engineering projects, I pulled in help from across the industry. In this issue we’ll cover: Project management approaches across the industry. An overview of a survey with over 100 companies represented, plus key takeaways.Project management at Big Tech. Ho

                                                  How Big Tech Runs Tech Projects and the Curious Absence of Scrum
                                                • WSL 2 Support is coming to Windows 10 Versions 1903 and 1909

                                                  Support for Windows Subsystem for Linux (WSL) 2 distros is being backported to Windows 10 version 1903, and 1909! Yes, you read that right. We heard how much you liked WSL 2 and wanted to expand its accessibility, and over the last few months we worked on bringing it back to 1903 and 1909. About Us We are Ty (Tito) Citrin, a PM, and Mitchell Minkoff, an engineer, both working in Windows Servicing.

                                                    WSL 2 Support is coming to Windows 10 Versions 1903 and 1909
                                                  • 7 Default Windows Files and Folders You Should Never Touch

                                                    In addition to your personal files and folders, the Windows OS itself takes up a lot of space on your computer. With a bit of searching, you can find hidden Windows caches that are safe to clear if you need to reclaim space. However, there are several other Windows default files and folders that you should leave alone. Messing with these could result in an unstable system, loss of data, or other n

                                                      7 Default Windows Files and Folders You Should Never Touch
                                                    • New models and developer products announced at DevDay

                                                      GPT-4 Turbo with 128K context and lower prices, the new Assistants API, GPT-4 Turbo with Vision, DALL·E 3 API, and more. Today, we shared dozens of new additions and improvements, and reduced pricing across many parts of our platform. These include: New GPT-4 Turbo model that is more capable, cheaper and supports a 128K context windowNew Assistants API that makes it easier for developers to build

                                                        New models and developer products announced at DevDay
                                                      • ChatGPTによるプログラム生成の可能性と限界(前編) - Qiita

                                                        はじめに 先日OpenAIがChatGPTという新しいAIのベータ版が公開しました。これを使えばプログラマの仕事がなくなるのではないかと危惧されるほど高度なAIと噂されていますが、この記事では実際に触ってみて感じた特長・短所をまとめます。 ChatGPTとは OpenAIが作成した対話型のAIです。ユーザが自然言語でAIに指示することでさまざまな文章やプログラムを生成することができます。 現在はβテスト中なので無料でだれでも試してみることができます。 早速、ChatGPT君に自己紹介をお願いしましょう。(以下、実際に入力したプロンプトとその回答です。) User: ChatGPTとは何ですか ChatGPT: ChatGPT は、OpenAIがトレーニングさせた大型言語モデルです。このモデルは、文章を理解し、自然な会話をすることができるようになっています。例えば、人間が文章を入力すると、C

                                                          ChatGPTによるプログラム生成の可能性と限界(前編) - Qiita
                                                        • Custom Scrollbars In CSS

                                                          Custom scrollbars are getting more popular nowadays, and I’m very keen to dig into them. There are different reasons why to customize a scrollbar. For example, the default scrollbar can make an app UI look inconsistent across multiple operating systems, and here we can get the benefit of having a unified style. I have always been interested in learning about how to customize a scrollbar in CSS but

                                                            Custom Scrollbars In CSS
                                                          • How to choose the best rendering strategy for your app – Vercel

                                                            How to choose the best rendering strategy for your appOptimizing performance in the way you deliver code. Web rendering has evolved from simple server-rendered HTML pages to highly interactive and dynamic applications, and there are more ways than ever to present your app to users. Static Site Generation (SSG), Server-Side Rendering (SSR), Client-Side Rendering (CSR), Incremental Static Regenerati

                                                              How to choose the best rendering strategy for your app – Vercel
                                                            • Python in Visual Studio Code – February 2021 Release - Python

                                                              We are pleased to announce that the February 2021 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. If you already have the Python extension installed, you can also get the latest update by restarting Visual Studio Code. You can learn more abou

                                                                Python in Visual Studio Code – February 2021 Release - Python
                                                              • TypeScript Clearly & Quickly

                                                                2024-01-01 quick-lint-js is a JavaScript bug finder. Today, version 3.0 makes it also a TypeScript bug finder! quick-lint-js complements TypeScript with beginner-friendly messages and fast linting. install quick-lint-js 🌐 try in browser code on GitHub Example code used in this article has been adapted from various open source projects, including some Copyright Tiny Technologies, Inc. and Copyrigh

                                                                • Optimize long tasks  |  Articles  |  web.dev

                                                                  Optimize long tasks Stay organized with collections Save and categorize content based on your preferences. You've been told "don't block the main thread" and "break up your long tasks", but what does it mean to do those things? Common advice for keeping JavaScript apps fast tends to boil down to the following advice: "Don't block the main thread." "Break up your long tasks." This is great advice,

                                                                    Optimize long tasks  |  Articles  |  web.dev
                                                                  • インクリメンタルに複数の時系列データに対する平均・標準偏差を計算する

                                                                    はじめに データ分析を行う際、それらのデータの特徴を知るために頻繁に平均や分散(データのばらつき)を計算します。 それらは、n個のデータをx_1,x_2,\ldots,x_nと表すと、それぞれ次のような式で計算できました。 平均 m_n = \frac{1}{n}\sum_{i=1}^{n}x_i 分散 \sigma_{n}^2 = \frac{1}{n}\sum_{i=1}^{n} (x_i - m_n)^2 この計算式を愚直にコード(rust)に落とし込むと次のように記述できます。(もしrustを書いたことない方でもプログラミングに馴染みのある方であればなんとなくわかると思います。) // 平均 fn mean(data: &Vec<f64>) -> f64 { let mut sum: f64 = 0.0; for i in 0..data.len() { sum += data[i

                                                                      インクリメンタルに複数の時系列データに対する平均・標準偏差を計算する
                                                                    • マスク氏、テスラ株売却も-60億ドルで飢餓解決と国連が証明できれば

                                                                      長者番付世界一のイーロン・マスク氏は、自身の資産のほんのわずかな部分で世界の飢餓問題を解決できると指摘した国連高官に対し、証明するよう呼び掛けた。 国連の世界食糧計画(WFP)のビーズリー事務局長は先週、マスク氏ら超富豪が食糧問題への支援に「一度限りのベースで今進み出る」べき時だとあらためて求めた。10月半ばのツイートでも同様の呼び掛けを行っていた。 ビーズリー氏はマスク氏とアマゾン・ドット・コム共同創業者ジェフ・ベゾス氏を名指しし、行動を求めた。両氏はブルームバーグ・ビリオネア指数の上位2位を占める。60億ドル(約6850億円)の支援があれば、4200万人の命を救えるとビーズリー氏は指摘した。 これに対しマスク氏は、WFPが「60億ドルが世界の飢餓を正確にどのように解決できるのか、このツイッターのスレッド上で言い表すことができれば、今すぐテスラ株を売却する」とツイート。どのように資金が使

                                                                        マスク氏、テスラ株売却も-60億ドルで飢餓解決と国連が証明できれば
                                                                      • Improving how we deploy GitHub

                                                                        EngineeringImproving how we deploy GitHubAs GitHub doubled it’s developer head count, tooling that worked for us no longer functioned in the same capacity. We aimed to improve the deployment process for all developers at GitHub and mitigate risk associated with deploying one of the largest developer platforms in the world. Over the last year GitHub has doubled the number of developers contributing

                                                                          Improving how we deploy GitHub
                                                                        • GoFの次に覚えたいデザインパターン ~Specificationパターン~ - RAKUS Developers Blog | ラクス エンジニアブログ

                                                                          ビジネスアプリケーションとビジネスルール 用語について パターン適用前 Specification パターン Hard Coded Specification Parameterized Specification Composite Specification 条件の再利用性が向上する テスト性が向上する ルールと条件を統一したインターフェースで扱える 動的にルールを構成できる まとめ 関連するデザインパターン Strategy パターン Composite パターン Interpreter パターン 参考文献 補足 ビジネスアプリケーションとビジネスルール 楽楽精算開発部の id:smdr3s です。主に Java を使ったサーバーサイドを担当しています。 弊社のサービスである楽楽精算は、その名のとおり経費精算のサービスです。主に企業にお勤めの方が、業務での移動時ににかかった交通費や業

                                                                            GoFの次に覚えたいデザインパターン ~Specificationパターン~ - RAKUS Developers Blog | ラクス エンジニアブログ
                                                                          • キリスト教諸教派における中絶の位置付けはどうなっているか - Foolproof Remedies

                                                                            今北産業様向け報告書 ・キリスト教には諸派あるけど、スウェーデン国教会みたいに、中絶の権利の熱心な推進派の教会もあるよ。なんとカトリックでも、今の教皇は中絶を「罪ではあるが容認(罪を自覚して告解するなら赦しを与える)」派だよ。 ・ガチガチの中絶反対派は「アメリカの福音派」「カトリックの守旧派(ポーランドとか)」あたりだよ。彼らは、自分たちが「多数派・支配層に弾圧されている」「自分たちの信仰の自由を守る必要がある」という考えから中絶を禁止したがっているよ。 ・アメリカでは福音派は確かに1教派としては最大だけど、もう無宗教(無神論者・不可知論者含む)の割合は福音派を上回っているよ。 宗教的背景がー価値観がーっていう人が多かったので、じゃあ今キリスト教諸派はどのような立場をとっているかについてまとめておくね。 といっても宗教については、院で短期間宗教政策論をやったくらいの素人なのですが。 前の記

                                                                              キリスト教諸教派における中絶の位置付けはどうなっているか - Foolproof Remedies
                                                                            • 楕円同士の接触判定と衝突判定

                                                                              ググっても出てこなかったので。 2つの楕円が接している(内接 or 外接)かどうか判定する方法についてです。ついでに衝突判定もできます。 衝突判定だけしたい方 以下で説明する方法でも判定自体はできますが、非常に非効率です。悪いことは言いません。GJK法などを使いましょう。凸同士なので簡単にできます。 どうしても接触を判定したい方 心して読み進めてください。 事の発端 まだそんなにバズってないけど宣伝していいらしいので. AI でも普通のプログラマーでもない優秀なプログラマーたる皆さんは,もちろん楕円が接するか判定する方法を知っていますよね? 私は一昨日実装しました.各位の解法に興味があります.よろしくお願いいたします. — 青い楕円形のぜろ (@0_uda) October 4, 2022 もちろん楕円が接するか判定する方法を知っているので、書くことにしました。 楕円の表現方法 楕円とはい

                                                                                楕円同士の接触判定と衝突判定
                                                                              • CommonJS is not going away | Bun Blog

                                                                                We're hiring C/C++ and Zig engineers to build the future of JavaScript! Join our team → Some may be surprised to see the recent release notes for Bun mention CommonJS support. After all, CommonJS is a legacy module system, and the future of JavaScript is ES Modules (ESM), right? As a "forward-thinking" "next-gen" runtime, why would Bun put so much effort into improving CommonJS support? The latest

                                                                                • React TypeScript: Basics and Best Practices

                                                                                  There is no single “right” way of writing React code using TypeScript. As with other technologies, if your code compiles and works, you probably did something right. That being said, there are “best practices” that you’d want to consider following, especially when writing code others will have to either read or re-use for their own purposes. So, here I’m going to list some useful code-snippets tha

                                                                                    React TypeScript: Basics and Best Practices