並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 40件

新着順 人気順

optionalの検索結果1 - 40 件 / 40件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

optionalに関するエントリは40件あります。 JavaScripttechfeedjava などが関連タグです。 人気エントリには 『そろそろJavaScriptに採用されそうなOptional Chainingを今さら徹底解説 - Qiita』などがあります。
  • そろそろJavaScriptに採用されそうなOptional Chainingを今さら徹底解説 - Qiita

    みなさん、Optional Chaining使ってますか? 私は先日出たTypeScript 3.7 Betaを小さいプロジェクトに導入して使ってみました。これはとても快適ですね。 例によって、Optional ChainingはECMAScriptに対するプロポーザルの一つです。つまり、もうすぐ入りそうなJavaScriptの新機能です。プロポーザルはたくさんの種類がありますが、その中でもOptional Chainingはその高い有用性からこれまで多くの注目を集めてきました。Optional Chainingは2019年6月のTC39ミーティングでStage 3に上昇し、いよいよ正式採用が近く期待も高まってきたところです。TypeScript 3.7にも導入されたため、TypeScriptユーザーの方々は11月上旬に正式リリースが予定されているTypeScript 3.7を今か今かと待

      そろそろJavaScriptに採用されそうなOptional Chainingを今さら徹底解説 - Qiita
    • Optionalは引数に使うべきでない、という幻想について - ぐるぐる~

      継続渡しすると戻り値は引数になるから「Optional は戻り値にのみ使うべき」というルールは無意味だよ、という話。 あ、そういう話ね、と分かった方はこれ以上読む必要はありません。 Mono が Async + Optional + 例外という欲張りパック状態なのも問題ですが、それについてはまた今度(Mono<Optional<T>> 使わずに Mono<T> を使え、という指摘があり得る。ただ、そっちもそっちで言いたいことはある、という程度)。 今回は、 Mono は Async くらいの意図として使っています*1。 まず、こんなメソッドがあったとします。 Mono<Optional<String>> f(); これ自体は戻り値に Optional を使っているだけなので、「Optional は戻り値にのみ使うべき」は守っています。 しかし、これを使う側はそうはいきません。 例えば、値が

        Optionalは引数に使うべきでない、という幻想について - ぐるぐる~
      • 帰ってきた optional - Protocol Buffers v3.12 から Field presence が導入|Dentsu Digital Tech Blog

        帰ってきた optional - Protocol Buffers v3.12 から Field presence が導入 電通デジタルでバックエンド開発をしている齋藤です。 今回は Protocol Buffers v3.12 のリリースで追加された Field presence 機能について調べたことをご紹介します。 前提:v3.12 以前の Protocol Buffers v3 における optional な値の扱いProtocol Buffers v3 (proto3) では v2 (proto2) にはあった optional ながなくなり、optional を扱うにはひと工夫必要でした。加えて、Message の Filed に値を入れなかった場合は、Fieldの型のディフォルト値が送られてきたとみなす仕様になっています(各型のディフォルト値はこちら)。 そのため、開発者は

          帰ってきた optional - Protocol Buffers v3.12 から Field presence が導入|Dentsu Digital Tech Blog
        • TypeScript 3.7.2がリリースされました!Optional ChainingやNullish Coalescingをさっそく使ってみた | DevelopersIO

          TypeScript 3.7.2がリリースされました!Optional ChainingやNullish Coalescingをさっそく使ってみた 日本時間の11月7日0時過ぎにTypeScriptのメジャーアップデート版となる3.7.2がリリースされました!注目していたOptional ChainingやNullish Coalescingをさっそく使ってみました。 こんにちは。サービスグループの武田です。 日本時間の11月7日0時過ぎにTypeScriptのメジャーアップデート版となる3.7.2がリリースされました! Release TypeScript 3.7.2 · microsoft/TypeScript さまざまな新機能やバグフィックスが含まれていますが、個人的には Optional Chaining と Nullish Coalescing のサポートが非常にうれしいです。詳

            TypeScript 3.7.2がリリースされました!Optional ChainingやNullish Coalescingをさっそく使ってみた | DevelopersIO
          • Refactoring optional chaining into a large codebase: lessons learned • Lea Verou

            Refactoring optional chaining into a large codebase: lessons learned Chinese translation by Coink Wang Now that optional chaining is supported across the board, I decided to finally refactor Mavo to use it (yes, yes, we do provide a transpiled version as well for older browsers, settle down). This is a moment I have been waiting for a long time, as I think optional chaining is the single most subs

            • PEP 703 – Making the Global Interpreter Lock Optional in CPython | peps.python.org

              PEP 703 – Making the Global Interpreter Lock Optional in CPython Author: Sam Gross <colesbury at gmail.com> Sponsor: Łukasz Langa <lukasz at python.org> Discussions-To: Discourse thread Status: Accepted Type: Standards Track Created: 09-Jan-2023 Python-Version: 3.13 Post-History: 09-Jan-2023, 04-May-2023 Resolution: Discourse thread Table of Contents Abstract Motivation The GIL Makes Many Types of

                PEP 703 – Making the Global Interpreter Lock Optional in CPython | peps.python.org
              • Native mobile apps are optional for B2B startups in 2024

                December 17, 2023 Native mobile apps are optional for B2B startups in 2024 I continue to see new B2B software startups struggle with native mobile apps. Consumer software makers can usually start by going all-in on a single platform, but for business tools, that’s rarely an option. So they must face the tall task of tackling web, iOS, and Android at the same time. Hence the proliferation of toolki

                  Native mobile apps are optional for B2B startups in 2024
                • Windows 10 Optional Features: A Quick Guide to the Best Extras You May Want

                  Windows 10 isn't short on features. In fact, the operating system is continually updated to add new ones. But did you know that Windows 10 contains some optional features that you can enable? These optional features are targeted more at power users and IT administrators, though there are some that the average person might want to make use of. We're going to explore the different places where you c

                    Windows 10 Optional Features: A Quick Guide to the Best Extras You May Want
                  • Overhead of Returning Optional Values in Java and Rust | Piotr Kołaczkowski

                    Some programming languages like Java or Scala offer more than one way to express a concept of “lack of value”. Traditionally, a special null value is used to denote references that don’t reference any value at all. However, over time we have learned that using nulls can be very error-prone and can cause many troubles like NullPointerException errors crashing a program in the most unexpected moment

                    • Go Genericsを使ってgo-optionalを書いた / Go Generics感想 - その手の平は尻もつかめるさ

                      Go Genericsがどんなもんか試してみたかったので、これを使ってOptionの実装を書いてみました。 github.com 基本的な使い方としてはSynopsisを読んでもらえばわかると思いますが、ユーティリティとしては IsSome() IsNone() Take() TakeOr() TakeOrElse() Filter() Map() MapOr() Zip() ZipWith() Unzip() UnzipWith() あたりを取り揃えております。examplesも併せてご覧いただくとおおよその使い方の雰囲気が掴めると思います。 利用のためにはまだunstableな最新版 (go1.18) を使う必要があるので、gotipとかを使って新しい処理系を引っぱってくる必要があります。 で、GoのGenericsを使ってみた感想としてdefault valueとかconstrain

                        Go Genericsを使ってgo-optionalを書いた / Go Generics感想 - その手の平は尻もつかめるさ
                      • Python's Steering Council Plans to Make Its 'Global Interpreter Lock' Optional - Slashdot

                        Posted by EditorDavid on Saturday July 29, 2023 @11:34AM from the nice-threads dept. Python's Global Interpreter Lock "allows only one thread to hold the control of the Python interpreter," according to the tutorial site Real Python. (They add, "it can be a performance bottleneck in CPU-bound and multi-threaded code.") Friday the Python Steering Council "announced its intent to accept PEP 703 (Mak

                        • Form fields — Required vs Optional

                          Memo card series n ° 1 : a maximum of information in a minimum of word. The way to mark field have strong implications for how users perceive and complete forms. This is a case of psychology quite simple, indicate the positive is better because it gives a better feeling to users, the decision is made by the user : gives them the power to believe that they have the choice. On the other hand, if you

                            Form fields — Required vs Optional
                          • GitHub - tamagui/tamagui: Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - tamagui/tamagui: Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.
                            • GitHub - tc39/proposal-optional-chaining-assignment: `a?.b = c` proposal

                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                GitHub - tc39/proposal-optional-chaining-assignment: `a?.b = c` proposal
                              • JavaのStream/Optionalに対する理解を深める - asoview! Tech Blog

                                はじめに こんにちは、アソビューでバックエンドエンジニアをしている小原です。 アソビューのバックエンドはJava + Spring Bootで構築されており、プロダクトによってJava8かJava11が利用されています。 Java 8は、2014年3月に正式リリースされ、ラムダ式やStream、Optionalなどの機能が導入されました。皆さんもこれらの機能を活用されている事かと思われます。しかしながら、特にStreamは機能が多いためか、適切に使われてないケースをちらほら見てきました。今回は、StreamとOptionalをおさらいし、理解を深めていただければと思い、記事を書きました。 はじめに Stream 概要 特徴 Streamの生成 中間操作と終端操作 中間操作 filter() map() flatMap() distinct() sorted() peek() limit()

                                  JavaのStream/Optionalに対する理解を深める - asoview! Tech Blog
                                • `get()`を使うな ~ 敗北者の Optional - Qiita

                                  Java の Optional に関する記事を見ると “この教え方では Optional の意味がまるっきりない使い方するやつばかりが生まれるぞ……” というのを数多く見てしまったので,せめてもの反抗にこの記事を書きます。 TL; DR isPresent()とget()しか知らない奴は こういう書き方をしてはいけない 記事を見ていると null チェックはOptional#isPresent()で行い,値はOptional#get()で取り出します。 みたいな解説が多すぎる。 そういうことをしてはいけない。それでは従来の null チェックとなにも変わらない。変わらないどころかタイプ数が増え,実行時間が増え,メモリ使用量が増え,デメリットだけが上乗せされている。メリットはなにも得られていないのに。 Optional<String> someStr = Optional.of("Hello

                                    `get()`を使うな ~ 敗北者の Optional - Qiita
                                  • Optional parameters in Rust – Vidify

                                    Analyzing different approaches for optional parameters in Rust By Mario Ortiz Manero at Oct 10, 2020 , 11 minutes read Disclaimer: I will now be posting these kind of posts at my personal blog: https://nullderef.com/blog/rust-parameters/ Optional or default parameters are a very interesting feature of some languages that Rust specifically doesn’t cover (and looks like it won’t anytime soon ). Say

                                    • 2019-12-10のJS: Firefox 71.0、WebAssembly W3C Recommendation、Nullish Coalescing & Optional Chaining(ES2020)

                                      JSer.info #465 - Firefox 71.0がリリースされました。 Firefox 71.0, See All New Features, Updates and Fixes Firefox 71 for Developers - Mozilla | MDN Firefox 71 サイト互換性情報 | Firefox サイト互換性情報 Firefox 71.0では開発者ツールの改善が多く含まれています。 コンソールパネルではmulti-line modeをサポート、デバッガーパネルではInline variable previewをサポート、ネットワークパネルではRequest Blockingがサポートされています。 また、素のWebSocketsやSocket.IOなどのメッセージをデバッグできるWeb Sockets Inspectorがデフォルトで有効化されています。

                                        2019-12-10のJS: Firefox 71.0、WebAssembly W3C Recommendation、Nullish Coalescing & Optional Chaining(ES2020)
                                      • TypeScriptのOptional Chainingは用法用量を守って正しく使え - Qiita

                                        let x = (foo === null || foo === undefined) ? undefined : foo.bar.baz(); 実際に私も携わっているプロジェクトで foo && foo.bar && foo.bar.hoge というようにしなければいけないことが多く、この見にくいコードから開放されれば良いと 3.7 のリリースをまだかまだかと思っていました。そういった開発者の方は多いのではないかなと思います。 今回はReactを使ったプロジェクトのTypeScriptのバージョンをあげ環境を整える部分と、実際に使ってみた感想と注意点をご紹介できればと思います。 始める際の留意点 大体の場合下記の手順でできるはずです。 tsのバージョンを上げる @babel/plugin-proposal-optional-chainingを導入 VSCodeのワークスペースのTSバージ

                                          TypeScriptのOptional Chainingは用法用量を守って正しく使え - Qiita
                                        • GitHub - WSA-Community/WSAGAScript: Scripts to install Google Apps into a WSA image. Plus optional root

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - WSA-Community/WSAGAScript: Scripts to install Google Apps into a WSA image. Plus optional root
                                          • JavaScriptのOptional ChainingとNullish Coalescing Operatorでnullやundefinedと戦う

                                            JavaScriptとの戦いの大部分は、undefinedとの戦いです。undefinedはあなたのプログラムに素早く忍び込み、全てを壊していくでしょう。 これはTypeScriptでも避けられません。undefinedになりうる値があれば、繊細なガラス細工に触れるときのように慎重に扱わなければなりません。 そんなundefinedとの戦いの中、ほんのちょっぴり役に立つ文法がJavaScriptに導入されたので、紹介したいと思います。 Optionalな値 コードを書いていると、「入力してもしなくても良い」値を扱いたくなる場合があります。例えば外部からデータをフェッチしてくる関数を作るときには、trueかfalseか未指定(undefined)を指定する「disableCache(キャッシュ無効化)」フラグが欲しくなるかもしれません。 そういったoptional(任意入力)の値を実現しよう

                                              JavaScriptのOptional ChainingとNullish Coalescing Operatorでnullやundefinedと戦う
                                            • A Steering Council notice about PEP 703 (Making the Global Interpreter Lock Optional in CPython)

                                              Posting for the whole Steering Council, on the subject of @colesbury’s PEP 703 (Making the Global Interpreter Lock Optional in CPython). Thank you, everyone, for responding to the poll on the no-GIL proposal. It’s clear that the overall sentiment is positive, both for the general idea and for PEP 703 specifically. The Steering Council is also largely positive on both. We intend to accept PEP 703,

                                                A Steering Council notice about PEP 703 (Making the Global Interpreter Lock Optional in CPython)
                                              • Ditto - Resilient Device Connectivity. Servers and Cloud, Optional.

                                                Case StudyCase StudyDnero Provides Unrivaled POS Uptime for Restaurant CustomersDnero POSResilient Device Connectivity. Servers and Cloud, Optional.Mobile ad-hoc mesh networking and peer-to-peer data sync for your enterprise applications. Smarter syncing at the edge in just three steps1Install the Ditto SDK Have your developer install the SDK into your existing mobile, web, IoT, or server applicat

                                                  Ditto - Resilient Device Connectivity. Servers and Cloud, Optional.
                                                • GitHub - Acly/krita-ai-diffusion: Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.

                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                    GitHub - Acly/krita-ai-diffusion: Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
                                                  • Optional chaining (?.) - JavaScript | MDN

                                                    The ?. operator is like the . chaining operator, except that instead of causing an error if a reference is nullish (null or undefined), the expression short-circuits with a return value of undefined. When used with function calls, it returns undefined if the given function does not exist. This results in shorter and simpler expressions when accessing chained properties when the possibility exists

                                                      Optional chaining (?.) - JavaScript | MDN
                                                    • Yarn 3.1 🎃👻 Corepack, ESM, pnpm, Optional Packages ...

                                                      Yarn 3.1 🎃👻 Corepack, ESM, pnpm, Optional Packages ... Welcome to the release notes for Yarn 3.1! We're quite excited by this release, as it brings various improvements that we've all been looking forward to. Let's dig into that! As always, keep in mind those are only the highlights, the full changelog is much more comprehensive. And if you just happen to love reading our release posts, here are

                                                        Yarn 3.1 🎃👻 Corepack, ESM, pnpm, Optional Packages ...
                                                      • VBA 省略可能な引数 Optional と名前付き引数

                                                        はじめに Excel VBA マクロで省略可能な引数 (Optional) を持つ関数を作成する方法と、引数を省略して呼び出す方法を紹介します。 Optional 引数名 As 型名 = 既定値 のようにして、省略可能な引数を持つ関数を作成できます。引数を省略して呼び出されたときの既定値を設定できます。 Call 関数名(引数1:="1") のようにして、引数名を指定して値を渡せます。

                                                          VBA 省略可能な引数 Optional と名前付き引数
                                                        • Django, HTMX and Alpine.js: Modern websites, JavaScript optional

                                                          Building a modern front end in Django without reaching for a full-blown JavaScript framework. Choosing the right tools for the job, and bringing them into your project. Published November 23, 2021, Updated October, 2023 This is Part 5 of Modern JavaScript for Django Developers. Welcome back to "Modern JavaScript for Django Developers"! Previous installments of this series covered 1) organizing you

                                                            Django, HTMX and Alpine.js: Modern websites, JavaScript optional
                                                          • JavaScriptエンジンV8バージョン8.0がリリース、ヒープを40パーセント削減し、Optional ChainingとNull Coalescingを追加

                                                            Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...

                                                              JavaScriptエンジンV8バージョン8.0がリリース、ヒープを40パーセント削減し、Optional ChainingとNull Coalescingを追加
                                                            • Optional variance annotations by ahejlsberg · Pull Request #48240 · microsoft/TypeScript

                                                              With this PR we introduce optional declaration site variance annotations for type parameters of classes, interfaces and type aliases. Annotations take the form of an in and/or out keyword immediately preceding the type parameter name in a type parameter declaration. An out annotation indicates that a type parameter is covariant. An in annotation indicates that a type parameter is contravariant. An

                                                                Optional variance annotations by ahejlsberg · Pull Request #48240 · microsoft/TypeScript
                                                              • TypeScript で any や as を使わなくても型チェックをすり抜けてしまう話(Optional Propertyの危険性) - Qiita

                                                                TypeScript で any や as を使わなくても型チェックをすり抜けてしまう話(Optional Propertyの危険性)TypeScript type A = { b: boolean; n: number; s: string; } type B = { b: boolean; n: number; } type C = { b: boolean; n: number; s?: number; } const a: A = { b: true, n: 10, s: 'text' }; // OK const b: B = a; // A は {b: boolean, n: number} を満たすのでOK const c: C = b; // おや……? TypeScript の様子が…… if (c.s !== undefined) { // number|undefin

                                                                  TypeScript で any や as を使わなくても型チェックをすり抜けてしまう話(Optional Propertyの危険性) - Qiita
                                                                • Layered Toggles: Optional CSS Mixins

                                                                  Layered Toggles: Optional CSS MixinsIn this article, I am sharing the next evolution of space & cyclic toggles, which allows us to create and apply optional mixins in CSS with the help of custom cascade layers, available today in every browser that supports them. I am no stranger to looking for various ways to apply some CSS conditionally, and through the years, went from using math as a way to ac

                                                                  • Optionalで書くとこうなる。 : Javaありがたや

                                                                      Optionalで書くとこうなる。 : Javaありがたや
                                                                    • A surprising feature of JavaScript optional chaining | Swizec Teller

                                                                      Senior Mindset BookGet promoted, earn a bigger salary, work for top companies Start with a free chapterGet a free chapter from the Senior Engineer Mindset book and a sample audiobook chapter, followed by a Senior Mindset 101 email course. A surprising feature of JavaScript optional chainingIn 2020 JavaScript gained a new feature – optional chaining. It solves a problem we've had ... forever. With

                                                                        A surprising feature of JavaScript optional chaining | Swizec Teller
                                                                      • Prevent layout shifting and flashes of invisible text (FOIT) by preloading optional fonts  |  Articles  |  web.dev

                                                                        Prevent layout shifting and flashes of invisible text (FOIT) by preloading optional fonts Stay organized with collections Save and categorize content based on your preferences. Starting in Chrome 83, link rel="preload" and font-display: optional can be combined to remove layout jank completely By optimizing rendering cycles, Chrome 83 eliminates layout shifting when preloading optional fonts. Comb

                                                                        • Firefox 80 Released with Optional GPU Acceleration on Linux - OMG! Ubuntu

                                                                          Download Now: Firefox 80 Released with Optional GPU Acceleration on Linux Mozilla Firefox 80 is now available to download for Windows, macOS and Linux. But before we look at what’s new and improved in Firefox 80 let’s address the shy elephant in the room. The past few months have been difficult for Mozilla and the wider Firefox community It’s fair to say that the past few months have been pretty d

                                                                            Firefox 80 Released with Optional GPU Acceleration on Linux - OMG! Ubuntu
                                                                          • TypeScript で Optional Chaining を使ってみた

                                                                            WeJS @ 37th https://wajs.connpass.com/event/150356/

                                                                              TypeScript で Optional Chaining を使ってみた
                                                                            • GIL Become Optional in Python 3.13

                                                                              GIL or Global Interpreter Lock can be disabled in Python version 3.13. This is currently experimental. What is GIL? It is a mechanism used by the CPython interpreter to ensure that only one thread executes the Python bytecode at a time. An Experimental Feature Python 3.13 brings major new features compared to Python 3.12 and one of them is free-threaded mode, which disables the Global Interpreter

                                                                                GIL Become Optional in Python 3.13
                                                                              • JavaScript Development: Making a Web Worker optional

                                                                                In case you have a lot of JavaScript related logic running inside a main thread or a Web Worker, it makes perfect sense to move expensive logic into another worker. Workers run inside a different thread using their own CPU if possible. However, there can be use cases where in some scenarios there is a lot of JS related workload on a given thread, while in other scenarios this thread is mostly idle

                                                                                  JavaScript Development: Making a Web Worker optional
                                                                                • Optional (Java Platform SE 8)

                                                                                  null以外の値が含まれている場合も含まれていない場合もあるコンテナ・オブジェクトです。値が存在する場合、isPresent()はtrueを返し、get()は値を返します。 含まれる値の有無に応じて追加メソッドが提供されます。たとえば、orElse() (値が存在しない場合にデフォルト値を返す)、ifPresent() (値が存在する場合にコードのブロックを実行する)など。 これは値ベースのクラスで、Optionalのインスタンスに対して、ID依存操作(参照等価性(==)、IDハッシュ・コード、同期など)を使用すると、予期できない結果になる可能性があり、避けてください。

                                                                                  1

                                                                                  新着記事