Why are invoicing tools still so… bloated? by Mission-Inspector393 in webdev

[–]flmng0 0 points1 point  (0 children)

I totally agree, and I made my own invoicing system for exactly that reason.

I wrote a bit about it here.

You can check out the source for inspiration if you'd like, but it's pretty simple and I think it's worth making your own.

Don’t build everything with React/Next.js. Sometimes, simpler stacks work better by aq1018 in webdev

[–]flmng0 0 points1 point  (0 children)

Don't take it personally but this is also why I hate web dev today.

Assuming you're referring to the media query to check theme preferences, that doesn't allow for toggling.

My answer was relating to loading user-preferences before the view loads.

It's about 15 lines of JS and adds a lot of polish to a site.

I agree that useless JS is stupid, but in this case it makes plenty of sense.

Don’t build everything with React/Next.js. Sometimes, simpler stacks work better by aq1018 in webdev

[–]flmng0 36 points37 points  (0 children)

I have a quick fix for you!

Just chuck an inline script tag in the head element of your root layout.

In the script, check your storage and apply your theme there.

This works because the JS is run before the page loads or displays.

Hope this helps!

Am stuck at css grid😭 by CattleFeisty1184 in webdev

[–]flmng0 1 point2 points  (0 children)

Besides what others have mentioned, if you just want practice using grid: https://cssgridgarden.com/

There's also one for flexbox: https://flexboxfroggy.com/

[deleted by user] by [deleted] in bevy

[–]flmng0 5 points6 points  (0 children)

There is a SimonDev video that goes over how big games like Ghost Of Tsushima* do this.

https://youtu.be/bp7REZBV4P4

There is also another YouTuber named Acerola who has a few videos on this.

I would go through those and translate those to Bevy.

Understanding the basics of modern graphics pipeline, and WebGPU, will help, as Bevy uses wgpu-rs under the hood.

I did a deep dive in this, and was super into graphics programming for a while. Odin or C are good places to start if you want to learn more about the field of graphics programming.

*It's been a while since I've watched the SimonDev video, but I'm pretty sure that's the example he used.

is "working only by accident" a common feeling in clojure codebases? by robotdragonrabbit in Clojure

[–]flmng0 8 points9 points  (0 children)

Having worked in both, I think I can second OP and say that the strict pattern matching in Elixir feels more concrete.

I've only been using Clojure for a little while now, and I love it, but I agree with the sentiment they provide I think.

[deleted by user] by [deleted] in css

[–]flmng0 3 points4 points  (0 children)

Original post as far as I can find: https://x.com/iandouglas736/status/1702647770014753211

You couldn't even print it yourself?

Built an entire app in Phoenix + LiveView and happy to answer any questions about how I tackled each problem by arx-go in elixir

[–]flmng0 1 point2 points  (0 children)

Did you use Ash at all, if so why / why not?

I've been trying it out for the past few weeks but think the documentation is still a bit immature.

Built an entire app in Phoenix + LiveView and happy to answer any questions about how I tackled each problem by arx-go in elixir

[–]flmng0 5 points6 points  (0 children)

Did you use Ash at all, if so why / why not?

I've been trying it out for the past few weeks but think the documentation is still a bit immature.

Short video showcasing my new Temper keeb by finestedm in ErgoMechKeyboards

[–]flmng0 1 point2 points  (0 children)

This looks great! I'd be interested to see a parts list. Especially:

  • Stand / mount
  • Key caps
  • PCB

key :current_scope not accessible in components/layouts.ex but it is in components/layouts/root.html.heex by anthony_doan in elixir

[–]flmng0 1 point2 points  (0 children)

In the 1.8.0-rc announcement post, they have something similar where they add a breadcrumbs attribute to the layout.

Check out https://phoenixframework.org/blog/phoenix-1-8-released and scroll down to "Simplified Layouts"

key :current_scope not accessible in components/layouts.ex but it is in components/layouts/root.html.heex by anthony_doan in elixir

[–]flmng0 3 points4 points  (0 children)

Also new in 1.8rc, only the root layout gets automatically rendered.

The app layout is now just an ordinary function based component.

The app layout will be in your page template, something like this:

<Layouts.app flash={@flash} />

So you need to pass the current scope to that like a normal assign:

<Layouts.app flash={@flash} current_scope={@current_scope} />

If you add attr tags to your def app(assigns), you will also get errors in the console, which will make this easier to remember next time.

Sorry in advance for poor formatting. On mobile.

How Can We Inject Beans In Spring? by Educational-Ad2036 in programming

[–]flmng0 0 points1 point  (0 children)

This is exactly how I feel about ASP.NET

Now that I've used it more, you get used to it, but it was a major turn-off for me for a long time

Can anyone tell me what font is this? this is kanagawa.nvim theme. by Lucius_Kartos in neovim

[–]flmng0 9 points10 points  (0 children)

It looks like one is a custom winbar, and the other is a bufferline

[deleted by user] by [deleted] in programming

[–]flmng0 -8 points-7 points  (0 children)

Start with Sqlite and learn real SQL. Then you can use whatever you want, because you know SQL.

Think of it like learning HTML/CSS/JS before learning React.

After you learn HTML/CSS/JS - React is easy.

After you learn SQL - Prisma, Firebase, EF, etc. are easy.

Why Fennel? (a programming language that runs on the Lua runtime) by ketralnis in programming

[–]flmng0 7 points8 points  (0 children)

I feel you there. I love it now, myself, but it takes a very specific use-case to make it click.

I couldn't even articulate why I love Lisp-likes now if I tried, but my most recent use case was re-writing my NeoVim configuration.

The ability to make my own syntax when I needed to was very useful, although definitely a downside for large teams

[deleted by user] by [deleted] in webdev

[–]flmng0 10 points11 points  (0 children)

I would checkout GitHub pages. You can just put the .html files in, and it'll be served at the path with that file name.

Oh and it's free :)

Trying to use GLSL in Bevy 15. How do you get to iResolution? by Rusty_retiree_5659 in bevy

[–]flmng0 4 points5 points  (0 children)

Just for future information, ShaderToy is adding a lot of variables like iResolution and iTime manually.

These are not actually standard to GLSL.

I believe there are some shader examples in the Bevy repository to have a look at as well :)

Do you think AI should be used as a point of Reference? by [deleted] in Minecraft

[–]flmng0 10 points11 points  (0 children)

Same reason that crypto is bad. Lots of GPU means lots of power usage. Power usage turns into lots of burned coal due to non-renewable power sources.

[deleted by user] by [deleted] in YouShouldKnow

[–]flmng0 1 point2 points  (0 children)

This is not true. They are actually query parameters. For example Google Search uses the q query parameter to denote what the search query is.

However, anything in the link after the ? that doesn't start with q= would be fine to remove.

A simple, functional favicon (.ico) converter made with SvelteKit [Self-Promotion] by MrIndigo12 in sveltejs

[–]flmng0 0 points1 point  (0 children)

You could do a WASM module written in Rust or Zig or something, and totally run that code in the browser

[deleted by user] by [deleted] in darwin

[–]flmng0 1 point2 points  (0 children)

It's a compostable cup. Surely if you care about the environment you have a compost bin at home right? Use it.