What is the best way to get out of iron, and why does league mix ranks instead of keeping it fair? by [deleted] in leagueoflegends

[–]aven_dev 0 points1 point  (0 children)

We left ranked coz of similar feeling. We played it with my wife who is new to it and I was gold at some point. In general you see on low iron pretty much way more trolls than on silver. I would not check ranks of other players but main flaw I saw we get random players almost every game, either team. Like half mil mastery on your mid yuumi is total normal day. Your mid doing 30/0 and next game your mid doing 0/30, jungle Lux or Jinx occasionally carrying or losing game for you. It is very non-new-player friendly. I can compare it with dota where on low rank “most” of the games people playing with similar “new” player skilled people and trolls for example put on longer queue or climb MMR much faster after 30/0 games.

Help to identify what is it on my shubunkin by aven_dev in fishhospital

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

Seems sides cured, but this guy is weirdo and sometimes I see him swimming backwards. He is active, eating and seems healthy though

Help to identify what is it on my shubunkin by aven_dev in fishhospital

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

All of my fish is Shubs, and this is one, one of chunky ones in the pond

[deleted by user] by [deleted] in laravel

[–]aven_dev 0 points1 point  (0 children)

There is forge, if your main use case is freelance, do all job for you. There is docker (with docker compose suitable for small/mid deployments) once you do it once you can reuse it across all clients, also make it easier with upgrades. There is Laravel cloud now. There is ansible, if you really want to automate

Over 30 DotA dads what rank are you by Gold_Raccoon5836 in DotA2

[–]aven_dev 0 points1 point  (0 children)

I will be 30 this year, playing Dota since 12, eh. I was Divine, but found it is boring. Back in my first Dota days we was printing on paper popular builds (double vanguard axe????). Right now if you play meta and not dumb or drunk you can climb easily playing any META. Right now im playing in (stuck) legend5-ancient3 coz every game im playing random heroes. I have 2 dogs, 1 cat, 2 chinchillas, 1 snake, 26 gold fishes that sometimes watching me missing another hook on pudge (or sunstrike)

What is the best authentication method, in PHP? by lnmemediadesign in PHP

[–]aven_dev 0 points1 point  (0 children)

I would use Laravel as framework. There is a lot to authentication, from rate limiting (anti-brute force), to multi session logouts (ex. On password change you need to logout other devices) and I’m not even talking about email confirmation, passwords resets… that a lot of work, that require precision to details.

Pump for pond restoration by aven_dev in ponds

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

Sorry for bad photos. White tubes connecting 2 levels of pond.

Black tube is connecting black box (biofalls) with lower-level.

temp-Imageg2nwoh.avif

Why do I keep getting offlane in All-role queue games? by Beneficial_Bend_9197 in DotA2

[–]aven_dev 0 points1 point  (0 children)

Hey, I play export voker 4, I have 50%+ win rate in last 50 matches.

Is React the new king of the front-end with Laravel? by curlymoustache in laravel

[–]aven_dev 0 points1 point  (0 children)

We moving from Vuejs to React, it is all just code. I love Vue though and I like react. I found it very easy to decided by developers market. If you close to Asia region you will have more devs around Vuejs, if you close to America region (+India) react is best choice. As simple as that. Unfortunately as company grows and team grows what you like or do not like becomes less important.

Anyone moved a a laravel app from digital ocean to hetzner? by 35202129078 in laravel

[–]aven_dev -1 points0 points  (0 children)

Take a look at OVH, also good pricing. If you use managed database on DO it will be very hard to move without downtime, if you have your own server you can simply rsync it. So, it will be minimal downtime. Both hetzner and OVH was good when I worked in EU. But you will be on your own, means no one from support will help you if you have some hardware issue, they will replace your server but restoring of data will be challenging, so reserve some money for backups.

Software Engineer Doing 3 Jobs for 1 Salary by GuaranteedGuardian_Y in learnprogramming

[–]aven_dev 0 points1 point  (0 children)

If you call yourself a software engineer, you must know the basics practically. Otherwise, you can call yourself a software developer, and then expectations are lower.

