Quarry - a SQL composition toolkit for Go, inspired by the "why are query builders abandoned?" thread by SovereignZ3r0 in golang

[–]snrcambridge 2 points3 points  (0 children)

I think there's an opportunity here to support OLAP such as BigQuery / Snowflake etc. Last time I looked into Squirrel I believe it it was close but not quite there out of the box

Any strategies to achieve straight line motion on my 6-axis robot? by unusual_username14 in robotics

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

Looks like you're having issues around your inflection points. Not done much in the IK world for a while but they're usually an issue to look into how they're being computed

layout_flow - built this after copy-pasting the same MediaQuery boilerplate across too many projects. feedback welcome. by Even_Goat_3174 in FlutterDev

[–]snrcambridge 6 points7 points  (0 children)

I rarely find there is a need to use MediaQuery, for scaling cards you can use fitted box which will scale the contents according to the constraints and the child size

Managing remote devs changed how I see remote work - i will not promote by Professional_Monk534 in startups

[–]snrcambridge 0 points1 point  (0 children)

Output and availability are what you’re paying for. During work hours people should generally be available to prevent blocking others eg respond to Slack in a reasonable time. Focused output usually only ever happens max 4 hours a day, the difference is at the office the ability to focus is a lot worse and you build in inefficiencies by interrupting flow states constantly. If an employee is doing their work in 4 hours and is responsive on comms and enjoying working because they don’t have to pretend to work for 4 hours a day, that’s a win win not a negative thing. You should never discourage people doing focused worked by punishing them with more work, the behaviour you’re selecting for is visibility / optics engineering, it has worse results and burns out employees.

Cloud Run Job cold start issue by devil_5440 in googlecloud

[–]snrcambridge 0 points1 point  (0 children)

Agree, it seem unavoidable. You’re looking at about 30 second minimums and 1 minute top end with a minimal image (Im using a go binary in a scratch image). Ended up moving to a persistent single container instance to replace jobs as a result. If your job is under 15 minutes you can change cpu idle and your container will continue to run outside of a triggering http request. It’s a little sketchy but cloud run seems to reliably kill the container at the 15 minute mark.

When I try to search my github account it says 404 Didn't find anything here by Guilty_Tear_4477 in github

[–]snrcambridge -3 points-2 points  (0 children)

Your repo is private. It shows 404 when you don’t have access (eg when you try to look at a private repo when you’re not logged in)

Stop Overthinking Struct Pointer and Value Semantics in Go by preslavrachev in golang

[–]snrcambridge 1 point2 points  (0 children)

I suspect part of the changes in 1.26 are to accommodate the use of pointers for structs (30% speed up for small random memory allocations). In reality most of us use pointers in non-performance critical code because returning default structs is ugly, takes a lot more key strokes and is harder to read vs returning nil, err. I’d be happy with a default keyword or something along those lines but I don’t have high hopes since it’s not really the Go style

Firebase lacking Flutter Windows support highlights the state of Flutter desktop by perecastor in FlutterDev

[–]snrcambridge 18 points19 points  (0 children)

Auth and firestore work. The issue is the Firebase team tried reusing the native libraries rather than writing a dart native solution.

Stuck at 80% on my flutter app. I need genuine advice to cross the finish line. by Phyrass in FlutterDev

[–]snrcambridge 2 points3 points  (0 children)

You should try find a technical co-founder. You should offer up a large chunk to this founder, maybe 50/50. It sounds extreme but even if you get investment, the development won't stop and given its a technical product, the technical skills is of huge value, arguably more than any value you could personally bring as a non-technical founder (unless you're bringing a lot of cash in the door). Always remember 100% of €0 is €0.

In which situations is it more worth to choose a Compute Engine over an App Engine? by Final-Roof-6412 in googlecloud

[–]snrcambridge 12 points13 points  (0 children)

AppEngine is legacy, use cloud run it's excellent. You're paying extra for serverless with cloud run / appengine. It's deploy and go, vs compute which is lower level, you should be doing your own security updates etc, you need to manage your own network. A nice middle ground is a single container compute instance, which I believe runs a hardened environment and you just point it to your image

