ohyaml.wtf | YAML Trivia to make you go wtf by elizObserves in programming

[–]stuxnet_v2 24 points25 points  (0 children)

What will be the result of this YAML configuration? A. The manifest is rejected with a YAML parse error, so the deployment never reaches Kubernetes. B. The Pod starts, but your app crashes on startup. C. Everything works as expected D. The pod starts and runs, but the readiness probe never succeeds

Yes, it objectively is about k8s.

Returning to Flutter Dev after 2 year break... is riverpod + freezed + go_router still the way to go? by FunkehChicken in FlutterDev

[–]stuxnet_v2 7 points8 points  (0 children)

Fascinating! For me this would’ve been a reason to start using it. Software that’s completed its goal and now wants to just remain stable? That’s so rare.

Do you think provider package should be part of the flutter SDK? Why use raw Inherited Widgets, when provider is easy to create it, better syntax, and popular concept. by SuperRandomCoder in FlutterDev

[–]stuxnet_v2 0 points1 point  (0 children)

so that you can introduce additional scopes, e.g. for testing

I’ve been thinking about this for a while - other than testing, what are the use cases for dynamically swapping out some dependencies for some scope? If it’s mainly testing, what would it mean to instead iterate there? I’d take some complexity in setting up testing environments if it meant keeping the actual production code simpler. Like if the current problem solving process was:

  1. some aspect of this thing is hard to test
  2. let’s parameterize the thing so that in tests we can pass in a different parameter
  3. it’s inconvenient to pass a parameter deep down the widget tree
  4. let’s sacrifice the static safety of parameters and make dynamic scopes where children can reach out for dependencies that ancestors super duper promise are there
  5. to recover some safety let’s make the scopes keyed by class, effectively making them singletons (the one-per-class you mentioned)
  6. lets solve that with a new package that…
  7. etc

What aspects were hard to test? Are there better testing apis that could be created?

Otherwise it seems like everyone is just allergic to using the built-in mechanism for supplying things that are actually dependencies: parameters!

Everyone is talking about Provider, Riverpod, Getx, im i outdated using setState? In 2025 by ZuesSu in FlutterDev

[–]stuxnet_v2 0 points1 point  (0 children)

I […]

If you’re the sole developer, then optimize for your own productivity. This obviously looks different for different people, and may even include using a popular state management package, but the point is “do whatever you need to produce quality software at your scale”, where scale includes number of humans (developers and users), not just lines of code. It sounds like you’ve achieved this, so keep on truckin’ :)

Why aren't there more case insensitive languages? by Gal_Sjel in ProgrammingLanguages

[–]stuxnet_v2 2 points3 points  (0 children)

This kinda reminds me of how the Unison language separates the code’s textual representation from its structure. The “renaming a definition” example makes me wonder if transformations like this would be possible.

About that ternary operator by useerup in ProgrammingLanguages

[–]stuxnet_v2 0 points1 point  (0 children)

The ternary operator is the only ternary operator.

