potterman28wxcv
@potterman28wxcv@beehaw.org
- Comment on I'm Not Participating in This Year's Advent of Code For Very Good Reasons 11 months ago:
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
- Comment on Programmer tries to explain binary search to the police 11 months ago:
Thanks indeed I misunderstood the problem
- Comment on Programmer tries to explain binary search to the police 11 months ago:
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.
- Comment on Programmer tries to explain binary search to the police 11 months ago:
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.
- Comment on What's the biggest change you would like to see in computing/tech? 11 months ago:
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
- Comment on What's the biggest change you would like to see in computing/tech? 11 months ago:
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
- Comment on Why Git is hard 1 year ago:
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.
Git is meant for developers, i.e. people who are supposed to be good at looking up online how stuff works.
- Comment on What got you into coding ? (aside from money) 1 year ago:
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 and, although tedious, it was super fun to do. So I sticked with it and continued programming :)
- Comment on Which software do you mostly use for programming, and why? 1 year ago:
I doubt Elon Musk does programming
- Comment on What is your favorite programming language? 1 year ago:
Well Ruby does exactly that though. The methods have good documentation so it’s easy to find what something does. There is no magic in the language that makes it do something else than what you wrote.
- Comment on What is your favorite programming language? 1 year ago:
I love Ruby since I got introduced to it. The syntax is great and you can do many things in a simple manner.
Before that, Python was my go-to language for scripting but now I cannot stand the syntax anymore. I dislike the lack of braces and forced indent.
- Comment on When a Programmer Holds the Code Hostage: The costs of a policy of appeasement 1 year ago:
If the code base is arcane enough, code reviews won’t matter. You just won’t understand at all what is happening there. And the “Martin” will probably pressure you to accept anyway by telling the bosses “I can’t work, they won’t accept my code reviews”.
- Comment on need help with some fundamentals of for loops. it looks like im so close to fully grasping grabbing an item out of a list, but not quite. examples below 1 year ago:
Yeah sometimes you just have to take a step back and think again. Then you will think more clearly and actually know what you wrote :) good luck!
- Comment on need help with some fundamentals of for loops. it looks like im so close to fully grasping grabbing an item out of a list, but not quite. examples below 1 year ago:
Instead of blindly trying code until it works I would suggest you to write on paper the distinct steps that are required to solve the problem.
Imagine you are the computer and you can do nothing else but what Python allows you. How do you solve the problem ?
Usually people do this exercise on a small example. Then they generalise the approach when they find examples where it does not work.
- Comment on Tabs are objectively better than spaces - gomakethings.com 1 year ago:
Make sure to specify you only use spaces before asking for the raise! It works!
- Comment on Tabs are objectively better than spaces - gomakethings.com 1 year ago:
Interesting take. I prefer spaces because each piece of code that I see with tabs has an implicit tabsize you really need to have if you don’t want the code to look ugly - especially if the person has been mixing tabs and spaces - and they usually do. Sometimes unadvertently.
When you remove all tabs at least everyone is on the same page.
To the actual problem raised by the article:
I have ADHD. Two spaces per indent makes it damn near impossible for me to scan code. My brain gets too distracted by the visual noise. Someone who’s visually impaired might bump their font size up really large, and need to scale up or down the amount of space per indent. Someone might just prefer it because…
I wonder if it could be possible to make a code editor that would allow for adjusting the “indent number of spaces you see”. Code editors are able to figure out what are indents and what are not, so in theory it should be possible