Tumgik
#kingsoriginal
king-fae 4 months
Text
1/100 days of code.
12.22.23
i have started of this challenge by learning C++ through MIT's open course Introduction to C++ found here, where i studied the first lecture and read through the second. this course is designed to be completed in a 4 week term, but depending on my availability, it may stretch as i take breaks from it specifically, and then circle back on coursework to retain information learned. we shall see
#include
using namespace std;
.
int main(){
.....cout<<"Hello, world!\n";
.....return 0;
}
Tumblr media
51 notes View notes
tallestcomedian 5 years
Photo
Tumblr media
Reposted from @frankdonga_ - Question of the day: wich dance was I busting in the picture?. #LaughAndDance #frankdonga hint: see the waist movement 馃憖 Styled by @7thstreetstyling shoes:@kingsoriginals photography : @illuszionzphotostudio - #regrann https://www.instagram.com/p/Bsbkvhnht6b/?utm_source=ig_tumblr_share&igshid=14mpzc2sdztd5
0 notes
king-fae 4 months
Text
Introduction Post
Updated 12.22.23
name: Oberon
pronouns: they/he
occupation: CS student, gamedev hobbiest
misc about: 20 y.o, neurodivergent, transmasc, midwesterner, witch
what this blog is for: documenting my gamedev journey, as a form of both self discipline and fun. if i post about it: then it exists. otherwise: it lives in my head rent free. also sharing and saving queer videogame projects
what im passionate about: stories revolving around faeries, pirates, witchcraft, and otherwise fantastical and/or fictionalized elements. amplifying and creating stories by and about queer people.
programming details: primarily studying and using C++, Python, and Godot. currently a CS minor, will be a first-year CS major next year. general free-program and open-source enthusiast, and user of Krita, Pixelorama, Blender, Twine, and more to be added and/or discovered.
interests: worldbuilding, traditional art forms, fiber arts, videogames, psychology
tagging system: WIP
#kingsoriginal : posts made by yours truly, to seperate from reblogs
#kingsreblogs : vice versa of above
#kingsdesign : posts about design progress and processes, may post sketches and wips on occasion
#kingscode : posts about coding stuff im learning about or am writing
blog disclaimer:
NO "AI". no exceptions: no training, "inspiration", etc. all art of mine, posted or otherwise, is my own creation, and i will always credit my inspiration sources directly. anyone found to be disrespecting this boundary will be blocked and reported.
9 notes View notes
king-fae 4 months
Text
7/100 days of code.
1.11.24
Hello again. After that hiatus due to again life, I am once again jumping ship from a resource as I found this nifty little note in the documentation of Exercism's C++ course:
If you are brand new to the C++ language, you should spend time learning the basics of the language first.
UGH. I just want a simple learning course that's free and avail- Oh. learncpp.com exists. And Exercism recommends it right under that above note. Isn't that just simple as shit. Thus, here we are, starting over for (hopefully) the last time. I won't say I'm not frustrated, because I am, but at least I've found what looks like a good final destination. While I do have a tendency to over-complicate, it's hard not to when I'm interacting with intermediate resources with hardly a beginners knowledge. My mistake.
This is not all a downer, though, as 1.0 of this resource goes through very basics of C++ including!! How to set up an IDE using Visual Studio as its first example, so now I know how to use it! Actually helpful basics! Woo! Unfortunately for me however, going through 1.0-1.1 took an hour, so I will just have to return tomorrow to get to the good stuff :) [putting a gun to my adhd head]
#include
int main()
{
.....std::cout << "Hello, world!";
.....return 0;
}
14 notes View notes
king-fae 3 months
Text
10/100 days of code.
1.16.24
today school started up again, and hot diggitiy damn is it going to be a rough semester so c++ may take a stronger backburner than i was anticipating, but i can still do this challenge by studying Java with my Computer Science I course so! for it i downloaded the eclipse IDE (which i already had the c++ version on my laptop, whoopie me), and thats all as i dont have any assignments until next week. i still wanted to hit a 2 minute goal post for c++, though, so i studied Sololearn's short loop section, which went over while and do-while loops, and different ways to have increments in c++ to avoid infinite loops
int num = 5;
.
while(num > 0) {
.....cout << num << endl;
.....num--;
}
6 notes View notes
king-fae 4 months
Text
8/100 days of code.
1.12.24
wooo im building a proper streak again! lets goooooo, it might get broken by this weekend cause i work, but i hope not. also i just realized i talked all formal and shit last post, and im pretty sure it was because i popped by work in the morning and then was volunteering for a lot of my day lol so i didnt even notice. /shrug
anywho, thank you to @ryuji-terix for suggesting Sololearn, as I will now be using some of my 1 hr goal time to do that alongside learncpp.com! im doing the 20min/30day set up, so hopefully ill be able to keep it consistent, and having a website track that will be good encouragement B)
as im working through it, im seeing different practices such as the difference between 'endl' and '\n', where Sololearn has just taught me in a lesson to use the former and others have taught the latter, which is neat! it shows the flexibility of coding languages, which is a cool aspect of programming. no two peoples code will be exactly the same, even with implementing best practices, because their experiences and learning history will lend them to do different things.
today i finished the basic concepts section of Sololearn, and on learncpp.com i went through the first two sections of the basics chapter, leaving off on the third as my attention started waning. the difference in depth between what is considered basics is definitely steep, but both have their values
// this is a non functioning piece of code
// if you compiled this shit the compiler would go oops!
// nothing here!
// but! still considered code thus neheheheh
// f i l l e r
// fr tho im becoming a master (/hj) at this "basics of c++" shit
// its wild how many things ive started cause good lord
// learncpp.com and Sololearn save me from this timeloop
5 notes View notes
king-fae 4 months
Text
4.5 & 5/100 days of code.
12.27.23
yesterday i started a new job, and in adjusting to the new sleep schedule required, i was unable to focus on c++, so i let it slide by as i knew id be able to pick it up today- shit happens
today i continued going through W3schools's C++ tutorial, finishing it and the function sections. unlike the MIT course, this course doesnt have proper assignments throughout, so i am concerned over retention. it has exercises which you can do outside of where theyre built in, all in a long list, but those are short and dont train for real usage. tomorrow when i go through the classes sections and finish up exercises, i will see about coding small projects to practice, and seek out another educational resource to continue learning c++.
int sum(int x) {
.....if (x > 0) {
..........return x + sum(x - 1);
.....} else {
..........return 0;
.....}
}
int main() {
.....int result = sum(10);
.....cout << result;
.....return 0;
}
6 notes View notes
king-fae 3 months
Text
12/100 days of code.
1.20.24
back to c++, yippee!! i studied for a while yesterday on java, and have come down with something due to the stress of school starting + my mom picking something up from a business trip, so im going easy today and doing the for loop section from Sololearn. one notable thing learned was the ability to use continue and break as learned about from switch cases, which is pretty cool. i also did the section quiz, which was a culmination of the different conditional and loop sections, which i did pretty alright on! it was nice to see im retaining things from Sololearn well, as im still very early on in learning from learncpp.com and havent gotten to these sections yet
for( int i = 1; i <= 5; i++) {
.....cout << i << endl;
}
4 notes View notes
king-fae 3 months
Text
9/100 days of code.
1.15.24
fingers crossed this will be the start of a good streak. work broke it, but ive been reading atomic habits by james clear, so im going to start implementing those practices into c++!
a part of this process involves starting habits small, so im going to drop the 1 hr requirement of studying, for sake of my attention span and tracking that i study at all instead of not marking anything if i dont hit that goal point (like i did yesterday), so today i studied 1.3, variables and objects, and learned about the basics of these concepts including how theyre called without assignments of details.
int a, double b; //wrong (compiler error)
int a; double b; //correct (but not recommended)
.
//correct and recommended
int a;
double b;
5 notes View notes
king-fae 3 months
Text
11/100 days of code.
1.19.24
today im starting on my java learning journey, with the book Introduction to Java: Programming and Data Structures 12th Edition by Y. Daniel Liang. before jumping in, i cant help but be very excited to learn java for the explicit purpose of coding minecraft mods, as that sounds like a super fun project and usage of this language for me :P ultimately game dev is why im learning c++, so having a game dev equivalent usage for java will help me retain it in the long term, as i already have interest in that application. i intend on eventually learning pygame to retain and stretch my python knowledge for the same purpose, though i dont have something specific like minecraft modding to work towards, so we'll see.
in the introductory section, im also learning that android phones are developed in Java, making it promising to be able to make android compatible (which is the phone i use) mobile software without much hassle, which is super cool. i also learned that java, like c++, is a compiled language, uses classes (namespaces in c++), has the same commenting system, same use of ; to end statements, and more. while there are a vast amount of differences, finding these similarities is both cool and helpful for retention!
public class Welcome {
......public static void main(String[] args) {
..........System.out.println("Welcome to Java!");
.....}
}
3 notes View notes
king-fae 4 months
Text
6/100 days of code.
1.3.24
happy new year! im late, but it still applies
this is not a personal blog, so ill keep this brief: life happened, and c++ took a backburner. im not abandoning this project! in searching for inspiration to do this challenge before i started, i noticed that not many got very far- so ive decided in this time between the last post and now that i need to go at my own, albeit weird, pace. aka: do days as i can, and not do the catch-up thing i was doing. adhd can do that to ya. once im back on a schedule with school ill be able to incorporate c++ into my routine, whereas aside from my new job im flying solo which makes it historically difficult for me to get stuff done xP
where i left off a week ago, doing W3schools's C++ tutorial, i finished the function section, and today i began the classes section, which peaking at the section headers, made me excited. object-oriented programming is not something i learned in my intro to cs class with Python, and i know C++ does it well, so im pumped to be able to start programming with this.
unfortunately, though, the problem of it being a fairly informal educational resource does rear its head in this section, as im reading and studying this stuff, but can feel it not retaining. this website is better used as a reference resource, rather than a study one, but it is still worth studying imo as it breaks down concepts very simply. thus: im now beginning the C++ beginner course from exercism (an open source resource!!!!), which has a built in compiler, course material, and ability to get support on their discord. cool stuff! it took a minute for me to get acquainted with how it works, as i assumed the instructions were solely a repeat of the lesson, but there were. actual. instructions. beneath that lol so once i got that figured out i was able to properly solve the first exercise without issue.
the lesson material moves fast in its examples, but that is not reflected in the exercises, which was a relief as that impacted my first run, over-complicated tinkering i did before i realized there were actual values given i was supposed to input. theyre complicated but not too difficult to parse, which is a good show of what ill be learning to create as i progress.
final note though, as this is getting long: having W3schools as a resource while doing exercises material is very good, as while the first exercise i did went easily, the second one is jumping into if statements before ive had the chance to learn them from the website, so being able to refer to what they operate like was very helpful. this below is what saved me from error hell, as i had forgotten how to format them already:
im a goof and overcomplicate shit, so was not supposed to use if statements. oh well. this still helped to make it accurate lol
int myAge = 25;
int votingAge = 18;
.
if (myAge >= votingAge) {
.....cout << "Old enough to vote!";
} else {
.....cout << "Not old enough to vote.";
}
2 notes View notes
king-fae 4 months
Text
4/100 days of code.
12.25.23
merry christmas to all who celebrate!
from the get go returning to the problem i was stuck on yesterday has made me reconsider this course, as it is veering too close to a weeder class for my preferences. considering it is a four week accelerated class, im not surprised, but without supplemental materials im strongly considering looking elsewhere for my sanity's sake lol.
additional problem i have found is this error in my IDE:
[Error] range-based 'for' loops are not allowed in C++98 mode
which baffles me, as i dont know how to fix this as online compilers do not give me the same issue. i tried to redownload Dev C++, because there are multiple versions due to it being open source, and the second download gave me a different error i cant understand. /shrug, this was disappointing as i recommended it in my last post, but it is what it is. i attempted CodeBlocks, but it didnt download a compiler the first or second time i tried installing it, even with clicking the right download link, and Eclipse failed me, so to Visual Studios i go.
while waiting for it to update, i decided to seek out a new learning source, and found w3schools which ive used as a resource before. im leaving off today on an easy section, so we shall see how well it is able to teach more complex ideas in the coming days
#include
using namespace std;
main(){
.....int x, y;
.....int sum;
.
.....cout << "Type a number: ";
.....cin >> x;
.....cout << "Type another number: ";
.....cin >> y;
.....sum = x + y;
.....cout << "Sum is: " << sum;
.
.....return 0;
}
1 note View note
king-fae 4 months
Text
3/100 days of code.
12.24.23
as said in the previous post, i missed yesterday, so this is my second post for today! i took a break in between chapter 2 and additional materials in the assignments section of MIT's open C++ course (going to keep plugging it, while im still early on in this series), as i got some of the ways in earlier but was getting confused. so with a fresh mind, i was able to work through problems 2.1-3.1q5, stopping at 3.2 as i spent a significant time puzzling through it, and will continue that problem tomorrow. i noticed a significant curve with this problem, as i couldnt figure out how to go about it without lists, which hadnt been taught yet. having prior experience with Python, i figured lists wouldnt be too difficult, so i attempted them for this problem by using articles from Programiz- but wasnt able to make a working piece of code yet.
separate from the course, i needed to download a new IDE to begin coding assignments, as i personally found visual studio 22 to have too big of a learning curve for the moment, so i began with Programiz's online compiler and then transitioned to a wonderful open source alternative to VS, Dev C++. it is very to the point, unlike VS which is designed for bigger projects and not isolated code, and reminds me of Python's official IDE, IDLE, in its ease of use and convenience. so if you need recommendations for either online or offline IDE/compilers, these are my reccs!
#include
using namespace std;
.
int main(){
.....const chara* words = "Hello, world!";
.
.....int n;
.....cin >> n;
.....int x = 0;
.
.....for(; x < n; x = x + 1)
..........cout << words;
.
.....return 0;
}
1 note View note
king-fae 4 months
Text
2.5/100 days of code.
12.24.23
yesterday i was busy and, as i expected, was unable to work on coding, thus today ill be posting both 2.5 and 3 to catch back up to the 1 hr/day progress. on day 1 i studied chapter one of MIT's open C++ course, and today i took notes on chapter two and began the first few assignments. this chapter focuses on flow of control, and i was drawn to the modes of this not found in Python, such as switch case and do while. Python is generally considered to be an easier language to learn, so finding these intuitive and fairly simple concepts in C++ makes me wonder why they arent ported over
#include
using namespace std;
int main(){
.....int x = 6;
.
.....switch(x) {
..........case 1:
................cout << "x is 1\n";
................break;
...........case 2:
................cout << "x is 2 or 3\n";
................break;
............default:
.................cout << "x is not 1, 2, or 3\n";
.....}
.
return 0;
}
1 note View note