There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.
Accounts which solely post advertisements, or persistently post them may be terminated.
This magazine is from a federated server and may be incomplete. Browse more on the original instance.
Hack3900 , 3 hours ago in Brace Style I kinda like it…
I kinda like it…
olafurp , 1 hour ago Who’s going to write the extension so that they are all hidden and automatically inserted?
Who’s going to write the extension so that they are all hidden and automatically inserted?
VonReposti , 1 hour ago (edited 1 hour ago) I think you’ll like Ruby. It has mostly done away with braces and code blocks end with end, e.g. <span style="color:#323232;">def create </span><span style="color:#323232;"> unless admin redirect_to new_session_path and return </span><span style="color:#323232;"> </span><span style="color:#323232;"> @product = Product.new product_params </span><span style="color:#323232;"> </span><span style="color:#323232;"> if @product.save </span><span style="color:#323232;"> flash[:success] = "New product has been created!" </span><span style="color:#323232;"> redirect_to edit_product_path(@product) and return </span><span style="color:#323232;"> else </span><span style="color:#323232;"> flash[:error] = "Something went wrong! </span><span style="color:#323232;"> render :new </span><span style="color:#323232;"> end </span><span style="color:#323232;">end </span> This is working code that I simplified a bit from an old project of mine.
I think you’ll like Ruby. It has mostly done away with braces and code blocks end with end, e.g.
end
<span style="color:#323232;">def create </span><span style="color:#323232;"> unless admin redirect_to new_session_path and return </span><span style="color:#323232;"> </span><span style="color:#323232;"> @product = Product.new product_params </span><span style="color:#323232;"> </span><span style="color:#323232;"> if @product.save </span><span style="color:#323232;"> flash[:success] = "New product has been created!" </span><span style="color:#323232;"> redirect_to edit_product_path(@product) and return </span><span style="color:#323232;"> else </span><span style="color:#323232;"> flash[:error] = "Something went wrong! </span><span style="color:#323232;"> render :new </span><span style="color:#323232;"> end </span><span style="color:#323232;">end </span>
This is working code that I simplified a bit from an old project of mine.
Reddfugee42 , 3 hours ago in Brace Style https://lemmy.world/pictrs/image/4ecaa5b6-752c-4edb-b04e-9f4cbf866709.jpeg
https://lemmy.world/pictrs/image/4ecaa5b6-752c-4edb-b04e-9f4cbf866709.jpeg
Mesa , 3 hours ago in When your shower uses GitHub more than you Imagine going to take a shower to relax and instead seeing this.
Imagine going to take a shower to relax and instead seeing this.
bruhduh , 3 hours ago in When your shower uses GitHub more than you Cool idea tho, it’ll help redditors to maintain hygiene
Cool idea tho, it’ll help redditors to maintain hygiene
programmer_humor
Oldest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.