home.social

#require — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #require, aggregated by home.social.

  1. Catch the error, *then* what? #expect(throws:) and #require(throws:) in Swift Testing return the error directly, so you can inspect it separately from the throw check itself. hackingwithswift.com/swift/6.1

  2. Last but not least is Swift Testing Pro: an agent skill that helps AI coding tools write better tests using Swift Testing. Covers the Test macro, #expect and #require, parameterized testing, confirmations, exit tests, and more. github.com/twostraws/Swift-Tes

  3. Democrats say Trump Iran strikes require Congressional authorization

    misryoum.com/us/politics/democ

    NEWYou can now listen to US News Hub articles! Debate on Capitol Hill continues to rage over whether President Donald Trump started a "war" with the strikes he carried out against Iran last weekend, a key consideration for whether...

    #Democrats #say #Trump #Iran #strikes #require #Congressional #authorization #US_News_Hub #misryoum_com

  4. Federal Conservatives require Lawrence Bishnoi Gang in India star-news.press/wp

    ,Federal Conservatives require Lawrence Bishnoi Gang in India star-news.press/wp, 2025-08-11 21:31:00 Simon Little #Federal #Conservatives #require #Lawrence #Bishnoi #Gang #India

    star-news.press/bishnoi-gang-t

  5. Explore the #require vs #expect macros in Swift testing. Learn when and how to use them to verify state in your code. Watch the video to enhance your testing skills: youtube.com/watch?v=Pr6hEv9GRYY

  6. Key differences between #require and #expect in Swift Testing:

    🍏 Prefix require with try
    ⚠️ Require failures end the test immediately
    🔑 Require unwraps optional values

    fatbobman.com/en/snippet/swift

  7. In case you've missed last week's Swift testing post...

    This time, we looked at the #require macro and how we can use it to unwrap optionals, verify boolean conditions, and check whether our functions throw the right error.
    Learn more here: donnywals.com/testing-requirem

  8. I've just published a new post in my Swift Testing series. This time, we take a look at the #require macro and how we can use it to unwrap optionals, verify boolean conditions, and check whether our functions throw the right error.

    Learn more here: donnywals.com/testing-requirem

  9. Go отлаживать на проде, избавляться от хардкода и переходить на Ginkgo/Gomega: доклады для гоферов

    Что делать, если сервис на проде внезапно лег, а куда копать — непонятно. Знакомая ситуация? Запускать отладчик ой как страшно, но иногда это единственное решение. Как подготовиться и избежать фиаско? Несколько полезных советов дал ведущий инженер в платформе. А еще в нашей подборке — хардкор без хардкода на платформенном сервисе с CEL в конфиге и осознанный, но безболезненный переход на Ginko/Gomega для смелых Go-тестировщиков.

    habr.com/ru/companies/yadro/ar

    #go #ginkgo #gomega #отладка_на_проде #платформенная_разработка #cel #testify #require #доклады

  10. The number of pedestrian deaths in the United States is skyrocketing.
    In 2022 traffic crashes killed 7,805 people on foot
    —that’s an 83 percent rise from 2009, and a 40-year high.

    The vast majority of those deaths involved a car colliding into a human.

    ✅ In September, the National Highway Traffic Safety Administration took a significant step toward addressing the crisis of killer cars,
    proposing a new federal rule that would #require—not ask—carmakers to ensure that the front ends of their vehicles do not create excessive risk of pedestrian head injuries.
    Should the proposal become law, hulking SUVs and pickups would face particular challenges passing NHTSA’s mandatory tests -- ❇️Some cars would have to get a little bit smaller.

    This wouldn’t solve car bloat;
    the head is just one part of the body that can become damaged by a vehicle.
    But is a watershed moment for the NHTSA,
    ⭐️the first time the agency has demanded that automakers adjust the physical shape of their vehicles to mitigate danger to those on foot.

    👉Currently, the NHTSA is soliciting comment, with the general public and automakers able to weigh in and help determine whether the rule ultimately goes on the books or gets watered down. 👈
    The country stands at an important juncture, where it could finally start fixing the deadly problem of large cars—or allow them to continue their expansion.

    slate.com/business/2024/10/car

  11. Hey everyone, I've got a new video for you! 😃

    Discover the power of the #require macro in the Swift Testing Framework!

    Catch unexpected nil values (and expected error 😉) in your tests 🚀

    Watch now: youtu.be/TtKFhJReN5A

  12. > The recent update in Node.js introduces an experimental feature that allows require() to synchronously load ESM graphs that do not contain top-level await. This feature is significant because it allows developers to use require() with ESM.

    zacharylee.substack.com/p/nati

    #javaScript #esm #webdev #nodejs #require #modules #programming #development #technology #tech

  13. When it came time to contemplate marriage, Princess Ricardis placed an announcement in the papers.

    "I #require that all suiters wear their hair in an odd number of braids. Additionally, they must wear robes of iridescent feathers--but no birds are to be harmed in the making of said robes. When visiting, suitors must always bring sardine treats for my cat, pig ears for my dog, and apples for my pony..."

    The requirements were many. Ricardis had strong likes and dislikes. #wss366, #microfiction

  14. @postmodern It depends very much on the size of your $LOAD_PATH.

    This (w/ foo.rb being just an empty file):

    $: << "."
    #require 'foo'
    require_relative './foo'

    Uses 6 syscalls to identify the correct files (which is already more than necessary - it repeats a couple of calls for some reason)

    With the require instead of the require_relative, it takes 8 more because of my chruby setup

    EDIT: I need to test when Rubygems does; it doesn't for default gems, but may still for others

  15. 💥 My Neovim plugin list is long! How about yours?

    Output a number of how many plugins…

    :lua print(#require("lazy").plugins())

    Print out a list of the plugin names…

    :lua for _, v in pairs(require("lazy").plugins()) do print(v[1]) end

    To see the full results…

    :messages