Skip to content
ℕ𝔸𝕊𝔸™ℕ𝕒𝕤𝕒𝕣𝕖™𝕊𝕡𝕒𝕔𝕖𝕏™ https://nasa.re/

Nasare™🚀

フレッシュ スペース & テクノロジー NEWS📢

  • About 𝒩𝒶𝓈𝒶𝓇𝑒™
  • SMART Tools
  • SMART AI
    • Kubeshark PCAP Export/Import
    • Coaching engineering managers to employ on organizational issues
    • Zelda: Hyperlink’s Awakening game engine documentation (2021)
    • Commercial Resupply Services-CRS
  • Show HN
    • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
    • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
    • 主な BGP 増加をレジデンス Windows デスクトップに追加する
    • ガジェットの複雑さが増し、余分な IP の再利用が促進される
    • 新しい GitHub CLI 拡張インストゥルメント
    • Kubernetes を 7,500 ノードにスケーリング (2021 年)
    • Wander アプリ用の軽量なオンザフリット構成ライブラリ
    • Ask HN
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Level to HN: A corpulent game of snake encoded in a url
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Show HN
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Android phones will at the moment obtain iPhone-love SOS satellite texting
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Level to HN: A corpulent game of snake encoded in a url
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Tag HN: Using Key-Value Retail outlets in Serverless Codehooks.io Applications
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Level to HN: A corpulent game of snake encoded in a url
    • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
    • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Speak HN: What sub $200 product improved HN readers’ 2022
    • Level to HN: An initiate source tool to generate Jet Engine compressors
    • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
    • Insist HN: Ov – characteristic smartly off terminal pager
    • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
    • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
    • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
    • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
  • A Computer virus and a Dilemma
    • OCIS – OwnCloud Countless Scale
    • A Princeton student built an app which is ready to detect if ChatGPT wrote an essay
    • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
    • Adobe’s Command material analysis can be using photos/videos to narrate AI w/o consent
    • Ultralearning a.k.a. how I learned to code
    • Automatic1111 is assist on GitHub after taking away Embedding Links
    • Where Your Sides Came From
    • What Is a Pig Butchering Rip-off?
    • Submit-processing is ruining iPhone photos
    • Clos Topologies and Centralized Retain a watch on in Google’s Datacenter Community
    • Miller Engineering DS-1 House Planetarium
    • Gimel Studio: Non-harmful, 2D image editor
  • Technology
    • Miller Engineering DS-1 House Planetarium
    • Apple Doctors: to construct it as a file it is advisable to electronic mail it to your self
    • The Air India passenger who urinated on a girl has been fired by Wells Fargo
    • The Filesystem Hierarchy Usual Comes to Guix Containers
    • Sooner than it sued Google for copying from Java, Oracle changed into as soon as copying IBM’s SQL (2020)
    • The i3-gaps mission has been merged with i3
    • Making an Alphorn from Scratch
    • Apple: Braille Individual Guides
    • MotherDuck Is a Original Thought
    • The class of CGI and simple make
    • Like a mercurial tour of DragonFly BSD 6.4?
    • computer science
    • AI
    • Artificial intelligence
    • Technology
    • Ai
    • Apple
    • digital
  • TOP HN
    • anti-Mastodon
    • TOP HN
      • Show HN
      • Ask HN
      • coding
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 新しい GitHub CLI 拡張インストゥルメント
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • Artificial intelligence
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • Technology
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Level to HN: A corpulent game of snake encoded in a url
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • 新しい GitHub CLI 拡張インストゥルメント
      • ロンドンで*ダウン*を継続的に見つめる: Pavement Oddities
      • 報酬 HN: C の 30 行でスピンロック
      • FAA の NOTAM とは何ですか? 航空専門家が機械の仕組みを説明
      • ナノGPT
      • 1 ビット LCD のグレースケール (2022)
      • The Muse (YC W12) は FP&A のシニア ディレクターを採用しています
      • Zen (YC S21) はグロース エンジニアを採用しています
      • Tall Inquire of (YC W21) が B2B 回顧録の幹部を採用
      • Actiondesk (YC S19) は、プロダクト ドレスメーカーを採用しています (4-6 か月の契約)
      • Oven (YC S19) は、Bun を作成するために C/C++ または Zig エンジニアを採用しています。
      • WInd3x, the iPod Bootrom exploit 10 years too unhurried
      • Sign HN: FASTA recordsdata を操作するための FUSE モジュール
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • Wage Development Continues to Gradual in the UK and Euro House
      • Stage Supervisor for the unimpressed: 1 Getting started
      • First public free up of Pushup: a brand unique compiler for making net apps in Trip
      • Fixing Cart-Pole Swingup with a Hierarchical Controller
      • Flight Testing the Touchdown Radar for Mars Science Laboratory 2011-06-21T17:36:36Z
      • Flightcontrol (YC W22) is hiring first Developer Recommend
      • Flying boats and other tech for cleaner shipping
      • Four Finalist Touchdown Location Candidates for Mars Science Laboratory 2008-11-19T16:21:01Z
      • France’s prized nuclear sector stalled in Europe’s hour of want
      • French startup unveils new residential thermo-acoustic warmth pump
      • FTC Cracks Down on Firms That Impose Contaminated Noncompete Restrictions
      • FTX’s Aged Prime Lawyer Aided US Authorities in Bankman-Fried Case
      • FY18 NASA lėšų šnypštimas 2017-05-22T00:00:00Z
      • G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
      • Gail.com FAQ
      • Gemini-Titan (GT)-6 – Gemini 6 of 7 – 지역 사진 – 외부 지역 1965-12-15T00:00:00Z
      • Geoffrey Hinton Publishes Original Deep Learning Algorithm
      • Germany warns: AI fingers flee already underway (2021)
      • Gimel Studio: Non-harmful, 2D image editor
      • GitHub Availability File
      • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
      • Google needs RISC-V to be a “tier-1” Android architecture
      • Google researcher, lengthy out of math, cracks devilish dispute about gadgets
      • Google start sourced CDC File Transfer from the ashes of Stadia
      • GRC-2003-C-02097 2004-05-01T00:00:00Z
      • GRC-2013-C-05246 2009-11-26T00:00:00Z
      • Hello world!
      • Highlights of Science Launching on SpaceX CRS-15 2018-06-24T00:00:00Z
      • Hilf Al-Fudul
      • HiOperator (YC S16) Is Hiring VP of Engineering
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • How kind I blueprint a pair of buttocks?
      • How will the haj switch as international temperatures upward thrust?
      • Human gene linked to bigger brains turned into as soon as born from apparently pointless DNA
      • Hundreds of scientists publish a paper every 5 days
      • In Favor of Friction and Flexibility
      • Indicate HN: Klotho – Change into straightforward code into cloud native code
      • Indoor farming isn’t exact for the smartly off
      • Iranian assault drone came across to have parts from more than a dozen US companies
      • Israeli researcher experiences leak of 235M Twitter-linked e-mail addresses
      • Jam Stations in Low Earth Orbit
      • Jazz Is Freedom
      • JPL-20171102-TECHf-0001-ドローントリップ 人間vs機械 2017-11-17T00:00:00Z
      • JPL에서 NASA의 MSI 콘도미니엄 액셀러레이터 2022-08-25T00:00:00Z
      • JPSO extinct facial recognition abilities to arrest a man. The tech modified into once defective
      • jsc2017e136097 – 12 月 4 日,俄罗斯联邦地区公司 (Roscosmos) 的远征 54-55 号机组人员 Anton Shkaplerov 在俄罗斯 Principal person City 的加加林宇航员训练中心上向整洁的祝福者挥手致意,当时他登上了前往附近的 Chkalovsky Ai 的公共汽车2017-12-04T00:00:00Z
      • Kemble’s Cascade of Stars
      • Kepler-90 マシン (アーティストの考え) 2017-12-14T00:00:00Z
      • Koichi Wakata SpaceX 코칭 2022-06-27T00:00:00Z
      • KSC and Proud to Be Heart-Wide Diversity Tournament 2019-08-20T00:00:00Z
      • KSC ir „Proud to Be Center“ įvairovės turnyras 2019-08-20T00:00:00Z
      • AI
      • Artificial intelligence
      • Auto-Generate
      • anti-Mastodon
      • Awesome
      • BioSentinel
      • CATEGORIES
      • DC
      • Dione
      • Diversity
      • drone racing
      • drones
      • Dulles
      • education
      • Event
      • filmstock
      • Goddard
      • AI
      • Ask HN
      • autonomous
      • coding
      • computer science
      • Clusters
      • Artificial intelligence
        • Ai
        • Apple
        • Tesla
        • digital
        • MESSENGER
        • Device
        • Charts
        • change
        • Shows
        • fraud
        • Former
        • fucking
        • purge
        • Works
        • entering
        • Databases
        • Review
        • Strangely
        • Instinct
        • staff
        • Salesforce
        • intern
        • Involuntary
        • promise
        • Twilio’s
        • nisv live
        • attack
        • Iranian
        • France’s
        • prized
        • infrastructure
        • Debian-based
        • nisv s02 ep03
        • siduction
        • Awesome
        • Calculate
        • Beautiful
        • Linux
        • Start
        • dollar
        • Messier
        • Daughters
        • ‘Breakthrough’
        • obesity
        • Al-Fudul
        • sixty years
        • PyTorch
        • discloses
        • Ancient
        • Stone
        • Popup
        • design
        • public
        • expanding
        • cloud
        • forest
        • startup
        • French
        • batteries
        • fleas
        • spotted
        • Petals
        • language
        • Habitual
        • checking
        • GitHub
        • Availability
        • layers
        • inconsistencies
        • Affair
        • Quasi-War
        • Sergey
        • Irate
        • bestseller
        • necessarily
        • Scientists
        • Titan
        • twitch
        • FGS/NIRISS – Fine Guidance Sensor/Near InfraRed Imager and Slitless Spectrograph
        • infrared
        • ISIM – Integrated Science Instrument Module
        • JHU – Johns Hopkins University
        • JWST – James Webb Space Telescope
        • JWST – James Webb Space Telescope
        • absolute zero
        • Big Bang
        • Peace
        • Studio
        • Making
        • project
        • -gaps
        • warns
        • Germany
        • Braille
        • MotherDuck
        • prototype
        • Challenges
        • Infinite
        • OwnCloud
        • Novel
        • Before
        • copying
        • California
        • getting
        • States
        • Criminal
        • Brother
        • Released
        • Method
        • owners
        • ‘richsession’
        • email
        • Elements
        • Where
        • passenger
        • Hierarchy
        • Filesystem
        • economic
        • Crew Dragon
        • Bridenstine
        • Scientific
        • Heaviosity
        • Patterns
        • Unexpected
        • minimalist
        • Ecode
        • Alpha
        • Wolfram
        • Tailwind
        • HiOperator
        • Klotho
        • TEAMS
        • ROBOTICS
        • Antelope
        • Sponsors
        • Ellen Gertsen
        • Transform
        • Flightcontrol
        • subscriptions
        • Internet
        • Theory-building
        • you’re
        • looking
        • Transfer
        • error’
        • Tails
        • migrate
        • Building
        • Bitmovin
        • Remote
        • PhotoRoom
        • Company
        • Taking
        • Ribbon
        • BibDesk
        • Android
        • profilers
        • phones
        • modern
        • Mastercard
        • private
        • We’ve
        • reportedly
        • Microsoft
        • Artsy
        • trades
        • skilled
        • Polygon
        • Flying
        • Princeton
        • Codemods
        • Coaching
        • UK’s
        • popping
        • sourced
        • Wikipedia
        • admin
        • Indoor
        • quick
        • Mysterious
        • Spotify
        • Fancy
        • Spotify
        • Weird
        • mail-order
        • Recipients
        • computer
        • optics
        • partnership
        • commercial
        • telemetry
        • Crisis
        • billionaire
        • Party
        • Onelab
        • Faster
        • general
        • Adobe’s
        • database
        • FinanceDatabase
        • Numerical
        • Freedom
        • concrete
        • Stacks
        • computer science
        • NASA
    • Show HN
    • Ask HN
    • Technology
    • computer science
    • coding
    • Clusters
    • AI
    • drones
    • autonomous
    • Auto-Generate
    • Ask HN
    • Show HN
    • The SMART Science™
    • google
  • CRYPTO
    • Blockchain
    • farming
    • Billionaires
    • FTX’s
    • FinanceDatabase: A database of 300.000 symbols (ETFs, Currencies, Crypto)
  • Artificial intelligence
  • Toggle search form
  • AI コパイロットに関する Microsoft CTO へのインタビュー Show HN
  • TSMC の 3-Nm プッシュ フェース ツールの苦戦 Show HN
  • HDDの出荷台数は2022年にほぼ半減
    HDDの出荷台数は2022年にほぼ半減 Almost
  • 大規模な AI 実験の中止: 元の手紙
    大規模な AI 実験の中止: 元の手紙 Artificial intelligence
  • マイク・ホプキンス宇宙飛行士 メリーランド科学センターへのアドバイスを検索 2014-06-09T00:00:00Z
    マイク・ホプキンス宇宙飛行士 メリーランド科学センターへのアドバイスを検索 2014-06-09T00:00:00Z 38
  • Expose HN: The Last of Us イントロ クリエイター
    Expose HN: The Last of Us イントロ クリエイター Awesome
  • Runlike: 固有の Docker コンテナーが与えられた場合、電車の路線を出力して騒がせます
    Runlike: 固有の Docker コンテナーが与えられた場合、電車の路線を出力して騒がせます Artificial intelligence
  • JuiceFS: Cloud Blob Storage をローカルの Posix ファイルシステムに変える
    JuiceFS: Cloud Blob Storage をローカルの Posix ファイルシステムに変える anti-Mastodon
  • ニューヨーク市で 1951 年から 2006 年まで運用された MTA の装甲貨幣準備
    ニューヨーク市で 1951 年から 2006 年まで運用された MTA の装甲貨幣準備 Artificial intelligence
  • AI / ML ルート / チャンネル / ポッドキャストを追加し、その他を追加します。 このリストへ Show HN
  • ユニークなアンテナとマイクロチップが科学と SF の境界を曖昧にします
    ユニークなアンテナとマイクロチップが科学と SF の境界を曖昧にします Antennas
  • また、単純な光学ファンタズムを使用して、より没入型の Web を明らかにすることはできますか?
    また、単純な光学ファンタズムを使用して、より没入型の Web を明らかにすることはできますか? AI
  • AIのコーヒー理論
    AIのコーヒー理論 anti-Mastodon
  • HN を再集計する: DevPod – コードスペースだがソースから開始され、クライアントにとって最も簡単で、意見にとらわれない Show HN
  • YouTube のビッグ タイトルに 5 年半の懲役、3,000 万ドルの没収命令
    YouTube のビッグ タイトルに 5 年半の懲役、3,000 万ドルの没収命令 anti-Mastodon
