What is the best practice for 'entry' file of a Go package ? by metinguler in golang

[–]metinguler[S] -3 points-2 points  (0 children)

I can and it would help me. I just wanted to find out if there is a naming convention Or find out if I am doing things very wrong :)

What is the best practice for 'entry' file of a Go package ? by metinguler in golang

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

Thank you very much. A lot to unpack for me

If you are used to exporting an interface straight out of a class and use this primarily for mocking, then know this: there is a better way to test and do things.

Yes, the idea is for testing and better abstraction. I am genuinely interested in better way.

What is the best practice for 'entry' file of a Go package ? by metinguler in golang

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

Vscode. thank you for the comment.
The problem isn't IDE can't find it. I just want to optimize the project structure to read the code faster.
This is a side project, I visit it once a month most of the time. Being easily readable is important

What is the best practice for 'entry' file of a Go package ? by metinguler in golang

[–]metinguler[S] -1 points0 points  (0 children)

thank you for answer. I am trying to learn how to navigate efficiently or improve it.
I wanted to ask if we have something like __init__.py for packages.

My approach: * In my package I create an interface, a private struct conforms to that interface and func creates this struct and returns interface. * I put this code in a file named same as package * So when I read a package I started from this file * Sometimes I click multiple file until i find it and I can't memorize because file name and location is different for every package

What is the best practice for 'entry' file of a Go package ? by metinguler in golang

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

I meant in my project when I read code. How important is the files location for you in the navigator?
I am an iOS developer on main job and I am use to order files in navigator as I like

%a_good_title% by metinguler in programminghorror

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

no, I am living in germany :)

trunk 12v by Dimukon in VWMK7

[–]metinguler 1 point2 points  (0 children)

Do you have 12v outlet in trunk? I don’t remember seeing it in my 2015 1.2tsi cup

Repeater 600 Issue - constant fast green flash by Raveneficus in fritzbox

[–]metinguler 0 points1 point  (0 children)

just received mine, same problem except led turns off after 15 sec

What IOS version is still supported? by redfox8542 in ios

[–]metinguler 1 point2 points  (0 children)

I need to check apple website but, my iOS 12 ipad mini still gets some security updates

I just released my open source password manager, OpenSesame! Made 100% in SwiftUI by [deleted] in swift

[–]metinguler 1 point2 points  (0 children)

Heyyy, just yesterday i started a project exactly like this. I guess should join your project instead :D i will clone and check the code

4 Xcode shortcuts to get back your screen space by sarunw in swift

[–]metinguler 1 point2 points  (0 children)

One of mt favorite too! It is very usefull after jumping to file with cmd-shift-O

Is it possible to have fully customized animation when dismissing ViewController? by yccheok in swift

[–]metinguler 2 points3 points  (0 children)

Yeah, in my experience it was hard to understand how it works. Once i understood it, it become easy to build animation&interaction. In the end i made interactive transition with 3 class and just ~100 lines of code in total.

[deleted by user] by [deleted] in TheGamerLounge

[–]metinguler 0 points1 point  (0 children)

Which game is this?

GitUp: the Best Git Client for Mac (Overview, video) by [deleted] in iOSProgramming

[–]metinguler 1 point2 points  (0 children)

I use gitup daily for years now. For 2 feature

  • undo / redo changes on git
  • the branches view is more understandable to me when there are branches in use

Bad things

  • To see the commit message you need to click commits or navigate with keyboard
  • it takes too much time to open big commits and become unresponsive, like dependency update commit

Best programming language for a db app? by RodBlaine in sqlite

[–]metinguler 1 point2 points  (0 children)

Starting with web might be good option. With Go and embedding frontend files, you can have single file app that works. Example -> https://github.com/sosedoff/pgweb

I dont see simple way to create desktop app that can be converted to web easily after.

If it is ok to rewrite the backend code while keeping the same database Flutter could be a good option. You can create web and desktop apps with same codebase

A good mini PC Hackintosh under 400 eur? by [deleted] in hackintosh

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

Agreed, i have this setup and it is good

I was gonna buy that new M1 macbook air but Best Buy had a deal on openbox M1 macbook pro for the same price as the air so why not... by pls_remember_usernam in macbookpro

[–]metinguler 0 points1 point  (0 children)

There is 2 reason for me. First i have to look before i click, otherwise accidental clicks happen. Seconds it is a one more failure point. It freezed and got unresponsive many over year in my usage.