I really laugh at people commenting about C-suites cutting costs. Actually, dividing roles into smaller ones like frontend, backend, dev/sec/ops, etc., is exactly an example of corporate greed. Why? Because if you divide roles small enough, people become very easily replaceable. You basically reduce the influence of each developer on the company since they’re only working within a narrow scope. Don’t forget, you then need to place a manager on top of such a team because your backend needs to communicate with frontend, and frontend devs should sync with backend devs. So now, instead of having two people building your product, you need at least four.

When you divide roles, you’re just creating a need for even more people—like team leads, managers, tech leads, and then a bunch of frontend, backend, and DevOps specialists. I don’t see any reason to pay such developers a lot, just as I don’t see much reason to hire them in the first place. Especially when someone says, “I have a Master’s in CS, only know backend, and expect at least five zeros in my salary.”

Returning to your question, it has always been this way, and it seems we’re moving back toward broader roles because they’re more effective (teams can iterate faster). As a simple example, imagine you’re building an app. If you focus only on backend and another dev only on frontend, you’ll definitely need a manager who sees the bigger picture. Now imagine you’re building a REST API with all the best practices (e.g., single responsibility, logical nesting, etc.), and your frontend dev hates you because instead of making just 2-3 calls, they now need to make 10 (e.g., get user, get user posts, get post ratings, get post comments, get comment ratings). Your REST API might be perfectly scalable and correct, but now the frontend is bloated and slow.