再利用可能でカプセル化された UI システムを構築するための「Put Hoisting」

再利用可能でカプセル化された UI システムを構築するための「Put Hoisting」

Posted on February 7, 2023 By 📢 𝕄𝕊𝕄™

Article Hero Image

モディファイヤには、Jetpack Beget の私のお気に入りの有益なプロパティの 1 つが渡されます。 それらは、特性自体を変更することなく、構成可能な有益なプロパティに機能を簡単に追加する選択肢があることを意味します。 ここに、構成可能性と再利用可能性に対する計り知れない解決策があります。 それにもかかわらず、他の修飾子よりも最も定期的に尊敬される修飾子がいくつかあります。 これらの修飾子の 1 つが padding 修飾子です。 Jetpack Beget のすべての場所でやや強力に使用されているため、要素に家を追加する必要があります。

@コンポーザブル リラックス

MyComponent( displayText: 文字列 ) { テキスト仮定 ( 原文の仮定

=displayText, 修飾子 =修飾子.パディング

(下= 16. )dp) ) }

さらに、Jetpack Beget は スペーサー 構成可能な特性も公開します。 スコア foundation キットの割り当てであり、要素に家を追加するだけでよい由緒あるものです

@コンポーザブル 
リラックス マイコンポーネント( displayText:  文字列 ) { 桁 { 文章の想定 (displayText) スペーサー(修飾子= 修飾子.prime(16

.dp)) } }

 

