Add multilingual Agila learning examples and Git practice guide
This commit is contained in:
commit
85f487afb0
79 files changed
+813
No files matched your search
@@ -0,0 +1,9 @@
|
||||
# A lifecycle lab with expected failures
|
||||
|
||||
Build a small application and a set of isolated lifecycle experiments. Explain which errors the SDK detects and what your application does next.
|
||||
|
||||
- Show a normal create/start/request/stop sequence.
|
||||
- Test empty id and empty name independently.
|
||||
- Test request-before-start and double-start independently.
|
||||
- Explain the difference between an error handler that returns and one that continues.
|
||||
- Record source, output, and the limitations of sandbox capability checks for review.
|
||||
@@ -0,0 +1,15 @@
|
||||
import agila
|
||||
|
||||
fn main() {
|
||||
mut app := agila.new_app('dev.student.study', 'Study Buddy') or {
|
||||
eprintln(err.msg())
|
||||
return
|
||||
}
|
||||
app.start() or {
|
||||
eprintln(err.msg())
|
||||
return
|
||||
}
|
||||
app.request(.ui) or { eprintln(err.msg()) }
|
||||
agila.log('Ready to study')
|
||||
app.stop()
|
||||
}
|
||||
Reference in new issue
Block a user