coding is just an endless cycle of "i know nothing. i give up" and "i know everything. i am god"
You're interviewing as a software engineer and you sit down to begin a coding exercise via remote video chat. Your interviewer joins a minute late. You exchange light pleasantries, then intros. They ask you a few questions relevant to your experience and you answer them satisfactorily.
The interviewer says, "Right, lets move on to the coding exercise," and directs you to a collaborative coding website. You select your language of choice and they begin to describe your problem.
"You have an array of souls recently liberated from their mortal shell, represented by this array of signed floats called "theDead". You must design a function that determines which souls go to heaven and which souls go to hell,"
"Heaven and hell are empty. The cumulative value of all the souls in heaven and hell must both be nonzero, and exactly equal to each other. You may leave any number of souls in purgatory,"
"Your function must return a bool indicating whether the balance of heaven and hell can be met given the array of souls. The count of souls will be 0 < n < 1,000,000. Do you have any questions before you begin?"
misc coding stamps graphics
i fucking hate writing java dude what do you mean list.stream().forEach(list2::add)??!
syntax written by clowns
The programming/math thing of not getting a thing for hours or even days, then getting it and going "oh I'm dumb "
And immediately after having to explain to your friends you don't actually believe you're dumb and it's not self loathing it's just part of the process
The 100% Good Twine SugarCube Guide is a coding guide for the SugarCube format of Twine. It is meant as an alternative to the SugarCube documentation, with further explanations, interactive examples, and organised by difficulty. The goal of this guide is to make the learning curve for new SugarCube user less steep, and provide a comprehensive and wide look over the format.
The Guide is compartmentalised in (currently) four categories:
THE BASICS or the absolute basics to start with SugarCube. No need for extra knowledge. Just the base needed to make something.
THE BASICS + adding interactivity, and creating a fully rounded IF game May require a bit of CSS knowledge (formatting rules)
INTERMEDIATE MODE adding more customisation and complex code Will probably require some CSS knowledge, and maybe some JavaScript
ADVANCE USE the most complex macros and APIs Will surely require some JavaScript/jQuery knowledge
Note: The Advanced Use includes all the APIs, macros, and methods not covered by the previous categories. This includes code requiring very advance knowledge of JavaScript/jQuery to be used properly.
Each category explains many aspects of the format, tailored to a specific level of the user. More simpler explanations and examples are available in earlier chapters, compared to the later ones.
If something is unclear, you found a mistake, you would like more examples in the guide, or would like a feature covered, let me know!
The Guide currently covers all macros (as of SugarCube v.2.37.3), all functions and methods, and APIs. It touches upon the use of HTML, CSS, JavaScript and jQuery, when relevant. It also discusses aspects of accessibility.
The Guides also provides a list of further resources, for the different coding languages.
The Guide is available in a downloadable form for offline view:
HTML file that can be opened in Twine
.tw file that can be opened in Twine
source code, separating the chapters, .js and .css files
GITHUB REPO | RAISE AN ISSUE | TWINE RESOURCES TWEEGO | TEMPLATES | CSCRIPT 2 SG GUIDE
Twine® is an “an open-source tool for telling interactive, non-linear stories” originally created by Chris Klimas maintained in several different repositories (Twinery.org). Twine is also a registered trademark of the Interactive Fiction Technology Foundation.
SugarCube is a free (gratis and libre) coding format for Twine/Twee created and maintained by TME.
As of this release (v2.0.0), it is up to date with the version 2.37.3. If you are looking for the guide covering SugarCube 2.36.1, you can find it on my GitHub.
Note: the Guide is now complete. There won't be further substantial updates.
This is as unhinged as this laptop soon will be
So python is apparently unable to handle if-statement with more than 2996 elif’s, which is fair, however, it’s really limiting my implentation of an is_even function
Any ideas on how I can work around this?