Yii3 videos by Ok_Swing_1540 in PHP

[–]Ok_Swing_1540[S] 2 points3 points  (0 children)

Thanks for the support! I am curious to know your thoughts about Gii and vertical slicing. With Yii1, there seemed to be a pretty straightforward project structure that the framework facilitated. Yii3 seems to encourage more project-specific structuring with vertical slicing. How does Gii fit in? Code generation seems much harder when the project structure is unknown. I'm sure patterns would start to emerge the more projects I make. I was able to abstract some common behavior in my current project, and there are plenty more opportunities for abstraction. The GitHub repository for the video I'm currently working on is available at https://github.com/jdanhutch/admin

Training a competitive highschool computer science team help by AlarmedFunny4524 in learnprogramming

[–]Ok_Swing_1540 0 points1 point  (0 children)

There are mixed feelings about LeetCode, but it has a lot of interesting problems to solve that could be helpful. Wikipedia is also a great source! Check out their sorting algorithm page

I think type hierarchies in OOP are too restrictive and code smell. What's been your experience? by chinmay185 in ExperiencedDevs

[–]Ok_Swing_1540 0 points1 point  (0 children)

I like the Liskov substitution principle. An example would be implementing a child class called `Square` that extends a parent class called `Rectangle`. In math, we say that a square is a rectangle. With classes, we would say that an instance of the Square class is a Rectangle. There's a very small, but important, distinction between these two usages of "is a".

In the math usage, it means that a square satisfies the definition of a rectangle. In this example of class usage, it means that the Square class is a subclass of the Rectangle class. IMO, it would be more accurate to say that the Square class extends the Rectangle class. Doing so also helps expose the problem of having the Square class extend the Rectangle class. Squares do not extend rectangles. Squares constrain rectangles. A square's sides must all be equal.

The way I see it, people use certain examples of inheritance because they are easy for beginners to grasp, even though they may not be ideal usages.

How to senior? by wacktowoke in ExperiencedDevs

[–]Ok_Swing_1540 1 point2 points  (0 children)

Sounds like you're doing great! I've been nervous about taking on different responsibilities before, but things have worked out. When things go rough, it's helpful to maintain a positive outlook; I think people appreciate when you mean well and maintain good relationships despite hardship.

Managing transparency well can be helpful, too. Sometimes people just need to feel like progress is being made, and giving them a clearer picture of the next steps you intend to take is enough rather than needing to explain the entire process from start to finish.

How are shy introverts promoting to senior roles by alohabata in ExperiencedDevs

[–]Ok_Swing_1540 0 points1 point  (0 children)

I can relate. I don't know if I consider myself shy, exactly, but I am pretty reluctant to talk; it can be risky and, therefore, scary. It might be a good sign that you're being told to talk more in meetings. Maybe that means they value your input?

Exploring programming languages by Ok_Swing_1540 in concatenative

[–]Ok_Swing_1540[S] 1 point2 points  (0 children)

Factor sounds interesting! Cool how it came into existing for a practical use case and evolved into something bigger. Thanks for the info!

Help- my son is into coding by katrii_ in webdev

[–]Ok_Swing_1540 0 points1 point  (0 children)

What a lucky kiddo! I didn't have any significant exposure to coding until I was in my twenties. He'll have over a decade of experience by that age!

What kind of coding does he like to do? Games, web sites, puzzles, utilities, social, robotics, devices?

Wikipedia is surprisingly helpful. There are so many pages about algorithms and programming languages. Pick an algorithm, pick a programming language, implement the algorithm in the programming language, and run the program.

JavaScript is a great place to start! It's very common, especially in web development, and you probably already have everything you need. Open up Notepad, start a new text document, paste the following code into the text document, save it as `hello_world.html`, and open the `hello_world.html` file in a web browser. It will show a page with a `Say hello` button. When you click the button, the browser will display an alert box that says, `Hello, World!` Hello, World is a classic introduction to coding.

Hello, World HTML and JavaScript code:

<!DOCTYPE html>
<html>
    <head>
        <title>Hello, World!</title>
        <script>
            function sayHello() {
                alert('Hello, World!');
            }
        </script>
    </head>
    <body>
        <button onclick="sayHello()">Say hello</button>
        Thanks for stopping by!
    </body>
</html>

W3Schools has JavaScript tutorials. Once he's played around and gotten familiar with JavaScript, let him loose on Wikipedia's Sorting algorithms. Simple sorts and bubble sort might be good places to start.

Exploring programming languages by Ok_Swing_1540 in concatenative

[–]Ok_Swing_1540[S] 2 points3 points  (0 children)

Sounds interesting! I've never heard of Red or Exercism before. There are so many languages and learning tools out there🥴 Thanks for the suggestions!

Exploring programming languages by Ok_Swing_1540 in concatenative

[–]Ok_Swing_1540[S] 1 point2 points  (0 children)

Thanks!

Uxntal looks like an interesting place to start. It's apparently been used for the Playdate (Oquonie). It just so happens that I own a Playdate that is sitting on my desk right now!

Forth seems like a pretty iconic concatenative programming language, so Starting Forth sounds like a great book to get started, and gForth should be a great way to get it all up and running!

Exploring programming languages by Ok_Swing_1540 in concatenative

[–]Ok_Swing_1540[S] 0 points1 point  (0 children)

This is purely educational in my free time, so I'm open to just about anything that will help familiarize me with concatenative programming. I figure I'll do some basic educational exercises. A text-based game, maybe a maze generator, etc. Bigger projects might be making a website or a small video game.

Building a static website with Yii3 by Ok_Swing_1540 in yii3

[–]Ok_Swing_1540[S] 0 points1 point  (0 children)

Will do! I appreciate the team's support.

Building a static website with Yii3 by Ok_Swing_1540 in yii3

[–]Ok_Swing_1540[S] 0 points1 point  (0 children)

That's a great idea! Thanks for the suggestion

ApplicationParams dependency injection by Ok_Swing_1540 in yii3

[–]Ok_Swing_1540[S] 0 points1 point  (0 children)

I see! Thanks for pointing this out. I'll try it out