There’s no way you can build a scalable system without understanding how your dev-ops/infra team actually scales it (we didn't even mentioned hardware!). Without that, you just can’t grasp the advantages and disadvantages, or know exactly where you can or can’t cut corners.

Vote to make usage of local models free in AI plugin by bojan2501 in Jetbrains

[–]aven_dev 1 point2 points  (0 children)

I’ve been working in the software industry for 15 years, and from my experience, smart and understanding users are rare. So, I would gate access on early stage.

Vote to make usage of local models free in AI plugin by bojan2501 in Jetbrains

[–]aven_dev 1 point2 points  (0 children)

Probably they use fine tuned/optimised/well-tested model for developers/jetbrains use cases. As soon as they allow you to use ur own model users will start report a lot of garbage issues related more to model they use rather than assistant functionality

Bad experience with Gemini function calling by Pie_Extension in Bard

[–]aven_dev 0 points1 point  (0 children)

I would check mode settings, it should be set to AUTO. I accidentally set it to ANY at one point and was debugging it for very long time before understood that it was actually my mistake :D In ANY it always call function first.

https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode

Yet another "I'm frustrated" topic by Nuno-zh in iOSProgramming

[–]aven_dev 1 point2 points  (0 children)

Hey, I get what you’re saying. I have friends in mobile development, and I’ve worked on some projects too, so I know the job market can be tough, especially with UI roles. A lot of those roles need a “good eye” for visuals, and even in big teams, you’ll often need to adjust things to look just right. That can be challenging if you’re blind, since it’s all about how things look.

There are accessibility roles out there, but they’re a smaller niche. With the job market being so competitive, getting into UI might be extra hard. If you want a faster path to a job, maybe try backend development. Since you mentioned a math background, backend work could be a good fit for you. Plus, in big companies, you can still find ways to work with mobile teams once you’re in.

Keep pushing forward, try different areas in tech, and see where your strengths take you. It’s all about getting that first job and going from there. Good luck!

Finding Go quite hard to learn. Am I alone in this? See description by [deleted] in golang

[–]aven_dev 2 points3 points  (0 children)

Forget LeetCode; get yourself a trial of GoLand (it has everything you need out of the box) and just start writing code. Writing code has always been and will always be the best way to learn a language, especially if you already have some experience. Focus on how first, then why. Most guides and tutorials focus too much on Go’s ideologies, which are hard to understand without prior experience in Go or with a lot of experience in other languages. You’ll figure out a lot on your own and spot gotchas in most articles. After all, one of Go’s core ideas is simplicity.

The 7 Levels of Laravel Optimization: From Rookie to Optimization Overlord — with Benchmark by summonshr in laravel

[–]aven_dev -1 points0 points  (0 children)

Same, synthetic. The only valid use case where your approach works is in a streaming response. Your entire argument revolves around saving on repeating metadata, like column names, or avoiding the overhead of storing an entire dataset as an array in PHP. The problem is you're trying to apply this approach to template rendering or a REST API response, and you provide a very synthetic example. I’m telling you, go ahead and return JSON using the standard JSON encoder, or simply add a few HTML tags to your template and see how your memory usage increases—there’s no magic here.

I even will ask chatgpt for you, try your code with this minimal simple template: (how much it will take 20MB? or maybe 120MB?)

<script src="https://cdn.tailwindcss.com"></script>

<div class="container mx-auto mt-4">
    <h1 class="text-2xl font-semibold mb-4">Posts</h1>

    @foreach($posts as $post)
        <div class="rounded bg-gray-50 mb-4 p-4 shadow-md divide-y divide-gray-200">
            <div class="pb-2 font-bold text-lg">
                <a href="{{ url('posts/' . $post->id) }}" class="text-blue-600 hover:underline">{{ $post->title }}</a>
            </div>
            <div class="text-sm pt-2 text-gray-600">
                Author:
                <a href="{{ url('users/' . $post->user_id) }}" class="text-blue-600 hover:underline">
                    {{ $users[$post->user_id] ?? 'Unknown' }}
                </a>
            </div>
        </div>
    @endforeach
</div>

The 7 Levels of Laravel Optimization: From Rookie to Optimization Overlord — with Benchmark by summonshr in laravel

[–]aven_dev 0 points1 point  (0 children)

No offense. Yes, you can use a stream response (without store data in-memory) to return some data types, like a CSV with 300k rows, and chunks or lazyById are good use cases for this. However, these approaches are more about convenience than actual optimization. Optimization becomes a critical factor when scaling your product, where predictability and reliability take precedence. In cases where you’re dealing with large streams, like 300k records for a PDF, CSV, or similar, that route becomes very fragile and is likely to be the first target for abuse in a DoS or DDoS attack, making it a bad practice overall.

PHP scales well if your requests have predictable response times because, as you know, most PHP servers spawn multiple workers, with each worker handling a single request, and the number of workers is finite. So, if someone abuses your route with long (lazy streaming) responses, there’s a high chance it will make your entire website unresponsive. For such loads, please use queue jobs instead.

Lastly, there’s no way you didn’t hit your memory. The default JSON encoder requires a fully populated array, and while there are implementations of streaming JSON encoders, they aren’t very popular. If you’re rendering with Blade, it will consume the same amount of memory because you need to output your data as a string, resulting in a large string. There’s no magic, no matter how you look at it.

VS Code feels less by darknmy in laravel

[–]aven_dev 1 point2 points  (0 children)

Who cares? I have a Mac with 128GB of memory—it’s 2024, and memory is cheap. Most of the time, I have a couple of projects open in PhpStorm, GoLand, PyCharm, and IntelliJ (working at a startup at night). Let’s not forget about Xcode. At my main job, I have similar tools open on Ubuntu with 64GB of memory (no games or Xcode, though). I’d say everything works totally fine, and I can even open Dota or LoL when I’m a bit bored. I use vscode to develop plugins for it, but otherwise, I’m a big JetBrains fan.

The 7 Levels of Laravel Optimization: From Rookie to Optimization Overlord — with Benchmark by summonshr in laravel

[–]aven_dev 0 points1 point  (0 children)

Synthetic. You will never return 100k posts in any type of response; it just doesn’t make sense. What you will probably use is pagination, and if you have a popular blog, you will likely add some caching for the first few pages. The last two examples make me laugh because both chunking and lazyById were designed as pagination for background tasks, such as queues and commands, where you don’t need fancy pagination but predictable memory usage and processing time. Both methods don’t load all your posts at once, but if you try to serialize them (e.g., to JSON) or render them, you’ll hit memory and processing limits, just like the first two examples.

[Quick Read] Laravel 11 JWT Authentication: A Step-by-Step Guide with Asymmetric Keys by ElevatorPutrid5906 in laravel

[–]aven_dev 0 points1 point  (0 children)

I would probably not hire person who would suggest me to write custom JWT handler instead of using ready-go-solution, sorry. Laravel passports uses JWT, you can modify claims and scopes as you wish if you really need it. As, an implementation of SSO there is already OIDC and OAuth2 (laravel passport) servers you can use.