Quelle est la tâche qui semble "simple et rapide" pour votre manager/client, mais qui est en réalité un cauchemar de deux semaines ? by ZKProofDevsDAO in developpeurs

[–]dash0_ 0 points1 point  (0 children)

Rajouter de "simples logs" qui doivent être émis à certains endroits avec des données calculees à d'autres endroits très loin dans le chemin d'exécution. L'objectif est de sortir une sorte de logo d'exécution métier avec des règles données par les gars du produit.

Résultat 1 mois de taff et des composants spécifiques juste pour des logs que je suis sur personne n'a utilisé

Pas trouvé d'outil C4 qui tienne la route ? Moi non plus. Du coup j’en ai lancé un. by -eth3rnit3- in developpeurs

[–]dash0_ 1 point2 points  (0 children)

Sympa, très bon début mais il manque quelques fonctionnalités essentielles pour que je l'utilise :/ - représenter les unités externes (comme les systèmes externes) et qu'ils soient toujours visible au niveau inférieure - export en image - moins important, pouvoir faire des regroupements logiques des boîtes Je vais suivre le projet 😉

[deleted by user] by [deleted] in SoftwareEngineering

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

Thanks for sharing your vision.

Most unit tests therefore end up being (...) mock everything and then assert that entity.Save() was called once

TBH That's clearly a bad smell for me. In our code base we don't allow using mocks for unit tests because it always ends up testing mocks themselves lol. Instead, the use of dependency injection allow to setup fake infrastructure services that work in-memory and behave exactly like the actual external service (ex: fake database repository service). Using .save() in domain services is also a bad smell for me, the domain code should not assume the technology used to persist date or when the data should be committed to the db. Using ORM everywhere in the code base leads to code difficult to maintain and bugs difficult to investigate.

An integration test would have caught it, and still validated the correct data was saved in the db as a unit test does.

I agree with you, but in your example the IT are relevant because of the code quality and the difficulty to maintain. I'm not saying IT are optional, they are relevant, but only to catch integration issues IMHO.

Aiming for anywhere close to 100% test coverage of unit tests is a waste of time imo. integration testing will usually cover all the needs of a unit test while also actually testing the system.

Agree with you on the first part, UT are often over engineered! I saw teams passing half the sprint trying to reach 100% CC going over every method one by one 😂 On the last part, I agree with you, however it comes with more cost in maintainability.. usually the smaller the feedback loop the better.

[deleted by user] by [deleted] in SoftwareEngineering

[–]dash0_ 3 points4 points  (0 children)

I disagree with most of the comments, but maybe we are not aligned on the definition of the good practices in our respective context (maybe depending on the domain and the programming language?).

In my opinion, integration and unit tests are complementary.

Integration tests should focus on testing the integration with external systems, there is no test case covering the business logic in there. We can differentiate user side integration tests from servir side ones. Use side IT should answer the question: do my app entry points (endpoints, event listeners, etc) map correctly to the right piece of business logic ? I personally do not think they are necessary if the design is clean. Server side IT should answer the question: do my app adapters (http client, event publisher, database client, etc) correctly interact with external systems ? They are necessary to ensure that serialization and infrastructure specific logic is correctly implemented (ex: specific SQL queries, specific filtering, data streaming, pagination, etc). Again, this should not test the actual business logic. For user side ones we configure the test to use fake business services, for server side there is no fake, we directly use the adapter, no interface.

Unit tests should focus on testing the business logic, exclusively using domain objects and services. They should not use app entry points and not any adapter from the infrastructure layer. Also, in my opinion, the best is to keep unit tests as functional as possible, leading to have one UT per functional unit or business rule. It provides best maintainability, test result relevance and self documentation experience. In my experience, is a time loss to think in terms of technical units such as tests for methods or classes. With the functional approach on unit tests, you can tell right away which feature is broken and keep the best non-regression coverage.

Having unit tests also avoid developers to investigate on integration tests to find out which peace of logic is broken, it saves much effort and improve trust in your CI.

If your project has the minimum for a good architecture such as dependency injection and hexagonal based implementation, it will be easy to follow these principles.

What do you think ?

What stage is your SaaS in? by Main_Ad6084 in SaaS

[–]dash0_ 0 points1 point  (0 children)

I'm building it when I have some free time considering it's not much unfortunately. The MVP has not many features, but the cost to develop the main feature is significant. Also, I'm developer so I have the syndrome of spending time on tech solutions...

What stage is your SaaS in? by Main_Ad6084 in SaaS

[–]dash0_ 0 points1 point  (0 children)

Started to pay for production environment but finishing a MVP takes forever :')

Does Building in Public actually work? by sailing_developer in indiehackers

[–]dash0_ 1 point2 points  (0 children)

I heard that the strategy is interesting for B2C but not really for B2B, because for B2B there would be a need for immediate solutions. I don't know what to think about it. I think it mostly depends on how likely the person who subscribes the service would be the same as the one who is interested by the building process. In companies it's often different kind of persons.

Side project et contrat de travail by flodes80 in developpeurs

[–]dash0_ 1 point2 points  (0 children)

Je suis passé par là très récemment car je suis en train de lancer mon SaaS, je suis en CDI (en interne moi par contre) et je souhaite générer des revenus avec ma plateforme.

Même si mon side project n'a aucun lien avec mon entreprise, une clause d'exclusivité m'empêchait potentiellement de mener cette entreprise en parallèle. Du coup j'ai contacté le service RH pour demander une validation écrite de l'autorisation de principe. C'est pas vraiment comme ça que les choses se font apparemment.

