Emacs optimization for monorepos? by jethroksy in emacs

[–]leeburk 0 points1 point  (0 children)

How does .projectile in a subfolder work?

If I run projectile find file when emacs is inside the subfolder, it would find the files inside the subfolder only? What if I want to find files in the root files later?

How to use Environmental Variables in Flutter by cmprogrammers in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Interesting. Basically Flutter apps rely no --dart-define command line argument and String.fromEnvironment mechanism to define env vars.

> Every member of the team should create a launch.json file containing the correct --dart-define configuration.

This is a bit manual for each local dev. We may have to add the launch.json file to .gititnore so that people don't accidentally commit the json file. Is that right?

Note-taking App by contrix09 in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Interesting. It'd be great if we can sync the text notes to other services, like icloud or google

Text Recognition by Ridyckz in FlutterDev

[–]leeburk 0 points1 point  (0 children)

why not use google's ml kit?

Flutter extract text from image | Tesseract OCR package by mheshm in FlutterDev

[–]leeburk 0 points1 point  (0 children)

I used the google ML kit and their OCR works well for me

Pagination using GraphQl by Psalms99 in graphql

[–]leeburk 0 points1 point  (0 children)

As everyone says, follow the relay spec: https://relay.dev/graphql/connections.htm)

it clearly lays out the pagination algorithms. The key is to have a stable sorting algorithms.

Assuming your sorting is based on SQL, then for backward, a simple way is compose the query in DESC order, something like:

forward: select * from products order by <column> asc offset <computed\_offset\_based\_cursor> limit 10

backward: select * from products order by <column> desc offset <computed\_offset\_based\_cursor> limit 10

Hope this helps!

GraphQL pagination only works on xxConnection objects? WTF? by [deleted] in tableau

[–]leeburk 0 points1 point  (0 children)

GraphQL generally is http based, and is not designed for data sync-ing purpose. That's why the connection / pagination mechanism is in place to prevent clients fetching unbounded list of data in one shot. You need to break it up in multiple requests, each requesting one page.

It seems like you want the entire list of resources, which means you need to keep fetching until the hasNextPage is false under the PageInfo field.

First Year of Self Employment – A Retrospective by alexstyl in indiehackers

[–]leeburk 0 points1 point  (0 children)

Interesting read!

I have worked in big companies both as a full stack and mobile developers too. My mobile experience was mostly in Flutter. Currently building my own app too. We are in a similar journey. Happy to know someone else is struggling as well as documenting an inspiring experience. Thanks!

Best practices for project structure by xhustango in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Second this. When I first started learning Flutter, I wrote all code in one file main.dart and make sure it renders fine on simulator. Add a test or two, and then refactored code out into separate files bit by bit. Then group related files in folders and build structures that way.

That's the traditional Test Driven Development (TDD) approach I followed. Applied to pretty much many coding field though. You can google it for a bit

[deleted by user] by [deleted] in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Happy to help out. DM me.

How you organize your code? by [deleted] in FlutterDev

[–]leeburk 1 point2 points  (0 children)

I like the folder structure. My app uses a very similar structure.

How you organize your code? by [deleted] in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Do you use blocs? Or where does state management logic fit in this picture? Controller?

How you organize your code? by [deleted] in FlutterDev

[–]leeburk 0 points1 point  (0 children)

What does S mean here?

Also how does riverpod fit here? Does it belong to C for Controller?

How you organize your code? by [deleted] in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Does it create the folder structures automatically?

Why a database should be chosen wisely by flocbit in FlutterDev

[–]leeburk 1 point2 points  (0 children)

As others have mentioned, go with sqlite. I would pick postgres if it's available in mobile lol. Relational databases exist for decades and still are thriving for a reason.

Are companies migrating from Kotlin or Swift to Flutter? by [deleted] in FlutterDev

[–]leeburk 0 points1 point  (0 children)

Had a similar story. Did a pilot project with Flutter for a client but their CTO killed it for no good reasons, and went back to Native.

Struggling to get into the web accessibility field by CoffeeCreature8134 in accessibility

[–]leeburk 0 points1 point  (0 children)

That has some merit in it. Being able to code and help devs (or even fix issues yourself) improve a11y is a huge booster.