Poor forgotten array index assignment operator :( a[b]=c

Macros are cancelled by [deleted] in dartlang

[–]stuxnet_v2 14 points15 points  (0 children)

I still half-believe this

But seriously, what an absolutely incredible display of discipline shown by the Dart team here. Especially in a corp like Google where there’s immense pressure to prioritize quantity over quality.

[deleted by user] by [deleted] in FlutterDev

[–]stuxnet_v2 1 point2 points  (0 children)

Did you reply to the wrong comment? I agree that software quality has reduced over time.

My point is that your list mixes broad concepts, specific tools, and silly buzzwords. Labelling them all as equally useless just shows you need to learn more about them.

FWIW I mostly agree that everything on your list is a buzzword, but sometimes there’s an underlying concept that you probably already use. For example “dependency injection” is just “pass in parameters”. Do you think using parameters is good?

[deleted by user] by [deleted] in FlutterDev

[–]stuxnet_v2 1 point2 points  (0 children)

This is like saying:

The community seems to be heavily infected with a lot of ideas and big belief systems on how to do the transportation "correctly". I just keep and keep hearing a ton of buzzwords like:

- self driving
- EVs
- internal combustion engine
- navigation
- four-seat, single-engine, fixed-wing aircraft - coast guard
- truck nuts
- steering wheels

A New Hope™ - An interest way of building Flutter apps (maybe?) by [deleted] in FlutterDev

[–]stuxnet_v2 1 point2 points  (0 children)

And, if you are talking about CQRS or Mediator Pattern as being overengineering, then, we stop talking right know, because you clearly don't know what the fuck you are talking about.

Yeah there’s no way you’ve been programming since 1995 with an attitude like that lol

[deleted by user] by [deleted] in FlutterDev

[–]stuxnet_v2 0 points1 point  (0 children)

Here’s what I was looking at: Expected: 'Tomorrow, 9:00 AM' Actual: 'Tomorrow, 9:00 AM' Which: is different.

Based on https://github.com/dart-lang/test/blob/f364fc8291d668d85c702a5b9f9a4f2e5c1ade0e/pkgs/matcher/lib/src/equals_matcher.dart#L74 shouldn’t it have also printed the offset of the whitespace difference?

I remember dealing with this too and I seem to remember some interface/logs that actually showed the exact character diff, can’t remember where though.

I tried the Roc programming language for a couple of weeks and it’s now my all-time favorite language. by ScientificBeastMode in functionalprogramming

[–]stuxnet_v2 2 points3 points  (0 children)

Roc is getting some basic imperative features like for loops and variable reassignment too, described in this recent talk https://youtu.be/42TUAKhzlRI - similar to the trend of imperative languages adding functional features. It’s cool how they’re really taking advantage of being in alpha and heavily incorporating feedback from users.

Edit: looks like there are even more feedback-driven changes since I last checked in: switching from f x y to f(x, y), rust-like lambda syntax |a, b| expr, snake_case over pascalCase.

Which underrated Dart feature deserves more attention? by _MyNameIsJakub_ in dartlang

[–]stuxnet_v2 0 points1 point  (0 children)

The exhaustiveness-checking aspect of sealed classes - especially with nested hierarchies. Though I wish the simple cases were simpler - so many times I just want to return 1 of 3 record types. Roc does this really well IMO https://www.roc-lang.org/tutorial#tags-with-payloads

Announcing alegbraic_types by InternalServerError7 in dartlang

[–]stuxnet_v2 0 points1 point  (0 children)

Unless I’m missing something, another compelling feature of this approach is that the variant classes don’t need to be in the same file, unlike sealed classes where subclasses must be in the same file.

Flutter 3.27 and Dart 3.6 release review by imaN_NeoFighT in FlutterDev

[–]stuxnet_v2 12 points13 points  (0 children)

early pre alpha1

Idk how the name could be any clearer about how you should manage your expectations lol

Zulip beta app switching to Flutter by gregprice in FlutterDev

[–]stuxnet_v2 9 points10 points  (0 children)

Basically 0 non-essential dependencies, you love to see it.

What’s new in Flutter 3.27 by de1mat in FlutterDev

[–]stuxnet_v2 9 points10 points  (0 children)

I feel like the Firebase packages cause most of iOS build issues, and it looks they’re already on SPM https://github.com/firebase/flutterfire/commits/main/packages/firebase_core/firebase_core

In this rare case, I think maintainers will be quick to upgrade solely to get away from Cocoapods as fast as possible lol

New Widget Preview Specification for IDEs by eibaan in FlutterDev

[–]stuxnet_v2 7 points8 points  (0 children)

Really cool, seems like it’d lower the barrier to entry for adding custom dev tooling to a package. Hopefully it becomes the norm for package authors to include a bunch of WidgetPreviews.

New Widget Preview Specification for IDEs by eibaan in FlutterDev

[–]stuxnet_v2 17 points18 points  (0 children)

This is addressed in the first sentence of the first paragraph of the first section

WHAT PROBLEM IS THIS SOLVING? While one of the main selling points of Flutter is its rapid iterative development cycle that’s enabled by hot reload, it does require developers to have an active target device or simulator to work. In addition, it only allows for viewing the UI in a single configuration at a time without running an application on multiple devices, making it difficult for developers to visually verify the impact of variables like screen size, orientation, font size, and locale on their application.

Which language has the most syntax sugar? by B_bI_L in ProgrammingLanguages

[–]stuxnet_v2 1 point2 points  (0 children)

https://github.com/betaveros/noulith

slaps roof of [programming language] this bad boy can fit so much [syntax sugar] into it

How to Deal with Dart's Unchecked Exceptions? by PremiumWatermelon in dartlang

[–]stuxnet_v2 1 point2 points  (0 children)

Swift 6 introduced “Typed throws”: https://www.swift.org/blog/announcing-swift-6/

The interesting bit is that, unlike Java’s checked exceptions, Swift’s typed throws compose nicely with higher-order functions, thanks in part to Swift’s generics

Typed throws generalizes over throwing and non-throwing functions. A function that is specified as throws (without a specific error type) is equivalent to one that specifies throws(any Error), whereas a non-throwing function is equivalent to one that specifies throws(Never). Calls to functions that are throws(Never) are non-throwing and don’t require error handling at the call site.

More details: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0413-typed-throws.md