potterman28wxcv

joined 2 years ago
[–] potterman28wxcv@beehaw.org 4 points 2 years ago* (last edited 2 years ago) (2 children)

Why would you have to choose between tests and compiler checks? You can have both. The more you have the less chance of finding bugs.

I would also add that tests cannot possibly be exhaustive. I am thinking in particular of concurrency problems - even with fuzzing you can still come across special cases where it goes wrong because you forgot a mutex somewhere. Extra static checks are complementary to tests.

I think you can write "unsafe" code in Rust that bypass most of the extra checks so you do have the flexibility if you really need it.

[–] potterman28wxcv@beehaw.org 7 points 2 years ago* (last edited 2 years ago) (1 children)

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.

[–] potterman28wxcv@beehaw.org 2 points 2 years ago

Looks cool! This reminds me of Freespace, another beautiful space fighter game

[–] potterman28wxcv@beehaw.org 0 points 2 years ago (1 children)

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

[–] potterman28wxcv@beehaw.org 7 points 2 years ago* (last edited 2 years ago)

Yes, getting into a new project is hard. Even when you do know the languages and frameworks it's still hard because you have to get into the mini ecosystem that the developers of that project built. In companies there is usually an expected amount of time (days? weeks? Months? Varies on the project) where a new developer is not really expected to do anything major, just getting used to the project.

I do not know if you are professional or hobbyist. But coding takes a lot of time, a lot of it is spent on just figuring out how you will code this or that feature ; then another bunch of time is spent debugging ; and finally, yet another bunch of time is spent integrating your new feature. That's why it's a whole job, and that's also why you need a ton of free time to do this as a hobbyist.

But the good news is that once you spent that upfront time to get into the project, you can code more efficiently (that is, get right to the features you want to make) and you will also spend a little bit less time getting into other projects because although projects are different, there is always some level of organization that remains similar. The more advanced you become, the quicker you can get into a "production" state where you can code right away thanks to spending less time figuring out how things work.

[–] potterman28wxcv@beehaw.org 40 points 2 years ago* (last edited 2 years ago) (2 children)

This is such a basic functionality. It does not deserve advertisements, it should have been there from the start.

and it's not locked behind a paywall

Are we supposed to cheer?

[–] potterman28wxcv@beehaw.org 5 points 2 years ago

The Christian Bible’s Matthew 24 had a prophecy that is about to become historical-fact, in the coming decade.

Here’s a decent version of it:

https://www.biblegateway.com/passage/?search=matt+24&version=AMPC

That bit around verses 15-20 is the pertinent area.

Simply wait 1 decade, and see: if Israel still exists, as a country, in 2033, I’ll eat a hat.

The nice thing about prophecies is that they can never be proven to be false. Indeed, one would have to examine the future to prove it wrong. Which is either impossible or unrealistic.

Me too I can make a ton of prophecies and claim they will be eventually right. I will never be wrong.

Let's see. Let me prophesize that:

  • The US will cease to exist
  • We will encounter aliens
  • See where you are living right now? Eventually, it will be filled with lava.
  • See where you are living right now? Eventually, it will be flooded with water.
  • A giant comet populated with nyan cats will crash on Earth

However, you can be sure that in 2033 I will come back in this thread and have you eat a hat. Marking the date and the link in my calendar. If lemmy is still alive, that is

[–] potterman28wxcv@beehaw.org 8 points 2 years ago

They are not making them more efficient. They are studying how to make them more efficient. It's a really big difference because I am not yet ready to place my life in the hands of a CNN-based AI

[–] potterman28wxcv@beehaw.org 5 points 2 years ago (1 children)

Yeah exactly. Here follows some spoiler for those who have never played Dark Souls

spoilerOnce you escape from the asylum you can get to the catacombs right away. I did that and got my ass kicked so I figured I was not supposed to get there first.

So I went up towards the upper Bell. Which I did ring. But then afterwards it looked so clear to me, especially as you unlock the shortcut to Firelink : yes ! The other bell must be down in the catacombs! So I headed there.

I struggled a lot to handle all the monsters. I kept going until the valley where you face skeletons on wheels and the black Knight. I figured "no something isn't right, I don't think the game is supposed to be that hard. There are tips on the ground about using a divine weapon but I don't even know how to get one.". I read a post online and figured I went the wrong way.. Once again

Once I fixed that and went the right way things got significantly easier. I heard how some players literally got down to the catacombs from the get go and somehow managed to get to the boss door only to be met by a yellow fog that can't be passed, and how they struggled to get back to firelink without getting killed..

The bottom line is that I think you need to have someone telling you where not to go to really enjoy Dark souls. Because its not obvious whether you die because of your incompetence or just because you were not supposed to be there right now. I wouldn't say its bad design though - but it's not for everyone for sure

[–] potterman28wxcv@beehaw.org 4 points 2 years ago (3 children)

I used to dislike dark souls. Recently I tried it again - I struggled but I finally got the hang of it!

I think the hardest is to know what to do. I figured out I was struggling because I kept going in zones I was not expected to go yet.

Also it's such a big shift compared to what I was used to. You have to wait for the right opportunity to attack rather than going in there and relying on reflexes.

[–] potterman28wxcv@beehaw.org 2 points 2 years ago (1 children)

I doubt Elon Musk does programming

view more: ‹ prev next ›