これらの例は両方とも、完全に同じ結果をもたらし、要素への家と一緒に優れた到達点です。 間違いなく、これは間違いである必要があります。 Jetpack Beget は、他のすべてのケースで同じ要素を実行する 2 つの方法を言う必要があります。 これらの違いについて話し、それらが構成可能な特性の再利用性にどのように影響するかを調べてみましょう.

Maker OS は信念を持ったオールインワンの生産性向上マシンです

私は自分の人生をトレースし、整理し、整理するために Maker OS を構築しました。 これで、作成するための選択もできます!

ここで提示する最も簡単な方法は、確固たる世界の使用事例を目撃することです。 ロビンフッドのAndroidアプリのディスプレイベールベールを機会に活用しています

Robinhood の Android アプリ

ディスプレイ ベール ベールを探索するときはいつでも、あなたの最初の本能はそれを小さな部分に分割する必要があります. 宣言型フレームワークは Jetpack Beget を崇拝し、ディスプレイ ベール ベールを一連の再利用可能なパーツとして介在させます。 上のディスプレイ ベール ベールと同じ発音をすると、このディスプレイ ベール ベールをくしゃくしゃにするのに安いリーチがここにあります.

フルディスプレイベールベールはこの7つのパーツを活用して作られています

 

実際には、これらの 7 つのパーツの使用率で、ディスプレイ ベール ベール全体にスコアを付けることができます。 とはいえ、まだ話していない重要なことがあります。 ディスプレイ ベール ベールは一連のパーツに適していません - パーツ間の家は、パーツ自体と同じくらい重要です。 この家にどう取り組むかによって、適切な API と実質的な API の違いが生まれます。

