VonReposti

joined 1 year ago
[–] [email protected] 6 points 2 weeks ago

The documented one. It is hell to work with APIs where only the happy path is documented.

[–] [email protected] 17 points 3 weeks ago

Well, if they're so vocal about it it must mean it's working.

[–] [email protected] 2 points 1 month ago

Not that kind of special.

[–] [email protected] 33 points 1 month ago (2 children)

Too bad we don't have a way to count the radiation levels which is more accurate than looking at a smoke column.

[–] [email protected] 5 points 1 month ago (3 children)

Funny, the forced indentation is what I hate about Python. If you think a missing semicolon can be hard to catch, don't ever think about a missing whitespace :p

The end keyword really isn't a big deal for me. I find it to be a good way to easily spot the end of a method. But if you wouldn't like it I'd still find it a good compromise to avoid syntax issues due to whitespace.

[–] [email protected] 3 points 1 month ago

You are ~~gorgeus~~ ~~gorgeaus~~ ~~gorgus~~ pretty.

[–] [email protected] 3 points 1 month ago

Can't your read? It's not a flamethrower!

[–] [email protected] 4 points 1 month ago (1 children)

I keep forgetting that Asia mostly have the family name first. But Osama still stands.

[–] [email protected] 5 points 1 month ago* (last edited 1 month ago) (3 children)

Osama and Mao, but yes it's increasingly rare. I think we tend to associate historic people with their last names more than their first names.

[–] [email protected] 11 points 1 month ago* (last edited 1 month ago) (7 children)

I think you'll like Ruby. It has mostly done away with braces and code blocks end with end, e.g.

def create
  unless admin redirect_to new_session_path and return
  
  @product = Product.new product_params

  if @product.save
    flash[:success] = "New product has been created!"
    redirect_to edit_product_path(@product) and return
  else
    flash[:error] = "Something went wrong!
    render :new
  end
end

This is working code that I simplified a bit from an old project of mine.

[–] [email protected] 22 points 1 month ago (1 children)
[–] [email protected] 1 points 2 months ago (1 children)

What's the difference?

view more: next ›