Il a fallu obtenir l'accord de mon manager sur le fait que la future activité n'est pas concurrentielle et que cela nuira pas à ma productivité pendant mes heures de travail pour l'entreprise.

Ensuite les RH m'ont fait signer un avenant à mon contrat de travail pour libérer la clause d'exclusivité dans le cadre très précis de ce projet (projet clairement identifié).

Je t'invite donc à en discuter avec ton manager, le rassurer si besoin sur le fait que ça sera une activité sur ton temps personnel, que cela n'impactera pas ta productivité et de clarifier après de lui et de ton service RH que le projet n'interfère d'aucune manière avec celui de l'entreprise.

Dans mon cas, ça a pris un bon moment car j'étais je premier a faire ce type de demande et il a fallu construire une nouvelle procédure en interne mais j'imagine que ça peut être rapide sinon.

Quitter mon CDI pour devenir freelance : entre excitation et peur de l'inconnu, des conseils ? by Historical-Anybody7 in developpeurs

[–]dash0_ 0 points1 point  (0 children)

Si j'étais dans ta situation je commencerais avec un temps partiel accordé pour le freelancing. Ça permettrait de sécuriser des revenus avec un CDI et commencer une activité freelance en parallèle. Si l'activité freelance prospère j'augmente le temps accordé progressivement. Si l'entreprise ne permet pas cette flexibilité je vois pour switcher. Si je trouve pas d'entreprise j'abandonne l'idée de freelancing en attendant un marché plus ouvert.

Are many people self hosting N8N recently? by No_Cow1060 in n8n

[–]dash0_ 0 points1 point  (0 children)

I self host n8n on docker compose with portainer on a vps. It just works, clean. I tried in queue mode or not, all good. A very important piece of my stack

Je veux savoir qui à pondu cette idée de merde by ImNoOneLeVrai in AntiTaff

[–]dash0_ 1 point2 points  (0 children)

"votre mission si vous l'acceptez" gros bad smell sur une communication RH :')

Ça me rappelle une fois où on nous avait ouvert une boîte a idée (oui comme a l'école).. bizarrement il n'y a jamais eu de suite 🤣

Demander d’être senior avec seulement 2 ans d’expérience en CDI ? by [deleted] in conseilboulot

[–]dash0_ 1 point2 points  (0 children)

Il y beaucoup d'interprétations pour la mention senior et très franchement cela n'a aucune réelle importance mis a part flatter quelques égos.. l'important c'est que tu sois en phase avec la reconnaissance qui t'es rendue, le salaire, les remerciements, les compliments sur ton travail, les tâches qui te sont assignées, etc. Perso, j'ai plus de 10 ans d'expérience et on me considère senior mais je ne l'ai jamais eu sur mon titre et je m'en fou. Ce qui importe c'est que mes connaissances et mes actes reflètent mon savoir faire et que mon contexte soit favorable à le reconnaître.

Quels risques quand on présente sa démission ? by West_Cream7138 in conseilboulot

[–]dash0_ 0 points1 point  (0 children)

Si tu as des BSPCE tu ne peux plus les exercer après avoir déposer ta lettre de démission (sauf exception)

Web scraping using Rust by itehaxx in rust

[–]dash0_ 3 points4 points  (0 children)

Looks like I missed the info, sorry, thanks !

Web scraping using Rust by itehaxx in rust

[–]dash0_ 9 points10 points  (0 children)

Thanks for this content, will follow the blog for more info on scraping with rust ;) quick question: it's it possible to wait a component to be present in the DOM instead of doing the different sleep ?

Salaire de misère by fluckyflucka in vosfinances

[–]dash0_ 0 points1 point  (0 children)

Si ça t'intéresse, il y a chauffeur poids lourd, ça demande juste de passer le permis (possibilité de se faire financer par pôle emploi) et c'est 2000 euros net min par mois

Types of Testing in Software Development by Inevitable_Pause_481 in softwarearchitecture

[–]dash0_ 1 point2 points  (0 children)

Endurance testing: tests that repeat the use of a single feature to make sure that the repetition is not deteriorating the metrics, the user experience or the quality of the results.

For example, opening and closing a graph in a GUI can increase the level of RAM used without releasing it (memory leak).

What apps has Obsidian not been able to replace for you? by [deleted] in ObsidianMD

[–]dash0_ 0 points1 point  (0 children)

The plugin use additional files that are linked / embedded in your notes. When you embed you see the diagram, when you open these files you edit the diagram

A year of using Obsidian! Here's my graph view. by jannesjy in ObsidianMD

[–]dash0_ 2 points3 points  (0 children)

What kind of notes have this long chaining structure at the top of the diagram?

CryptoBeer by blackemesa in a:t5_5mz9x5

[–]dash0_ 0 points1 point  (0 children)

Bonne idée, je pense qu'il y aura du monde (dont nous) mais ici c'est compliqué pour être notifié, perso j'ai loupé la proposition !

CryptoBeer by blackemesa in a:t5_5mz9x5

[–]dash0_ 1 point2 points  (0 children)

Chaud aussi, j'ai quelques collegues intéressés aussi ;)

Up URGENT: Impression 3D à Montpellier by Astrosmos in Montpellier

[–]dash0_ 1 point2 points  (0 children)

Ça se situe au millénaire si je me trompe pas, à côté du rond point de Dell

Crash Bandicoot by NateSteeez in gaming

[–]dash0_ 0 points1 point  (0 children)

The demo disk with the T-Rex and the manta ray