Expose :私は「家」という用語を使って、パーツ間の縦の家を相談しています。 すべての要素内の間隔については、padding 修飾子は一般にカテゴリ別です。 記事の緩和のために、パーツ間の家に特に焦点を当てます.

Component Strategy

左側のスクリーンショット (a) 内に家を追加します。要素自体に padding 修飾子を使用します。 これは確かに機能しますが、確かに今では快適ではありません-多様なコンテキストで SectionHeader 要素を使用したい場合、先頭の家にこだわるでしょう。要素の実装の割り当て以来。

Jetpack に落ち着く

&

ツールを受信トレイに直接接続するとしますか? 独占的な想定と想定への早期アクセスを購読する 👇

未承諾メールは認識されず、作成中にワンクリックで登録解除できます.

たまたま Android で上昇していたのかもしれませんが、昔ながらの Android UI を忘れないでください。 toolkit は margin を真面目な階級市民として考えていました。 スクリーンショット (a) のほんの一部のパーツについて一緒にいる家は、基本的に、壊れた世界の 余白 をエミュレートすることです。 余白の カプセル化が損なわれ、部品の再利用がさらに困難になります 。 代わりに、私が呼ぶのが大好きなリーチの使用を意味します Put Hoisting.

「載せる」巻き上げ

あなたは可能な限り言葉を心に留めることができますそれは非常に同じように聞こえます-声の巻き上げ、これは Google のドキュメントや講演で広く取り上げられています。

