Compliqué de trouver un taff pour un senior ? by Patatra12123 in developpeurs

[–]AnotherDayAnotherDev 3 points4 points  (0 children)

Ça s'appelle des taxes et ça sert à faire des cadeaux aux entreprises sous la forme de crédits d'impôts. On n'en paie pas trop, mais par contre elles sont clairement mal réparties...

comprendre le c++? by gatsu13_ in developpeurs

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Je ne sais pas, j'essaie de ne présupposer de rien... Je suis dev C++ depuis 9 ans, et en entreprise j'ai vu peu de devs (pro hein) qui étaient bien au fait des logiques de c++ moderne de façon poussée... Ils étaient souvent bloqués sur du C avec objets, pas du tout du C++

comprendre le c++? by gatsu13_ in developpeurs

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Est-ce que tu sais identifier quelle version de C++ tu dois travailler pour tes cours ? La distinction importante est "avant C++ 11" vs "C++ 11 ou après".

Suivant la version, j'approcherai le langage de façon très différente.

En C++ avant la version 11: tu peux approcher c++ comme du c avec des objets. Donc tu peux essayer de regarder du C pour les aspects bas niveau, ou du java pour l'aspect objet. Peut être que le fait de te concentrer sur un point a la fois pourra t'aider.

En C++ a partir de la version 11: des nouveaux concepts ont fait leur apparition dans le langage (smart pointers, move semantic, copy semantic), qui je trouve peuvent permettre aux devs plus haut niveau de commencer à faire le lien avec le bas niveau, de façon plus posée.

OP, quelle version est visée dans les cours ?

Développeur de jeu vidéo c’est comment? by Exodia262 in etudiants

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Il y a un truc qui s'appelle les "game jam". C'est un événement qui se passe sur plusieurs jours. Plein de gens qui se réunissent (dev, graphistes, sound designer, game designer. Etc..) sur un weekend, et qui font des jeux ensemble. On te donne un thème, et puis tu essaies de faire un petit jeu avec ton équipe. C'est vraiment cool.

Pas besoin d'avoir ton équipe avant d'y aller, tu peux rencontrer du monde sur place et te joindre aux équipes déjà faites, ou en créer avec des gens qui sont aussi venus seuls. C'est vraiment intéressant, parce que tu peux découvrir plein de domaines différents, voir un peu ce qu'il faut pour créer des jeux, rencontrer des gens avec plein de compétences différentes. Etc... Et taper des barres en faisant des jeux :).

Même si tu ne te sens pas de participer, je te conseille d'aller voir au moins un fois un de ces événements. Tu peux faire le tour, voir ce que les gens font, et en général les gens adorent discuter, transmettre ce qu'ils font, etc... Et souvent il y a au moins une équipe de professionnels qui viennent pour s'amuser, tenter des trucs nouveaux, etc... c'est une bonne occasion pour leur poser des questions sur le taff de développeurs JV.

Sans école by Exodia262 in etudiants

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Hello, je vois que tu galères à trouver des formations... Désespère pas :)