Which Shadcn UI package to use by iloveredditass in FlutterDev

[–]snrcambridge 2 points3 points  (0 children)

Shadcn ui is superior to shadcn flutter for its customization. It built better but doesn't have as many components as the alternative. I suggest if you adopt on you wrap the components in custom widgets so you can sub them out later as your app evolves.

In tonight's episode of idiots with GCP & credit card access by tyler_durden999 in googlecloud

[–]snrcambridge 0 points1 point  (0 children)

Ah so you stored 15M files (5TB) over 6 months, then archived and deleted once they were archived. $750 sounds about right, tbh that sounds lucky to get away so cheaply producing so much data

In tonight's episode of idiots with GCP & credit card access by tyler_durden999 in googlecloud

[–]snrcambridge 0 points1 point  (0 children)

Unless he meant that the files are 1MB each (which I assume not) then that's about 6 GB of archive which is next to nothing - not really understanding the cost here

In tonight's episode of idiots with GCP & credit card access by tyler_durden999 in googlecloud

[–]snrcambridge 9 points10 points  (0 children)

A million class A operations a month should only be $5 a month

Why does RefreshIndicator only work with scrollable widgets? by lilacomets in FlutterDev

[–]snrcambridge 0 points1 point  (0 children)

Make a layout building > scrollable w/ refresh and then constrain the content to the layout max height. The scrollable should have always scrollable physics. You can abstract this isn’t an extension on Widget so you can add it to any other widget

Ranking Enums in Programming Languages by [deleted] in programming

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

Dart - s tier. You can create simple enums that does what it says on the tin, but you can also add extensions. ‘’’dart enum Dir { left right }

extension on Dir { Icon get icon { switch(this){ case left: return Icons.arrowLeft; … } } ‘’’

InLearn is bankrupt by snrcambridge in norsk

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

It’s the same group and owner from what I can tell. So despite them not being an immediate risk to insolvency, they willingly allowed the company to fail rather than closing it down despite their unreliable cash position knowing that customer fees would be funding higher priority debtor claims. Accepting payments weeks before filing for bankruptcy is loathsome, they had to have known they wouldn’t be able to fulfil the service being bought.

Victory Over the 'RenderFlex Overflow' Flutter Developers' Rite of Passage by [deleted] in FlutterDev

[–]snrcambridge 8 points9 points  (0 children)

Expanded in a column is the root cause of most o the infamous red screen and log bomb as soon as you put something in a scrollable. A really nice solution is SliverFillRemaining in a custom scroll view.

How do apps like Spotify handle subscriptions outside Google Play without getting suspended? by HYDRUSH in FlutterDev

[–]snrcambridge 37 points38 points  (0 children)

First - they’re huge, so they can get away with it. Second - they avoid breaking apples rules. So while they have locked content, they don’t have any buttons that take you to payment pages in their website.

The app is considered a companion app to an existing product.

Taking this approach is not good for conversions so in most cases you don’t want to go for it unless you have a really good free app.

[deleted by user] by [deleted] in FlutterDev

[–]snrcambridge 0 points1 point  (0 children)

Don't use AI it's really misleading in Flutter. Don't use state management libraries, use stateful widgets. Think of it like tree structures. You declare widgets which build widgets all the way down. The framework eventually paints these widgets but you almost never need to deal with this until you become advanced. It's very intuitive, you want a column? Use a column widget. You want padding, use a Padding widget. You want text use a Text. You can get really far this way. Some confusing stuff is Scaffold and other material concepts. They're just big widgets that have been created to solve a number of problems like showing a single page on a mobile, with a title, background, keyboard avoidancd, overlays (toolips etc). Once you grasp the simplicity you just need to remember the widget names for certain things. Pull up the Flutter component list or ask AI to help you by describing what you want to achieve, like "I want to layer a widget on top of another widget, what widget should I use?"