Beget での状態ホイストは、コンポーザブルの呼び出し元に魅力的な声を出して、コンポーザブルをステートレスにするパターンです

Put hoisting は、奇妙で素晴らしいアイデアにも同じ原理を適用します。 私たちは、要素自体の変化として、ママまたはパパへのパーツ間の家と一緒に責任を負います。 スクリーンショット (b) で、黄色のセクションはパーツの間に一緒にいる家です。 これにより、多くの多様なコンテキストで要素を再利用できるようになります。 ここに基本的に最も伝統的な疑似コードを実装するためのこのディスプレイ ベール ベールを巻き上げます.

@コンポーザブル リラックス  RobinhoodScreen( ) { LazyColumn { ナビゲーションバー

(..

.)  スペーサー(修飾子=修飾子
.

プライム(16.dp )) アップセルカード(...) スペーサー(...) SectionHeader (..

 .) スペーサー( ...) オファーカード

(..

.)  スペーサー(...) 収益セクション (... ) スペーサー(...) ActionRow( ...

) スペーサー(...) セクションヘッダー

(...) スペーサー(. ..) TickerRow(...) } }

私が スペーサー コンポーザブルを利用していることを探る可能性がありますこのユースケースのために。 これは非常に標準的なパターンであるため、構成可能な有益なプロパティに modifier パラメーターを追加するだけです。 家と一緒にお母さんやお父さんに責任を負わなければならなかったとしても、要素にパディングを追加する修飾子を便利に渡した可能性があります。 NavBar(modifier=Modifier.padding(16.dp)). では、なぜ Spacer コンポーザブルを変更として使用するのでしょうか? きちんと、それにはいくつかの原因があります.

    スペーサー は、一緒に家の余分な意図的なリーチです。 それは非常に強力であり、あなたのパーツをカプセル化したままにし、それらが尊敬されているコンテキストに影響されないようにします.
  1. ジェスチャーやアニメーションに反応するパーツの一種。 たまたまタップしたときにリップル スコアを表示する行要素を想像してみてください。 padding Modifier 内でその要素に渡した場合、追加したこの余分な家でさえジェスチャーに反応します。 Modifiers トピックの発音であるため、このトピックから長い道のりをサポートする選択肢がある可能性がありますが、それは実装に依存することは確かです。 スペーサー を利用すると、これが簡単になり、トピックを完全に回避できます。

