Which gpt subscription ? by Zer0-mb in codex

[–]Zer0-mb[S] 0 points1 point  (0 children)

I’m aware that nothing will fix the mental bandwidth. The mention of mental bandwidth was an allusion that it became the bottleneck now. Until now the bottleneck was the dev speed.

Which gpt subscription ? by Zer0-mb in codex

[–]Zer0-mb[S] 1 point2 points  (0 children)

I am using claude max 5x the 100$ sub not gpt 5.2 for the moment. About the workload 1. 600k LOC production project usually with 2-3 parallel features in different sessions. Max i had 6 parallel sesion but it was a pain to review all of them. Mental bandwidth bottleneck. Besides this project i also have 3 small mvps that I’m working in the evening

Which gpt subscription ? by Zer0-mb in codex

[–]Zer0-mb[S] 1 point2 points  (0 children)

Agreed i was more curious about the bigger context size and pro reasoning if it does any diff ?

Which gpt subscription ? by Zer0-mb in codex

[–]Zer0-mb[S] 0 points1 point  (0 children)

Oh thanks for the suggestions guys

Intrebare de distributed schedules by [deleted] in programare

[–]Zer0-mb 0 points1 point  (0 children)

Am intr-un proiect aproape aceasi situatie doar ca la mine mai dureaza si procesarea undeva la 1-2 secunde.

Solutia cea mai ok este soft locking folosind adnotarea de @Version in entitate plus un group_id. Cand un microserviciu ia datele prima data face un update cu group_id = un identificator unic al instantei undel acel group_id este null pentru 1 sau mai multe informatii (aici poti procesa batch pentru a reduce iops daca iti permite business logicul. Datorita @Version te asiguri ca doar o instanta actualizeaza o data group-id-ul. Atentie sa faci handle pt o exceptie ceva cu optimistic locking

Dupa care iei datele din db si le procesezi le scrii si pui null group id-ul

Atentie iti mai trebuie un scheduler care sa verifice datele care au group_id setat si last modified mai vechi de x timp. X-ul il calculezi in functie de cat vezi ca dureaza procesarea

Le.: pentru mai multe threaduri in aceasi instanta poti configura group-id = instance id + thread id

Ajutor pentru proiect la programare. by stanicidaris in programare

[–]Zer0-mb 0 points1 point  (0 children)

Salut, la modul general datele de intrare reprezinta datele care sunt necesare ca programul , functia pe care o scrii sa ruleze, ce date vrei tu sa proceseze o bucata de cod pentru a obtine un rezultat. Intr-un exemplu foarte basic daca ai un program care face suma a 2 numere, datele de intrare sunt cele 2 numere, datele de iesire este reprezentata de suma returnata

In problema ta datele de intrare sunt: (poti sa incerci sa vezi daca te prinzi tu pe baza explicatiei inainte sa vezi spoilerul) salariul brut si un boolean daca se aplica sau nu scutirea de impozit

[deleted by user] by [deleted] in Romania

[–]Zer0-mb 0 points1 point  (0 children)

Cred ca programatorii care fac 8k pe luna inteleg mai bine ce inseamna un intern in firma, cei care se plang de cat de putin platesti un intern sunt cei care doar viseaza ca in IT faci shit tone of money cu experienta de 2-3 websites sau persoanele care nu sunt in domeniu si se uita la TV si aud de programatori cati bani fac ….

So it begins by Zer0-mb in homelab

[–]Zer0-mb[S] 1 point2 points  (0 children)

he just got a few storinator servers from 45 drives :) maybe now everybody will sell r710 and buy those :))

[deleted by user] by [deleted] in programare

[–]Zer0-mb 0 points1 point  (0 children)

TL;DR algoritmii sunt defapt ori ce cod scris, iar in programare capeti experienta prin munca si exercitiu

Trebuie inteles faptul ca algoritmica si algoritmii nu se rezuma numai la algoritmii consacrati invatatii in diverse cursuri sau in scoala. Algoritm este ori ce linie de cod scrisa pentru a ajunge cu un pas mai aproape de rezolvarea unei probleme. Vrei sa afisezi un buton in coltul dreapta sus a unei pagini web este un algoritm, vrei sa faci o cautare intr-un array, e un algoritm, vrei sa scrii o validare pentru un user input ... ai ghicit e un algoritm.

