Thanks indeed I misunderstood the problem
Thanks indeed I misunderstood the problem
I misunderstood the problem. I thought the thieve came on bike to steal something. I did not get that the bike itself was what got stolen.
I do not get why it would work in that case. I assume the scenario is someone with a bike coming, doing theft, then leaving with the same bike.
Therefore there will be a period without bike, then a period with bike, then a period without bike again.
Let’s assume there is no bike on the particular moment viewed. How do you know whether it occured before or after the theft? If you make the wrong decision, you get stuck on an endless binary search… Unless you take note at each timestamp where you made the decision, draw a tree of timestamps, and go back the tree if your search is fruitless but that’s much more complicated than what this post says.
Agreed that some people can find it easier with explicit names - however some people find it easier with short meaningless names as it makes them focus on the abstraction rather than the naming. There is no right or wrong here. It all depends on the reader.
A specialized architecture will always be better than a general purpose processor no matter how advanced the tech gets.
So you will always need a GPU as a GPU is quite literally a Graphical Programming Unit, that is a specialised architecture for Graphical computations
A friend of mine got asked if she had a boyfriend. She asked back “why that question”. It was to know whether she would be likely to get pregnant and miss work.
What a horrifying mentality some companies have
Étant donné cette différence de croyance, est ce que tu sais si les Francs Maçons du GO sont acceptés parmi les autres branches déistes ?
Oui je voulais dire secte dans ce sens là
C’est une secte oui.
De ce que j’ai compris, les Francs-Maçons encouragent le travail sur soi même ; n’importe qui peut y aller, la seule condition c’est de vouloir améliorer l’humanité (au sens large) et de vouloir travailler sur soi (accepter qu’on est imparfait et qu’on peut déjà s’améliorer soi-même). Ils pensent qu’il y a toujours des améliorations possibles, j’ai l’impression que c’est plutôt un courant perfectionniste.
Ils promeuvent l’écoute des autres ce qui n’est pas vraiment le cas des réseaux sociaux en vogue aujourd’hui. Par exemple ils ont des règles en place pour ne pas couper la parôle et entendre ce que chacun a à dire.
Hot take: Git is hard for people who do not know how to read a documentation.
The Git book is very easy to read and only takes a couple of hours to read the most significant chapters. That’s how I learnt it myself.
Git is meant for developers, i.e. people who are supposed to be good at looking up online how stuff works.
Ça n’arrivera jamais. Il n’est pas de notre monde
Ben le iel est proposé, mais la résistance est forte, et assez peu argumentée amha.
Je vois deux problèmes :
Est-ce qu’il y a une forme COD de iel ? Par exemple pour l’anglais c’est them.
En fait, ce n’est pas la raison, la raison on la connaît, elle est dans les grammaires les plus anciennes: « Le genre masculin est réputé plus noble que le féminin à cause de la supériorité du mâle sur la femelle » article WP. La règle étant explicitement sexiste, je trouve légitime les appels à la changer.
L’existence de la raison historique n’empêche pas que j’ai une préférence personnelle à rédiger au masculin pour des raisons de brièveté
Je suis complètement OK pour changer la règle en la règle de la brièveté de mon côté.
Le sexisme n’est pas de marquer une différence, c’est de transformer la différence en hiérarchie.
Dans ce cas on pourrait décréter de pouvoir utiliser le genre que l’on veut à valeur de neutre, c’est à dire que l’auteur pourrait, au choix, dire “les étudiants” ou “les étudiantes”.
Concrètement, ça voudrait dire que le masculin et le féminin pourraient être utilisés à valeur de neutre.
Comme ça la différence existe, mais il n’y a plus de hiérarchie. Grammaticalement en tout cas.
Ouais mais être galant ne résout pas vraiment le problème en fait.
Ce que je vais dire est très controversé, mais en disant “étudiantes et étudiants” au lieu de “étudiants et étudiantes”, on échange le masculinisme pour du féminisme. Je ne pense pas qu’il y en ait un qui soit mieux que l’autre très honnêtement.
Je suis assez frustré qu’on n’ait pas un “they” ou “them” en français.
Si on veut vraiment l’égalité des genres, il faudrait soit tout rapporter au masculin actuel, ou tout rapporter au féminin actuel - puis enfin supprimer le genre complètement. Disons qu’on rapporte tout au masculin actuel parce que les mots sont plus courts au masculin.
ça impliquerait de ne plus dire “je suis sorti avec elle” mais “je suis sorti avec lui”, peu importe si on parle d’un mec ou d’une nana.
Le souci c’est qu’on reste malgré tout attaché au genre. Si on dit “lui” pour une femme devant elle, il est fort probable que la femme s’indigne. De même, si on dit “elle” pour un homme, il est tout aussi probable qu’il s’indigne.
Je pense que tant qu’on aura cette nécessité de s’identifier comme homme ou femme il y aura du sexisme.
Pour ndlr je prononce “Note de Rédaction”, “Note de la Rédaction” ou juste “N D L R” Pour Mme je prononce “Madame”
Pour étudiant·e·s si je dis “étudiants et étudiantes” je privilégie le masculin, si je dis “étudiantes et étudiants” je privilégie le féminin… mais si je prononce “étudiants” en utilisant le masculin à valeur de neutre, on peut me reprocher de privilégier le masculin.
D’où ma question : comment prononcez-vous le point médian ?
Pour comprendre ce qui est écrit, certaines personnes prononcent dans leur tête la phrase.
Comment tu prononces quelque chose avec un point médian ?
When I first got daily access to internet (back in 2009), I got curious about how programs are built. Like, if I wanted to make my own application, what should I do?
I googled something along that direction and it linked me to a famous french website for learning programming (site du zéro) where I learnt C language.
After the course I made a 2D Snake game with SDL2. How naive was I to think I could write it in one go without testing anything in between! I scrapped the 1st attempt because it was a disaster and randomly inserting/removing *
was not helping.
I started again from scratch, testing in smaller steps, and I really liked it. After a couple of weeks I had my Snake game working! I was so proud of it that I showed it to my mom. I do not have the source files anymore but I still have the binary somewhere
Afterwards I sticked with it and continued programming - I was back in school without much access to internet so I programmed on my TI-83+ instead. Eventually I pursued computer science studies then a PhD… It got me hooked real good.
About your specific example I find the Rust code to be much simpler to understand than your equivalent Golang code…
To understand the Rust code I just have to understand each case. 0…1 returns false. Ok. 2…n returns true iff no divider was found between 2 and n-1. Ok the function is primality test
The Golang code is much harder. I do not take into account the division by 2 because its not part of the original Rust code.
A for loop starting at 2 that look for divisors. Then the return value > 1. Why is it OK to just return value > 1
? Oh that’s because the loop did not return. Why did it not? Either a dividor was found or we did not get into the loop at all. If value > 1 we have the guarantee the loop was executed so it’s really a primal number. If value <= 1 it is either 0 or 1 which are not primal. Ok, so we return value > 1.
I think people dislike Rust because it has a lot of functional languages constructs and people are not used to code in functional languages.
Do you happen to know where those json files are located? I have been looking for those
I love that software. It’s so simple - no need for much clicking you can do a lot with just the keyboard.
I love particularly how there is no bloatness. Creating a new task is as simple as pressing ctrl+a (or shift+a), typing the name and pressing enter. Creating a subtask is just pressing ‘a’ on the task and type the name.
There is jira integration so I can import my jira tickets and make my own local subdivision in smaller tasks that do not need to be thoroughly described or shared. The status of the jira tickets can be updated from the app directly
There is a pomodoro plugin that works well minor some bugs (don’t ever choose “close” when prompted to skip the break or go back to work)
Wonder what did I do last week for writing a summary? Just look at the history in the app
I really love it and can only recommend it for personal planning
I feel like all the points you raise could be replied by : if you do not like it, no one is forcing you into doing it.
It is my understanding that people do this for fun - to take the occasion to get into a new language and/or exercise their problem resolution skills.
Personally, although I love coding (it is a passion), after a whole day of coding I do not feel the energy to partake in a coding event. And during holidays I am busy doing other stuff. So I do not participate in the Advent of Code. But I am still glad that the event exists for people who enjoy it and have the time for it