要素に追加された余分な家もタッチ ジェスチャーに反応します。

    ほとんどの場合、パーツには常識が存在します。要素の寸法に依存します。 要素のサイズを変更して追加の家を追加した場合、誤った動作をやめてしまいます。 また、スペーサー コンポーザブルを利用することで、このトピックからの長い道のりをサポートします。

まとめ

このブログ投稿では、padding Modifier と Spacer Jetpack Beget の構成可能な特性。 両方の有益なプロパティは要素への家と一緒の同じ計画をサポートしますが、構成可能な有益な適切なプロパティの再利用性に影響を与える 2 つの微妙な違いがあります。 ネクタイ。 また、これらの違いがディスプレイ ベール ベールの最終的な製造にどのように影響するかを示すために、忠実な世界のインスタンスもチェックしました。 最後に、私が「Put Hoisting」と呼んでいるアプローチをチェックアウトしました.家と一緒に保存する責任は、要素自体の変更としてママまたはパパに移されます.

I今日、何か現代的なことを学んだことを願っています。 ネットワーク内でこのテキストを共有することを検討してください。 次回まで👋

Vinay Gaba は Android の Google デベロッパーです。 彼は Airbnb の Tech Lead であり、Android の UI インフラストラクチャとアセンブリ システムを担当しています。 Airbnb の時代を経て、Vinay は Snapchat、Spotify、Deloitte で働き、コロンビア カレッジでコンピューター サイエンスの修士号を取得しました。 彼は 10 年以上にわたって Android に取り組んできました。

Jetpack に落ち着く

&

ツールを受信トレイに直接接続するとしますか? 独占的な想定と想定への早期アクセスを購読する 👇

未承諾メールは認識されず、作成中にワンクリックで登録解除できます.

%% item_read_more_button%%

“Space, anti-Mastodon, Ask HN, Auto-Generate, Billionaires, Blockchain, coding, computer science, CRYPTO, Hoisting”, Show HN, Technology, TOP HN Tags:Blockchain, Hoisting”, Space

Post navigation

Previous Post: Veil HN: Anansi – Ruby の窮状、相当なサイズの義務に対するメモリとディスク (SQLite) の使用
Next Post: AWS Amplify と Start Provide の連携方法

