You’ll be a better programmer as a result.
carghai
cake
link
fedilink
5
edit-2
1Y

Damn, I should start showing again

lmao

Fuck, you can smell me all the way from there?

The miniatures shop called and told us to let you know.

As if I ever leave my house.

That’s nice and all, but if you submit your array reversing code to me for peer review, I’m going to ask our boss for a private meeting, where I will ask him to fire you. And if you were just hired a week ago… you’d still be on probation and very easy to fire, we’ll just call up one of the other job applicants for your position and see if they’re interested.

Don’t waste my time by asking me to review unnecessarily complex code. Also we have enough bugs already and you seem to be going out of your way to introduce even more.

For the record - the right way to reverse an array in PHP is like this: array_reverse($array). And if that’s too slow… just don’t reverse it at all. Use -- instead of ++ in your for loop.

(PS: Ugh. Lemmy sucks for posting code… didn’t like some of the symbols and ate my whole comment. Had to write it twice. Sorry the first one was better)

davawen
link
fedilink
81Y

That’s not the point of the article though. Reversing an array is simply an exemple of a very simple CS puzzle. Of course it’s common enough to have a builtin function. No, this won’t be written in a code base, or asked for a code review. That’s not the point.

My point is I don’t like complex solutions to simple problems.

It’s an algorithm question. If somebody gave me your solution in an interview I would ask them to solve the problem without a dependency. These questions are about demonstrating your ability to code whilst understanding space & time complexity.

Mars2k21
link
fedilink
541Y

Showers help you come up with ideas? Guess I’ll start taking showers from now on, seemed pointless before.

Programmer moment.

This feels extremely targeted…

on the one hand, yes, I write software and take showers when I’m stumped because it’s a great way to think through it.

on the other hand the world didn’t need an article about it.

Who knew resting and taking care of your basic needs can be beneficially productive.

shnizmuffin
link
fedilink
English
11Y

Not this guy.

@FiniteLooper@lemm.ee
link
fedilink
English
111Y

This is why I bring my laptop into the shower

I save so much water since I started working from home.

deleted by creator

I feel personally attacked. Just for that I’m not showering for 3 more weeks.

Not only at programming

What is this, a callout post?

up-yours-woke-moralists

Clean your room and your nasty ass!

Create a post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog