I need to write about some concepts I’m trying to understand in computer science so hope you find my teachings valuable anon. Lets start with Object Oriented Programming.
Using OOP, we could create individual Bird objects, each with their own attributes like age, name, and species. We can encapsulate the data and behaviors of a bird into a Bird class:
public class Bird {
private int age;
private String name;
private String species;
public Bird(int age, String name, String species) {
this.age = age;
this.name = name;
this.species = species;
}
public void makeSound() {
if (species.equals("duck")) {
System.out.println("Quack quack!");
} else if (species.equals("hawk")) {
System.out.println("Screech!");
}
}
// getters and setters
}
Now we can create individual Bird objects, like Duck duck = new Duck(2, "Donald", "duck");
and Hawk hawk = new Hawk(4, "Tony", "hawk");
.
Each bird encapsulates its own data like age and species. We can call duck.makeSound()
and hawk.makeSound()
to have each bird generate its own sound based on its species. This demonstrates using OOP and encapsulation to manage bird data and behavior.
On top of trying to learn the Java langauge I also spent time today learning about Python and stayed up late creating a Youtube video on how to create a website with Python and Streamlit. I love it. It’s fun to make videos about software engineering. It also makes me feel better about getting a film major in undergrad.
When I was at Tufts I’d always say you dim sum you lose sum when ordering General Tso’s chicken from my favorite restaurant, Dim Sum cafe. It’s an incredible time to be alive and it’s never been a better time to learn to code.
Ran this twitter poll today. Still early but I think it shows that people I follow and who follow me support similar ideas. At least in regards to politics.
Being anti-establishment appears to be the most based position in politics since the taxpayers have continually been screwed by the two party system. That said, it isn’t great social media trends towards echo chambers.
I’m concerned by the hyper-partisanship in politics today that seems to put party loyalty above addressing real issues. For example, the national debt has skyrocketed under both Republican and Democratic leadership over the past decades. Hard-working taxpayers are the ones left paying the bill while wealthy special interests dominate policy conversations.
At the same time, I wish our political discourse on social media encouraged more nuanced thinking. Too often complex issues get boiled down to simplistic memes designed to “own” the other side. Not to say I don’t love good memes. Just pointing out that memes can also leverage respectful debate and important nuance.
I appreciate all long-form podcasts that feature real discussions. While not perfect, these kinds of conversations help listeners better understand the trade-offs and gray areas inherent in difficult issues across the board. If you have a desire to learn it’s never been a better time to be alive.
8/2/23
Conor Jay Chepenik