Tag

Null Safety

1 views collected around this technical thread.

Top Architecture Tech Stack
Top Architecture Tech Stack
Sep 18, 2024 · Backend Development

Overview of Java's Null‑Restricted and Nullable Types Preview Feature

The article introduces Java's new preview feature that distinguishes non‑null, nullable, and unspecified types using syntax like Foo! and Foo?, explains its safety benefits, compatibility, automatic null‑pointer detection, strict initialization rules, and flexible nullness conversion, while also containing promotional material for IDE tools.

Backend DevelopmentJavaNull Safety
0 likes · 5 min read
Overview of Java's Null‑Restricted and Nullable Types Preview Feature
macrozheng
macrozheng
Aug 28, 2024 · Fundamentals

How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions

This article explains Java’s preview Null‑Restricted and Nullable type system, showing how the new syntax (Foo! and Foo?) lets developers explicitly declare nullability, improves compile‑time safety, integrates with existing code, and compares the approach to TypeScript’s ! and ? operators.

JavaNull SafetyPreview Feature
0 likes · 7 min read
How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions
Java Architecture Diary
Java Architecture Diary
Aug 21, 2024 · Backend Development

How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions

This article explains Java’s upcoming preview feature that introduces Null‑Restricted (Foo!) and Nullable (Foo?) types, detailing how they express nullability, improve compile‑time safety, ensure strict initialization, and compare with TypeScript’s ! and ? operators, while outlining future adoption prospects.

Backend DevelopmentJavaNull Safety
0 likes · 7 min read
How Java’s New Null‑Restricted Types Aim to Eradicate NullPointerExceptions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 19, 2024 · Backend Development

Why Field Injection in Spring Is Risky and How Constructor Injection Solves It

The article explains how field injection in Spring can cause null‑pointer exceptions, break immutability, violate design principles, and hide circular dependencies, and demonstrates that using constructor injection (with optional @Lazy) provides safer, more maintainable dependency management.

Circular DependencyConstructor InjectionField Injection
0 likes · 7 min read
Why Field Injection in Spring Is Risky and How Constructor Injection Solves It
HelloTech
HelloTech
Apr 3, 2023 · Mobile Development

Flutter Upgrade Journey: Null‑Safety Migration, Engine Crash Fixes, and Build Process

The team’s second‑phase Flutter upgrade details why they moved to Flutter 2.x for null‑safety and performance gains, outlines the migration steps and common fixes, describes how they resolved a FlutterEngine destroyContext crash by cherry‑picking a fix, and provides a complete guide to building the iOS engine and gen_snapshot binaries, while previewing future expansion into Flutter Web and cross‑platform front‑ends.

CI/CDDartEngine Upgrade
0 likes · 13 min read
Flutter Upgrade Journey: Null‑Safety Migration, Engine Crash Fixes, and Build Process
Xianyu Technology
Xianyu Technology
Oct 24, 2022 · Mobile Development

Flutter Null Safety, Code Trim Pitfalls, EngineGroup, and Android Foldable Adaptation

This bulletin explains Flutter’s default null safety and migration steps, warns about code‑trim pitfalls that can bloat binaries, introduces EngineGroup for multi‑engine apps with its memory trade‑offs, and outlines Android foldable adaptation through guidelines, OEM solutions, and Android 12L activity embedding.

EngineGroupFlutterFoldable
0 likes · 6 min read
Flutter Null Safety, Code Trim Pitfalls, EngineGroup, and Android Foldable Adaptation
Xianyu Technology
Xianyu Technology
Apr 13, 2021 · Frontend Development

Flutter 2 New Features: Multi‑Platform Support, Web, Desktop, and Dart Enhancements

Flutter 2 transforms the framework into a true multi‑platform solution by adding stable desktop (Windows, macOS, Linux) and web support, introducing dual‑screen widgets, sound null‑safety, stable FFI, and tooling upgrades, while highlighting migration challenges and future enhancements.

DartFFIFlutter
0 likes · 11 min read
Flutter 2 New Features: Multi‑Platform Support, Web, Desktop, and Dart Enhancements
JD Retail Technology
JD Retail Technology
Jan 6, 2021 · Mobile Development

Kotlin Language Features, Differences from Java, and Their Practical Application in a Mobile Cash Register App

This article examines the classification of mobile apps, the shortcomings of an H5‑based cash register, the rationale for adopting Kotlin over Java, a detailed overview of Kotlin’s language features and differences, practical implementation details, interoperability, null‑safety techniques, encountered issues, and the performance gains achieved after native migration.

KotlinMobile DevelopmentNull Safety
0 likes · 16 min read
Kotlin Language Features, Differences from Java, and Their Practical Application in a Mobile Cash Register App
Jike Tech Team
Jike Tech Team
Sep 24, 2019 · Mobile Development

Master Kotlin for Android: A Quick Start Guide for Mobile Developers