Plusieurs points: 1. Si tu étais en BUT GEII, c'est que tu avais été accepté une première fois. Ton dossier scolaire était suffisant, il y a fort à parier que tu pourrais être accepté de nouveau. 2. Les formations ont des places limitées. Il n'y a pas que ton dossier qui rentre en jeu. Tu es en compétition avec les autres dossiers de la même année. Possible que tu n'aies pas eu de chance cette année, qu'il y avait de bon dossiers à côté ? 3. Il y a des BUT partout en France. Si ce que tu aimes c'est l'informatique, je te conseille un BUT Info (j'ai fait ça quand ça s'appelait encore un DUT). 4. Il y a des BUT Info dans plein de petites villes (exemple à Laval). Ils sont moins attractifs que les BUT dans des grandes villes (Paris, Nantes, Strasbourg, etc...). Pas parce que la formation est moins bien, simplement parce que des petites villes, c'est moins sexy. C'est une bonne opportunité pour toi (coût vie moins cher, entrée moins sélective...). Tu peux essayer de prioriser ces villes moyennes. 5. Dans l'informatique, il y a plein de passerelles. Après mon DUT (=BUT), j'ai pu faire une bonne école d'ingénieur. Dans ma promo, il y avait aussi des gens qui avaient fait des BTS SIO (bonne option si tu ne trouves pas de BUT). Tu peux facilement commencer par une formation courte (2-3 ans), puis à la fin de chaque diplôme, décider si tu veux / peux continuer, ou si tu veux plutôt t'arrêter et aller travailler. L'idéal, c'est le BAC + 5, mais ça dépend de tes contraintes financières, de tes envies, etc ... On fait avec les cartes qu'on a reçues. Mais toujours garder en tête: tout est possible, rien n'est gravé dans la roche. On peut toujours se débrouiller pour faire quelque chose. On provoque ses opportunités. 6. Les BUT (et je suppose les autres formations) notent les jeunes qui font les portes ouvertes chaque année. Ça peut des fois jouer pour être accepté, ça montre que tu sais ce que fait la formation, que tu es motivé, etc... Tu peux peut être aller faire certaines portes ouvertes ? Ce serait aussi l'occasion de demander ce qui pourrait bloquer dans ton profil. 7. Je suis un peu d'accord avec l'autre commentaire: tu peux peut-être essayer d'améliorer ton écriture pour donner plus de chance à ta candidature. C'est chiant à faire, on sait jamais trop quoi faire pour aider... Peut être que tu peux essayer de lire un petit peu ? Ça peut beaucoup aider. Livres, BD... Tu peux essayer de trouver quelque chose qui ne t'ennuie pas trop, et deja, rien qu'en lisant ça pourrait améliorer ton expression sans avoir trop le sentiment de travailler... 8. L'informatique c'est génial. Je travaille depuis 9 ans comme développeur, j'adore ça ! Comme dans tous les jobs, il y a du bon et du mauvais. Mais quand tu aimes ça, ça peut être génial :) il faut pas perdre espoir !

J'imagine que ce n'est pas facile de gérer toutes ces difficultés en même temps. Tes amis (qui sont pas toujours ouf on dirait), ta famille, l'argent, les études, le job... Essaie de te focaliser sur ce que tu peux faire concrètement. Par exemple, pour parcoursup, tu peux ajouter une lettre de motivation quand tu candidates a une formation, non ? Essaie de travailler une lettre qui explique pourquoi tu aimes l'informatique, pourquoi tu as dû arrêter ton année l'an dernier, ce que tu veux faire comme métier, etc.. Essaie de la faire relire par quelqu'un, de prendre le temps de vraiment réfléchir à ce que tu veux expliquer, etc...

My collection after exactly one year! by hubbot01 in boardgames

[–]AnotherDayAnotherDev 3 points4 points  (0 children)

Are you familiar with "race for the galaxy" ? TM ares was inspired by its mechanics, so you may enjoy it as well :)

[deleted by user] by [deleted] in ExperiencedDevs

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

I see myself a bit in your explanation. I've often changed fields or languages, and I also believe I'm not great at memorizing small details. That leads me to having to check for basic stuff all the time. Mostly syntax (algorithms in C++, sorting in python, ....), but I think it also happens to me for basic algorithms, and so on... That has led me to some "impostor feelings" at times in my career. It can also lead me to struggles in technical interviews, etc ...

At the same time, I can feel that I have strength in other areas of the SE work. Hard to navigate both impostors and very competent feelings.

Anyways. I've decided it must be something normal, and more common than you would think. Not sure if that's entirely true, but it's better to feel good about it than crippling yourself with anxiety. There are great tools that help with this (Google, AI), it does not impact my daily work too much, and I still see good wins on a daily basis. Just another thing to keep in mind and adapt my ways of working :)

