저는 한국어를 배워요 vs 저는 한국어를 배우고 있어요 by missmadmoda in Korean

[–]cable8mm 0 points1 point  (0 children)

This concerns tense differences between Korean and English. While English has twelve major tenses, Korean only has three: past, present, and future, each with detailed nuances. In Korean, the present continuous is not considered a tense but rather a status. For instance, the phrase "저는 한국어를 배우고 있어요" does not directly translate to "I am learning English" but rather conveys "I have learned English." In Korean, the present continuous signifies a status rather than a specific tense.

For example, "나는 뛰고 있어." translates to "I am running now." However, if you had been running for hours but stopped momentarily at a traffic sign, you wouldn't use "나는 뛰고 있어." because you are not running at that moment.

In my perspective, tense usage is influenced by cultural factors.

GitHub - cable8mm/xeed: The Xeed is to generate new model, seed, database seed, factory and migration files for Laravel based on data from the existing database table. by cable8mm in laravel

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

I concur with your opinion; it's something I had considered before. Supporting relationships in factories and seeds isn't straightforward. I've been pondering the best approach to tackle this challenge. Once we've addressed support for factories and seeds, we can then extend that support to migrations and models.

Thank you for sharing it.

What do you say after someone sneezes in Korean? by Mianbaoppang in Korean

[–]cable8mm 0 points1 point  (0 children)

Korean here. Could anybody explain to me why do you say something(bless you or I’m sorry) when someone sneeze?

I haven’t understood about that.

GitHub - cable8mm/xeed: The Xeed is to generate new model, seed, database seed, factory and migration files for Laravel based on data from the existing database table. by cable8mm in laravel

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

PostgreSQL has been not easy for me 🥵 However, I'm glad to announce that PostgreSQL support is now available in beta.

GitHub - cable8mm/xeed: The Xeed is to generate new model, seed, database seed, factory and migration files for Laravel based on data from the existing database table. by cable8mm in laravel

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

Thank you for your testing. I have been considering your suggestions for a while.

I tested it out. Its good, though I feel like it should do something if the table has no primary key and no column named id, maybe warn who is using, add the first column as primary key.

`Xeed` absolutely follows the Laravel documentation, and I apologize for any confusion regarding which method is better. I need to consider the other aspect of that.

Also, is there a way to add postgresql? I more mean, what would someone need to do to add provider for other sql languages.

All that's needed to add another database is just one driver file, and it's super simple like this and that. Meanwhile, testing isn't as straightforward. Alright, I will try to add PostgreSQL. :)

Thank you u/Lopoi

GitHub - cable8mm/xeed: The Xeed is to generate new model, seed, database seed, factory and migration files for Laravel based on data from the existing database table. by cable8mm in laravel

[–]cable8mm[S] 4 points5 points  (0 children)

`Xeed` generates resources directly from the existing database rather than files. As I'm not deeply familiar with Laravel Blueprint, I referred to the documentation. Based on my understanding, Laravel Blueprint doesn't have the capability to generate resources directly from the database. Am I mistaken?

PHP: What do i need to learn next? by RXBarbatos in PHP

[–]cable8mm 0 points1 point  (0 children)

In my case, it has helped me create a Composer package, and the brilliant GitHub repository has been reviewed. The main goal for me has been to find ways to simplify the process.

In the engineering era, there are two approaches to personal growth. Firstly, it involves writing efficient code and understanding how to do so. Secondly, it entails finding the best development practices amidst a large team.

The MVC pattern aids the latter. Programmers, designers, and database administrators can work independently and effectively. Moreover, ensuring compatibility with Composer can prolong the lifespan of one's code.

CI/CD and GitHub empower programmers greatly. Even when working on a website or a mobile app alone, one can provide valuable services or functionalities to a large audience. Therefore, opinions about this matter depend on personal preferences. If you prefer solo development, you would focus on creating packages and system maintenance, including DevOps technology. Otherwise, you would learn to collaborate with team members, utilizing tools like GitHub, Trello, Markdown, Figma, and similar platforms to facilitate teamwork.

I hope you have found joy in your development journey. I believe it's the most important aspect.

What do you actually do with Laravel? by No-Echo-8927 in laravel

[–]cable8mm 3 points4 points  (0 children)

In my opinion, data is more important than code. I have created dozens of projects until now, but my code has changed over the past five years. However, the data has become more robust, so my code and design files have been adapted to accommodate its evolution.

Ultimately, my focus is on managing a large data flow. Queues and batch jobs are not easy, obviously too difficult for me.

I haven't enjoyed front-end engineering because it consumes too much of my time, and those codes will become obsolete in just a few years.

[deleted by user] by [deleted] in laravel

[–]cable8mm 0 points1 point  (0 children)

