Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Inteligencia Artificial en PedidosYa - Una mira...

Inteligencia Artificial en PedidosYa - Una mirada pragmática

Avatar for Francisco Díaz

Francisco Díaz

November 07, 2025
Tweet

More Decks by Francisco Díaz

Other Decks in Technology

Transcript

  1. AI beat us at chess. AI beat us in Jeopardy.

    No one freaked out and ran for the hills. It only made headlines when AI figured out how to write your term paper. — Neil deGrasse Tyson
  2. Machine-learning algorithms may have fundamental problems with reasoning about “purposiveness”

    and intended uses. — David Autor "Why Are There Still So Many Jobs?"
  3. In 1900, 40% of all US employment was on farms.

    Today, it's less than 2%. It's not because we're eating less. — David Autor, Why Are There Still So Many Jobs?
  4. struct TodoListView: View { @State private var items = [

    "Buy groceries", "Do laundry", "Finish SwiftUI feature" ] var body: some View { List(items, id: \.self) { todo in HStack { Text(todo) } } } }
  5. import SwiftUI struct ConferenceView: View { var body: some View

    { Text("Hello, 9punto5!") .frame(maxWidth: .infinity, maxHeight: .infinity) .background(Color.red) .foregroundColor(.white) } }
  6. I want you to refactor this view with the following

    requirements: 1. Make the background color configurable: • Add a property or initializer parameter that allows me to pass in any Color as the background. • Provide a sensible default color if none is passed in (for example, Color.blue). 2. Keep the layout behavior identical: • The view should still expand to fill the available space (i.e., use frame(maxWidth: .infinity, maxHeight: .infinity)). • The text should remain centered. 3. Text styling: • Keep the text as "Hello, 9punto5!" 4. Code quality / style: • Use idiomatic Swift and SwiftUI style. • Keep the implementation simple and self-contained (no unnecessary abstractions or external dependencies). • Don’t add comments unless they are really necessary; the code should be self-explanatory. Please provide the complete, updated SwiftUI view implementation that meets all of these requirements.
  7. import SwiftUI struct ConferenceView: View { let backgroundColor: Color init(backgroundColor:

    Color = .red) { self.backgroundColor = backgroundColor } var body: some View { Text("Hello, 9punto5!") .frame(maxWidth: .infinity, maxHeight: .infinity) .background(backgroundColor) .foregroundColor(.white) } }
  8. "Authored by Francisco, co-piloted by AI. If anything here is

    wrong, blame the human. The AI is just here for the vibes."