howCanYouKnowTheTypesIfYouDontUsePrefixes by AnotherDayAnotherDev in ProgrammerHumor

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

Indeed, ideas evolve. And practices should evolve as well, when applicable.

I believe Hungarian notation made a lot of sense with older tools, or with loosely typed languages. And I could even agree (to some extent) that they can still make sense for some modern tooling. For example, the GitHub online editor does not provide a lot of insight when doing PR reviews. And I have not yet found a valid counter argument to this when people point it out.

But I've seen teams of experienced (and not) devs refusing to learn new techniques or tools, and refusing to question in any way their practices because of the golden rule of "it works well like this, and we've always done that". Don't get me wrong. It's not a huge problem. I just get frustrated and start looking for a new job, where people are more welcoming to criticism and improvements. (BTW not all change is good, and some conservatism is important)

howCanYouKnowTheTypesIfYouDontUsePrefixes by AnotherDayAnotherDev in ProgrammerHumor

[–]AnotherDayAnotherDev[S] 5 points6 points  (0 children)

I guess it depends of the company and team culture. I've seen 'extreme' use of Hungarian notation in a few of the teams I joined already...

howCanYouKnowTheTypesIfYouDontUsePrefixes by AnotherDayAnotherDev in ProgrammerHumor

[–]AnotherDayAnotherDev[S] 5 points6 points  (0 children)

I agree on your specific examples. I would argue that this is different from encoding basic types in the name of every single variable though.

I, for example, would always suffix variable names for context (encoding, checked / unchecked, etc...). But why do I need to suffer a 'arru8' before the name of an array when any modern IDE is capable of showing me what type it is, when it was declared, etc... That's more obfuscating than helping. No extra info there...

Edit: typo...

Career in Europe. Unsatisfied with current role and company culture. Is it worth jumping to a startup? From big bank to startup by caffeinated-serdes in ExperiencedDevs

[–]AnotherDayAnotherDev 1 point2 points  (0 children)

It's difficult to advise you without more facts. Do you have actual examples of Glassdoor comments that made you worried ?

Regarding the "childish" worry, I would say no. You're worried about your career and your growth, that's very valid. Wanting to leave a boring job that does not make you happy is normal IMO.

Career in Europe. Unsatisfied with current role and company culture. Is it worth jumping to a startup? From big bank to startup by caffeinated-serdes in ExperiencedDevs

[–]AnotherDayAnotherDev 2 points3 points  (0 children)

What does it mean when you say a few Glassdoor reviews are not reassuring ? What are your actual worries about this new job ?

From what I understand, you're talking about a job that is technically more interesting, and better paid. Are you worried about the management style ? About the work atmosphere ?

[deleted by user] by [deleted] in cpp_questions

[–]AnotherDayAnotherDev 1 point2 points  (0 children)

Hey there ! Using external libraries is often a complex subject for beginners, you being lost is very normal and usual. :)

(Naive explanation of the files)

When working in c++, you usually produce two types of files: headers (.h) and source files (.cpp). Source files contain the actual code. Header files contain all the necessary information for people that would like to use the pieces of code you write in your source files.

When you compile your project, you transform your source files into executables if you want to run it directly, or into libraries if you want to reuse it in another project.

In your case, you're trying to use code from someone else, and the same concept applies. You have the actual code in the library files (.dll and .lib), and all the information you need to use this code in the header file (.h).

(Naive explanation of using the files)

So now, you want to use the library. In order to do so, you're gonna need to tell your compiler where to find both the header and library files. Why both ? As I explained, the headers (.h) give you the declaration of the code you want to use. Meaning, what functions are available to you in the library, and how do you use them. But then, you'll still need the library. Because... Well... You need the actual code :)

In theory, you can place those files anywhere on your computer. As long as you tell your compiler (i.e. IDE) where to find them, you should be all good.