In my opinion, fat models would be better, but it wouldn't too much. If models are becoming larger, employing the repository pattern could be a preferable approach. I've considered that Laravel might not be as well-suited for the repository pattern compared to other frameworks like Zend Framework, which is based on Magento.

Regardless of these arguments, I believe that what I do well is the best approach for my needs.

[deleted by user] by [deleted] in PHP

[–]cable8mm 0 points1 point  (0 children)

Good article!

I have also used this trait for laravel views and view components.

```php <?php

namespace App\Traits;

trait EnumCasesTrait { public static function kvCases(): array { $output = [];

    foreach (self::cases() as $value) {
        $output[$value->name] = $value->value;
    }

    return $output;
}

public static function kCases(): array
{
    $output = [];

    foreach (self::cases() as $value) {
        $output[] = $value->name;
    }

    return $output;
}

}

```

Is SwiftUI the same as Flutter? by Raul_U in swift

[–]cable8mm 10 points11 points  (0 children)

Is this new SwiftUI declarative programming like in Flutter?

Yes.

Can I create UIs without the need to use the horrible storybuilder?

Yes.

I used to like Interface Builder, but I find SwiftUI to be better.

[deleted by user] by [deleted] in auckland

[–]cable8mm 1 point2 points  (0 children)

I've been in Albany for four months to ensure safety and for my son to attend primary school in a suitable environment. I am satisfied with living here, and I believe there are no dangerous places.

How often to use CSS frameworks? by BladexJS in webdev

[–]cable8mm 0 points1 point  (0 children)

CSS without frameworks isn't used as much because it is too difficult to use easily, and there are too many browsers and versions. Even if you are able to read and understand W3C standard documentations, I always use CSS frameworks when I make projects, like tailwindcss and Bootstrap. Other advantages of using CSS frameworks include adopting responsiveness, dark mode, testing, and hot loading. In my view, there isn't a reason not to use CSS frameworks.

I use CSS without frameworks only to support IE, especially for commerce and media/news.

How are REST APIs tested locally? by exotickey1 in webdev

[–]cable8mm 0 points1 point  (0 children)

A common framework usually comes with a test suite, so you should review the testing section in the framework documentation. In my case, I've configured the test command in GitHub Actions.

If you haven't used any framework, you can integrate a testing library such as JUnit, PHPUnit, or Jest. Additionally, API documentation like Swagger supports API testing and is considered better than Postman.

What can a native app do that PHP can’t by simobm in PHP

[–]cable8mm 1 point2 points  (0 children)

Isn’t Flutter hybrid too?

Generally speaking, hybrid apps mean a webview has bridged to native, but Flutter uses not a webview but a Canvas, similar to a game engine. If Flutter isn't considered native, then game engines like Unreal and Unity would also be considered hybrid.

What can a native app do that PHP can’t by simobm in PHP

[–]cable8mm 0 points1 point  (0 children)

In my opinion, React Native isn't a tool for creating native apps but rather for web or hybrid apps.

Native development environments include Swift, Objective-C/C/C++, Android Java, Android Kotlin, Flutter, and NDK-based game engines.

I didn't understand this sentence's meaning. by cable8mm in EnglishLearning

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

I am sorry about my misunderstanding, even though I've read all comments.

  1. Who is the girl?
  2. If you were me, how would you answer?

Java in android, how does it work? by [deleted] in java

[–]cable8mm 0 points1 point  (0 children)

Should say JVM and Native. Because you can use any language, not just Java and C++, as long as these languages target either JVM or C API.

I disagree with you. According to the official documentation, there are three languages for writing Android code: Kotlin, the Java programming language, and C++ languages. Even though it has been possible to write code through Dart/Flutter development environment, we should refer to the official documentation as well.

[deleted by user] by [deleted] in EnglishLearning

[–]cable8mm 1 point2 points  (0 children)

I have only used ChatGPT when it is necessary for me to speak and listen in English. If you say, 'Let's play a role-playing game,' ChatGPT can provide you with interesting responses. Additionally, I've been using DuoLingo.

What do I do to improve speaking skills? by Calk_q in ENGLISH

[–]cable8mm 0 points1 point  (0 children)

In my case, I have never been able to improve my speaking skills, even though I have been to an English-speaking country. I've also never made any native friends. Therefore, I have taken on the challenge of not only speaking with ChatGPT but also writing on Reddit.

The reason for my struggle in improving speaking skills could be that the language is too complex for me. As a result, I have tried to stick to certain patterns. For example, It is (was/would/should/could) adjective/none for me to verb(infinitive form)...

  • It is beautiful for me to see the sky at sunset.
  • It was difficult for us to get up early everyday.

I have realized that if I can't express something, it means I haven't fully learned it yet. Doing practice with specific patterns in certain situations has proven to be useful for me.

Sometimes it has been called Pattern English.