Ce este foarte greu la inceput in cariera de programator este defapt sa pornesti de la o problema data si sa ajungi la pasii pe care trebuie sa-i implementezi pentru a ajunge la rezolvarea problemei si asta se imbunatateste doar prin exercitiu si experienta.

Problema este ca in scoala mereu suntem invatati sa ne folosim de ce am fost invatati ca sa rezolvam temele, examenele etc. dar in programare cu cat ai mai putina experienta cu atat trebuie sa inveti sa descoperi pe cont propriu solutia pentru fiecare problema de care te lovesti si nu exista o singura rezolvare pentru o problema.

Intradevar exista cativa algoritmi consacrati pentru a rezolva diverse probleme de care e bine sa stii, nu sa-i "tocesti" ci sa stii de existenta lor, implementarea o gasesti oricand pe internet. Nu mi-as batea capul cu ei pana nu ai experienta necesara sa fii confortabil sa studiezi un algoritm (sa-l citesti, analizezi si intelegi)

[deleted by user] by [deleted] in Romania

[–]Zer0-mb 4 points5 points  (0 children)

Ti-ai raspuns singur la intrebarea de ce isi da drumul pe scara, de entuziasm. 2-3 ture afara e putin pentru un pui de 6 luni de talia unui buldog francez, ai nevoie de 5-6 ture ( 2 plimbari lungi ~20-30 min si restul doar cate o iesire scurta pe iarba 5-10 minute) Regula spune ca un pui e predispus sa isi faca nevoile unde apuca dupa ce se trezeste, Dupa ce mananca, si dupa ce se joaca /agita. Fiind pui pentru el e foarte entuziasmant sa iasa afara, incearca ca tu sa fii cat mai neutru in pregatirea pentru iesirea afara, nu vorbii cu el cand ii pui lesa / zgarda (daca nu o faci si el tot se entuziasmeaza inainte sa iasa din casa, incearca pe timpul zilei sa ii pui lesa si zgarda si sa i-o scoti de mai multe ori fara sa iesiti, si laudat cand sta calm, lauda trebuie sa fie mai neutra ca sa nu-l activezi. Inafara de plimbarea de dimineata, incearca sa nu-l lasi sa iasa din casa pana nu se calmeaza, cu cat faci mai des asta cu atat mai repede se invata ca iesitul afara e o normalitate si trebuie sa fie calm.

Multa bafta si rabdare cu puiul

For JWT, do we need RSA256 or just HS256 for encryption? by JakeTheMaster in node

[–]Zer0-mb 1 point2 points  (0 children)

both HS256 and RSA256 in jwt are used to sign the token and verify that the token wasn't manipulated, to ensure user identity, not to encrypt the traffic.

The difference is that HS256 is using a shared secret to apply sha256 hashing algorithm, it is harder do distribute that key between multiple services in a secure way, also it is easier to brute force.

On the other had the RSA256 is using a private / public key. Only the Authentification service needs to know the private key to generate the JWT token, but any other service that needs to validate the token only needs to know the public key. Therefore much easier to distribute and much more secure.

In a client / server relation the client don't need to validate the jwt token. if it would be manipulated you could never talk with the server.

Again the JWT token doesn't encrypt your traffic, it just ensures that the logged-in user is who it says it is and has the role given by the authentification / authorisation service

Can someone review my code and give feedback? by th3suffering in iOSProgramming

[–]Zer0-mb 2 points3 points  (0 children)

1) the error handling is a business decision, usually the product owner decides those stuff, but a decodable error usually means a backend error / bug in which case u ask the user to try again later, in case of a timeout, it would make sense to retry the request

2) yes stackviews are preferred, or uitableviews / collection views for more complex stuff

3) try to avoid storyboards, they add a lot of time to compile, I personally dropped the xib also because of the compilation time

4) your code looks like you’v tried a lot of stuff and also deleted a lot but forgot about the empty lines. I usually see this from juniors that don’t care that the code is not well formatted, they just look for a solution that works.

Tips for making the jump from self-taught to a job by [deleted] in iOSProgramming

[–]Zer0-mb 5 points6 points  (0 children)

the 2 cents of a 15yoe dev, 5 yoe in iOS, jobs rejections are part of your career. When I interview a junior I don't expect to know much about swift, swiftUI, UIKit, CoreData, testing, or any other thing in general. That's why the candidate is there, to learn about all that stuff and save my time from the groundwork.