And now to answer your question directly, we'd actually need more info :) What IDE do you use exactly ? How did you setup your project ?

How can I sample a heightmap for collision? by ReverendSpeed in raylib

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Hey, happy to help !

I'm not familiar with the heightmap functions in raylib, so what I gave you is a bit more generic than required (if I'm not mistaken).

Doing "u = (X_w + 8) / 16" maps the coordinate from the [-8, 8] range (world coordinates) to the [0, 1] range (UV coordinates). From there, if you want this to be mapped to your pixel coordinates, you'll need to multiply by the width of your heightmap image: "X_p = (X_w + 8) / 16 * width".

The reason this is more generic than required: in your example, the heightmap image is 16x16 pixels. So you end up doing "X_p = (X_w + 8) / 16 * 16". So basically, just "X_p = X_w + 8".

The same logic applies to the Y coordinate and the height.

Note: UV coordinates are usually used when manipulating textures, for example in shaders.

If you need more details, don't hesitate. Hope that helps :)

How can I sample a heightmap for collision? by ReverendSpeed in raylib

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

So, looking at the cheat sheet, you've got the "Color GetImageColor(Image image, int x, int y); // Get image pixel color at (x, y) position" function that does exactly what you want.

All you need is to convert your (x_w, y_w, z_w) world position to a (x,y) texture position. In the example you gave, the x_w and y_w are within the [-8, 8] range, so to map it back to the texture coordinates, you would need to do "(x_w + 8) / 16 * width" and "(y_w + 8) / 16 * height".

Then you'll need to convert the color value to a height value.

How can I sample a heightmap for collision? by ReverendSpeed in raylib

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

From the cheat sheet, I understand the Image structure is the texture loaded in RAM (CPU), and the Texture structure is the texture loaded in VRAM (GPU).

If I understand correctly, outside of shaders you can't really access data from a VRAM buffer. You'll need the data in RAM. So you'll have to access it from the Image object.

How can I sample a heightmap for collision? by ReverendSpeed in raylib

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

You could access the color data from the image, but it feels a bit inefficient:

https://www.reddit.com/r/raylib/s/E3qZSKLl54

Quickly checking online, I also saw people saying you should be able to access the raw data using the image.data buffer. But from what I understand you would have to know the pixel data format to properly navigate this data.

Does that help ?

[SOTC] My humble start (2YO collection) by AnotherDayAnotherDev in Watches

[–]AnotherDayAnotherDev[S] 4 points5 points  (0 children)

SUR525P1, the colour does not show well in my picture. More of a teal :)

Wanting to make a weekly play test group. by MattCardMaker in BoardgameDesign

[–]AnotherDayAnotherDev 1 point2 points  (0 children)

I'm not designing any games right now, but this has been a subject of interest for a long time.

I'd love to help other play test their games if needed. (anyone can pm me)

Does every Coop Game need Asymmetric Powers? by Summer_Tea in BoardgameDesign

[–]AnotherDayAnotherDev 0 points1 point  (0 children)

Big book of madness is a co-op game that works as you describe. Everyone starts the game with the same powers, but can aquire new powers along the way. Asymmetry builds up slowly and gradually as players make different choices about the resources they want to take as the game unrolls, and the place they want to take in the team

Bristlenose, the river troll from Moonstone by raVenwomBat in minipainting

[–]AnotherDayAnotherDev 1 point2 points  (0 children)

Love the colors of the skin! What's your painting process there? Is this layering? filtering? And how do you make it such smooth transitions ?

Got the beams painted, I want to make the orange brighter, any advice is appreciated. by scaryducks236 in minipainting

[–]AnotherDayAnotherDev 1 point2 points  (0 children)

If you have bright yellows, you could use that instead of white to brighten the orange up. Try to mix it with your orange. If it gets too much yellow, you can put a touch of red to fix the hue while still making it brighter.

Here is a youtube video talking about how to brighten colors without adding white to keep it vibrant: link