This guide walks Android engineers through adding Kotlin support to new or existing projects, explains Kotlin's variable declarations, null‑safety features, type inference, val/var usage, visibility modifiers, class inheritance, open/final semantics, and safe casting, providing concise code examples and practical tips.

ClassesKotlinMobile Development
0 likes · 25 min read
Master Kotlin for Android: A Quick Start Guide for Mobile Developers
JD Retail Technology
JD Retail Technology
Aug 3, 2018 · Mobile Development

Kotlin Overview, Key Features, and Integration Practices in JD Mobile Development

This article introduces Kotlin as a JVM‑based language, explains why it is chosen for Android development, details its main features such as null safety, data classes, and lambda expressions, compares compilation performance with Java, and provides practical JD‑specific integration steps, configuration tips, common pitfalls, and real‑world usage examples.

Data ClassesGradleKotlin
0 likes · 13 min read
Kotlin Overview, Key Features, and Integration Practices in JD Mobile Development
JD Tech
JD Tech
Aug 2, 2018 · Mobile Development

Kotlin Overview: Features, Null Safety, Data Classes, Interoperability, and JD Mobile Development Integration

This article introduces Kotlin as a JVM‑based language, explains why it is chosen for Android development, details its concise syntax, null‑safety, data‑class and lambda features, demonstrates interoperability with Java, analyzes compilation performance, and provides practical JD mobile‑app integration steps and common troubleshooting tips.

Data ClassesKotlinMobile Development
0 likes · 13 min read
Kotlin Overview: Features, Null Safety, Data Classes, Interoperability, and JD Mobile Development Integration
Ctrip Technology
Ctrip Technology
Jun 26, 2018 · Mobile Development

Practical Kotlin Language Features for Safer and More Concise Android Development

This article introduces essential Kotlin language features—such as null‑safety, the safe‑call and Elvis operators, triple‑quoted strings, powerful when expressions, object declarations, observable properties, and function types—demonstrating how they enable safer, more concise Android development compared to traditional Java code.

KotlinLanguage FeaturesMobile Development
0 likes · 13 min read
Practical Kotlin Language Features for Safer and More Concise Android Development
Qunar Tech Salon
Qunar Tech Salon
Jun 29, 2017 · Mobile Development

Exploring Kotlin: Features, Compatibility, and Advantages for Mobile Development

This article examines Kotlin’s rise after Google I/O 2017, its multi‑platform compilation capabilities, key language features such as immutability, reduced boilerplate, null‑safety, and seamless Java interoperability, while offering practical insights for Android and cross‑platform mobile developers.

KotlinLanguage FeaturesMobile Development
0 likes · 6 min read
Exploring Kotlin: Features, Compatibility, and Advantages for Mobile Development
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 18, 2017 · Mobile Development

Why Kotlin Is Revolutionizing Android Development: Key Benefits Explained

This article explores Kotlin's rise as a first‑class Android language, highlighting its concise syntax, null‑safety, extension functions, functional programming features, seamless Java interoperability, performance parity, and practical tips for teams transitioning from Java to Kotlin.

Extension FunctionsFunctional ProgrammingKotlin
0 likes · 9 min read
Why Kotlin Is Revolutionizing Android Development: Key Benefits Explained
Architecture Digest
Architecture Digest
Sep 2, 2016 · Fundamentals

Programming Philosophy: Writing Elegant, Modular, Readable, and Robust Code

The article presents a comprehensive programming philosophy that emphasizes repeatedly refining code, writing elegant, modular, readable, and simple programs, handling errors and null pointers robustly, and avoiding over‑engineering, offering practical guidelines applicable to any software development language.

Error HandlingNull SafetySoftware Engineering
0 likes · 41 min read
Programming Philosophy: Writing Elegant, Modular, Readable, and Robust Code
Qunar Tech Salon
Qunar Tech Salon
Dec 23, 2015 · Fundamentals

Writing Impervious Code: Proper Use of If‑Else, Error Handling, Null Safety, and Avoiding Over‑Engineering

The article explains how to write robust, error‑free code by always using two‑branch if statements, handling return values and exceptions correctly, avoiding null‑pointer pitfalls, and steering clear of over‑engineering through practical examples and clear best‑practice guidelines.

Error HandlingNull SafetySoftware Engineering
0 likes · 21 min read
Writing Impervious Code: Proper Use of If‑Else, Error Handling, Null Safety, and Avoiding Over‑Engineering
Qunar Tech Salon
Qunar Tech Salon
Feb 12, 2015 · Fundamentals

Highlights of Visual Basic 14: Null‑Safety, Interpolation, and Other New Language Features

The article reviews the most notable Visual Basic 14 enhancements—including the null‑conditional operator, CallerNameAttribute, string interpolation, multi‑line strings, readonly auto‑properties, improved namespace resolution, preprocessor directives, and XML documentation support—illustrating each feature with clear VB code examples.

Language FeaturesNull SafetyReadonly Properties
0 likes · 13 min read
Highlights of Visual Basic 14: Null‑Safety, Interpolation, and Other New Language Features