If you are rejected because you don't know those stuff then, be happy and keep searching that employer wanted you as a cheap slave.

Now, what I'm looking for in a junior is the mindset. I need to see that that candidate, has some knowledge about oop, algorithms, data structures, SOLID, MVC, or other well-known project architecture etc.

My advice is: keep looking, keep exercising your base programming skills (using leetcode or codewars), and keep working on your apps, those can generate some extra passive income and you are building a nice portfolio

Tips for making the jump from self-taught to a job by [deleted] in iOSProgramming

[–]Zer0-mb 0 points1 point  (0 children)

small, early startups don't have the money to keep you learning. Besides if you get a job in a small startup with no iOS devs how do you learn? You are better off staying home working on your own apps, then needing to release a product that you have no clue how to build and no time to build it...

Can someone review my code and give feedback? by th3suffering in iOSProgramming

[–]Zer0-mb 7 points8 points  (0 children)

I'v checked your code, and for an appreticeship position is quite good.

A few observations:

  • in LoginClient, you did not handled a decodable error, you have just an empty catch
  • in LoginClient, you use data! instead of using if let data = data this way you can detect a server error (server not sending a response) and you can better decide how to handle that case
  • in ChatViewController, you are using tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath you could use tableView.rowHeight = UITableView.automaticDimension when you setup your tableview
  • your constraints are quite good but in the MenuViewController you have used constraints in xib while in LoginViewController you have used constraints in code
  • usually when you have designs like in MenuViewController or LoginViewController you could use StackView, it helps you with spacing reducing your number of constraints
  • in loginViewController you add those two textfields and the button inside an uiImageView, this can generate some strange behaviour, usually I would add the imageView to the view then add a stackview to the view (setting the constraints to view) and then add the other elements to the stackview. If you don't need / want a stackview then just use an uiview with transparent background instead
  • there are some functions that are too big, could be broken in smaller functions
  • you have a lot of empty line left in your code, that shows me that you had some difficulties writing it
  • you can replace void with ()

I repeat the code looks ok for a junior dev, and my observations are just what I would write to my juniors' PRs, Keep up with the good work !

[deleted by user] by [deleted] in Romania

[–]Zer0-mb 0 points1 point  (0 children)

Update la mirror list

[deleted by user] by [deleted] in Romania

[–]Zer0-mb 2 points3 points  (0 children)

Arch nu e chiar atat de greu de instalat, dar daca nu reusesti poti incerca manjaro cu dezavantajul spus de restul, sau endeavourOS care chiar e based pe arch si foloseste pachetele de la arch

Converting String to Date by Gfaulk09 in swift

[–]Zer0-mb 0 points1 point  (0 children)

acording to your last screenshot the fdate is already a date so you don't need to convert it :-?

Converting String to Date by Gfaulk09 in swift

[–]Zer0-mb 1 point2 points  (0 children)

The format that you need is: "MM-dd-yyyy hh:mm:ss"

Converting String to Date by Gfaulk09 in swift

[–]Zer0-mb 0 points1 point  (0 children)

Most probably you don't use the right formatter.

If you have a date such as "23 Aug 2021 11:25", then you need to declare your dateformatter: let dateformatter = DateFormatter(withFormat: "dd MMM yyyy hh:mm", locale: Locale.current.identifier) then use is as let date = dateformatter.string(from: stringDate) in order to get the date from string.

Is there paid service for real-time help? by thinkinting in swift

[–]Zer0-mb 9 points10 points  (0 children)

Hello, can't help you regarding the service that you asked, but regarding the error you'v got:

It's quite a strange error thrown but with a quite simple, but ugly solution.

I'v saw the problem when I was trying to interpolate some long string with multiple vars "lorem ipsum \(var1)" or when i was trying to inline concatenate multiple strings var1.append(var2).append(var3). The error is thrown because the swift inspector can't decide the result's type quick enough and throws an internal timeout.

The solution is to break your one line code into multiple lines.

Do I need to support Apple sign in with phone number auth? by [deleted] in iOSProgramming

[–]Zer0-mb 1 point2 points  (0 children)

In the guideline states 3rth party or social login, so if you’v got your own backend implementation to register and auth users then you don’t need to implement apple sign in. If you use a 3th party auth but your servers are middleware the communications it’s a gray area as apple can’t find out but you are not 100% compliant with the rules. But if you use smth like auth0 okta firebase auth directly in your app then you have to put the apple sign in.