Related Posts

  • Mock.qa – クラウド内の gRPC および HTTP モック API
    Mock.qa – クラウド内の gRPC および HTTP モック API anti-Mastodon
  • 3Dプリンターで仕上げた、多かれ少なかれ新しい魚を揚げる Show HN
  • 中国のテクノロジー企業がChatGPTの注目を集めているAIの才能について何をしているのか
    中国のテクノロジー企業がChatGPTの注目を集めているAIの才能について何をしているのか anti-Mastodon
  • 従来の Coinbase CTO は、ビットコインの効率性に 200 万ドルの賭けをします
    従来の Coinbase CTO は、ビットコインの効率性に 200 万ドルの賭けをします “Former
  • Qucs-S: Qucs with Spice
    Qucs-S: Qucs with Spice anti-Mastodon
  • DuckDuckGo's は、新しいソリューション ボットである AI ディスポジションに参加します
    DuckDuckGo's は、新しいソリューション ボットである AI ディスポジションに参加します anti-Mastodon
  • ジョーンズタウンの虐殺の生存者が CIA を訴えようとした理由 (2022) Show HN
  • Cyber​​abad の警官が、24 州の 66.9 cr の人々の最も深い記録を盗んだ男を逮捕します
    Cyber​​abad の警官が、24 州の 66.9 cr の人々の最も深い記録を盗んだ男を逮捕します anti-Mastodon
  • Microsoft は AI を活用した Bing Chat を「ロボトミー」しましたが、その支持者は満足していません。
    Microsoft は AI を活用した Bing Chat を「ロボトミー」しましたが、その支持者は満足していません。 “lobotomized”
  • オーディオ ライブラリ ベンチマーク: AudioFlux、TorchAudio、Librosa、Essentia など。 Show HN

Recent Posts

  • ML.受信
  • Expose HN: ゲーム流行の初期提供バージョン管理
  • LIMIT 9 は動作するのに LIMIT 10 がハングする場合: インスタント デバッグの話
  • Nvidia のような巨大企業も含まれますか? 巨大になりすぎましたか?
  • AI、間違った比較を大量に生産する「製紙工場」との戦いを激化

Recent Comments

  1. robga on Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
  2. Loic on 行方不明の放射性タブレットは、必死の捜索の後、WA奥地で偶然見つけました
  3. minihat on メタは、標準的な VR e スポーツ Echo Area をシャットダウンします
  4. dafelst on フレーム ポインターの巻き戻しによる Move 実行トレーサーのオーバーヘッドの削減
  5. cloudking on GraphGPT: 構造化されていないテキストの肯定的な素材からのレコードデータ グラフの外挿
  • Linux の黎明期 Show HN
  • FTC は現場の技術者を募集しています
    FTC は現場の技術者を募集しています anti-Mastodon
  • Vim のキーバインド アタッチのすべて – 残りのチェックリスト
    Vim のキーバインド アタッチのすべて – 残りのチェックリスト Artificial intelligence
  • Show HN: GUI とキューイングを備えたプロバイダーとしてのセルフホスト配信
    Show HN: GUI とキューイングを備えたプロバイダーとしてのセルフホスト配信 Artificial intelligence
  • Netfilter での解放後の Linux カーネルの排出、ネイティブ権限昇格 Show HN
  • Tesorio は、レコードデータ サイエンスの責任者、シニア DevOps、シニア ビー エンジニアを採用しています。
    Tesorio は、レコードデータ サイエンスの責任者、シニア DevOps、シニア ビー エンジニアを採用しています。 Senior
  • Lua プログラミング ジェムストーン
    Lua プログラミング ジェムストーン anti-Mastodon
  • SBOM は、役員の仕事に十分に適していますか?
    SBOM は、役員の仕事に十分に適していますか? anti-Mastodon
MAILANON
2100 MAIL
SEO
METAVERSE
BioLINK
CRYPTO MINING
CASINO
DEFI-TRACKER
StartApp Network
RAVES-MONSTER-GAME
RAVES EXCHANGE
RAVES NFT
KVANTA TV

Copyright © 2023 Nasare™🚀.

Powered by PressBook News Dark theme