- 624
- 10 982
Bill Wake
United States
Приєднався 2 лип 2013
Evolutionary software development - TDD, refactoring, and more.
WORD 24 16: Main View and Rotation - Betwist
* Limit last three guesses shown on main page
* Fix view so GeometryReader at top and rest lays out OK
* Add opacity & scale to our animation
* Change button that shows more guesses
* Extract ViewModifier for buttons
* Add accent-color (mint) border around grid
* Add (inactive) rotate buttons
* Fix view so GeometryReader at top and rest lays out OK
* Add opacity & scale to our animation
* Change button that shows more guesses
* Extract ViewModifier for buttons
* Add accent-color (mint) border around grid
* Add (inactive) rotate buttons
Переглядів: 2
Відео
2024 11 07 Summary - Betwist
Переглядів 44 години тому
We turned our dictionary into a Trie, a data structure that's costly in space, but very quick at answering "is this a word?" and "is this a prefix of a word?" We also made our game able to show the list of all answers on demand. Our focus next week is getting ready to ship.
WORD 24 15: Scoring - Betwist
Переглядів 89 годин тому
* Introduced Score object * Made game calculate scores (mostly from Guesses) * Made top area (guess) take less space * Made the grid fill the area horizontally * GeometryReader apparently acts like it wants to take the rest of the available space vertically. Investigate further.
WORD 24 14: Wrap for Infinite Space - Betwist
Переглядів 1514 годин тому
* Worked out a good algorithm for when to switch views to simulate infinite space
WORD 24 13: Buttons to Shapes - Betwist
Переглядів 919 годин тому
* Draw Shapes instead of Buttons * Allow infinite scrolling (though it still has glitches)
WORD 24 12 - Refactor allAnswers() - Betwist
Переглядів 10День тому
* Refactor allAnswers and tryAllExtensions to reduce duplication * Show potential next letters as italic, with a red border * Extract GridView from ContentView, and LetterView from GridView; pull out other views from ContentView as functions
WORD 24 11: Find All Words Faster (10x?)
Переглядів 18День тому
* Try a word set - sped up some * Compute "contains" and "hasPrefix" at the same time - sped up enough to keep
WORD 24 10: Performance - Betwist
Переглядів 714 днів тому
* Change from linear to binary search - reduced time to find all words to a couple seconds * Try splitting dictionary by first letter - ran a little slower
2024 10 26 Summary - Betwist
Переглядів 1214 днів тому
Last week we worked on the main view, introduced New Game, added rotation, and changed how we show answers.
WORD 24 09: Partial Credit - Betwist
Переглядів 1014 днів тому
* When you submit a long word, credit any shorter words that start it * Make vocabulary know whether a string is a prefix of a longer word * Find all words for a board ('the answers') - our first version worked but took ~2.5 hours to compute it
WORD 24 08: Size-Sensitive Views - Betwist
Переглядів 814 днів тому
* Make the whole button sensitive to touch, not just the letter only * Fixed cell size (now 48x48) * Give the first cell a gray border * Add letter-grid colors to the asset catalog * Assign persistent colors to cell backgrounds * Spike moving while dragging
WORD 24 07: Some Rules, and a Better View
Переглядів 1021 день тому
* Pop out list of guessed words * No message for length of 0 * Improved set of generated letters * Double-tap last letter submits word * No duplicates - move word to the top of the list
2024 10 18 Summary - Betwist
Переглядів 321 день тому
We added infinite scroll and scoring to our word game.
WORD 24 06: Only Dictionary Words! - Betwist
Переглядів 1221 день тому
* Defect fixed - tapping a letter while the "collect" animations runs adds the letter to the guess that's moving down * Add error message display * Show error when word too short * Don't reset selection for invalid words * Dictionary - ("That's not a word!") * Make guess change color if message shown * Improve format of partial word * Add icon to left of partial word (for visual balance)
WORD 24 05: Let's Twist Again - Betwist
Переглядів 3821 день тому
* Add animation to twisting * Change zIndex so word sliding down is in front * Improve the buttons for twisting * Create a separate object for twisting ("Twister") * Allow swipe for twisting stackoverflow.com/questions/60885532/how-to-detect-swiping-up-down-left-and-right-with-swiftui-on-a-view stackoverflow.com/questions/58891309/swiftui-how-to-implement-swipgesture www.hackingwithswift.com/bo...
WORD 24 03: Highlight Selection - Betwist
Переглядів 16Місяць тому
WORD 24 03: Highlight Selection - Betwist
CALC 24 04 - First-Time Alert - KiltCalc
Переглядів 28Місяць тому
CALC 24 04 - First-Time Alert - KiltCalc
CALC 24 03 - Input vs Result - KiltCalc
Переглядів 23Місяць тому
CALC 24 03 - Input vs Result - KiltCalc
CALC 24 02 - Use Result as Initial Expression - KiltCalc
Переглядів 29Місяць тому
CALC 24 02 - Use Result as Initial Expression - KiltCalc
CALC 24 01 - Restarting the Project - KiltCalc
Переглядів 24Місяць тому
CALC 24 01 - Restarting the Project - KiltCalc
FI 24 58: Demo, Walkthrough, Wrap-up Changes - Fiume
Переглядів 11Місяць тому
FI 24 58: Demo, Walkthrough, Wrap-up Changes - Fiume
FI 24 57: Refine Date Assumptions - fiume
Переглядів 27Місяць тому
FI 24 57: Refine Date Assumptions - fiume
FI 24 56: Create Date Assumptions - Fiume
Переглядів 12Місяць тому
FI 24 56: Create Date Assumptions - Fiume
FI 24 55: Editing DateSpecs with Assumptions - Fiume
Переглядів 16Місяць тому
FI 24 55: Editing DateSpecs with Assumptions - Fiume
The most difficult Playlist I've ever seen. 😵💫
Hey my dude, I just want to tell you that your content is not irrelevant and that you did good. It's only natural that few people would even be aware of the Parson's Code so hence the small views but it still important work you did here
How I can make more than 10 columns?
They may have removed that restriction in I think iOS 17. Worth checking anyway.
@@billwake Have you tried it?
@@LebenWerden Nope - but reply here if you do:)
good video, thanks 🙏🙏
Hi, how you can move rows?
You operate on the underlying collection. Check out the examples in the docs - developer.apple.com/documentation/SwiftUI/Table - the collection is declared as State, given to the table. If the collection changes, the table gets notified.
Bummer
Hi, how you can make for iOS table scrolling horizontal? When I put table into a ScrollView then the table disappears.
The docs imply it will automatically scroll horizontally on Mac. Have you tried putting the ScrollView (restricted to horizontal-only) inside the Table and the contents inside that? I don't have any other ideas though:)
@@billwakeOn mac it works. But I want horizontal scrolling for iOS.
Here's hoping they announce Swift Testing integration next week!
Nice job, Bill!
With my lang, I took the exact opposite approach. The REPL editor runs in raw mode, but it switches back to cooked mode while displaying output. It's a little bit more flexible that way, although it takes more work upfront.
You’re right, that’s more flexible. I was too lazy to implement editing but would be good for a bigger project. I especially miss my arrow keys:)
@@billwake The lack of arrow key support is what eventually made me switch over. Now, after a couple hours of refinement, I can save entire *key presses*! Truly a revolution in REPL-ing productivity.
I have a few question about Swiftlint. 1. At one point you captured an image but did display it, therefore you didn’t need accessibility text. Doesn’t swiftlint have a mechanism to turn off a rule for just one line in code? 2. I applaud your decision to not turn off the accessibility text lint check entirely - even though it’s hard to imagine anyone running your app who needs the text. But can you set a parameter to turn off that test completely? And maybe turn it back on later. 3. Did you show off the examples of good/bad examples for the rules in swiftlint documentation? I recall seeing it once or twice and it looked pretty good.
As I read the documentation, it sounds like this should work for a single line: // swiftlint:disable:this force_cast. I don’t know if you can turn it off for a test but that sounds more dynamic than what I see. And I don’t remember good/bad examples (but that may be my memory:)
Well done Bill! please continue your work! very interesting!
😔 *promosm*
I think you should put the FOR body into a sub program and call it with GOSUB inside of the FOR semantics and RETURN from the end of the sub program right into the boundary checks of the FOR loop again. This should give a constant length FOR semantic block and a variable length FOR body sub program...
Thanks - interesting way to leverage the existing semantics and avoid having to maintain a lot of state!
Not yet but I’ll post back here when it is.
Hi Bill i like some concepts of your programming and i like you work on BASIC interpreter In general BASIC or BASIC-like languages are underrated but are easy and nice for hobby and other type of programmers : my work you may see on: ua-cam.com/video/2_m-pmXFjT4/v-deo.html
P𝐫O𝕞O𝓢m
Thank you for this free tutorial. Elm is a growing language, more people are going to start using it
ylys9 vur.fyi
Keep up the good work!! All the best and good luck with growing your channel. Did you ever look into using promosm?! You should use it, it will help you get the views that you deserve.