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.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

KillingTimeItself , in Absolute legend

this is the first real 100x developer.

c0ber , in Absolute legend

this is why open source?

buzz86us , in Absolute legend

Maybe the guy is content where he was, asks just wanted to fix that bug

Hootz , in Absolute legend

Always love this one, I’d do the same but there’s to many fucking things to fix.

petersr ,

Sounds like you should find a new product to use.

Hootz ,

I would but due to capitalism there’s not much of a choice in products.

I hate when companies just eat an entire industry.

laughterlaughter ,

What’s the product and what’s the field?

Fenrisulfir ,

Windows

areyouevenreal ,

Plenty of alternatives to Windows lol. Try a different industry.

laughterlaughter ,

I didn’t downvote you; but I’m sure the OP was joking.

areyouevenreal ,

Man I hope so but you really never know these days

Hootz ,

Soda and soda accessories.

I’m a Bev tech, there’s two companies that make bar guns, tapright and multiplex aka wunderbar. There’s more options for fountain dispensing but most of my work is bars and restaurants.

Also AMA about soda dispensing at bars.

laughterlaughter ,

Thanks!

Heh, well, here’s a question: what type of software is missing in this industry that would make a killing in profits, if developed?

Hootz ,

I’d say an app or service that allows restaurants and bars to connect with local independent bar and soda techs to request services. Has the ability to track calls, submit invoices and collect payment along with maybe being able to order from suppliers

There’s alot of places that have no idea who to call for issues relating to that stuff especially with how often staff turns over.

laughterlaughter ,

We should talk :)

dejected_warp_core ,

Also AMA about soda dispensing at bars.

It’s been ages since I worked in a restaurant. IIRC, I never saw that place purge or clean the soda lines. And there was a LOT of plumbing between the fountains and the back where the syrup was kept.

At the risk of making everyone re-think ever eating out again: how often do establishments do that kind of maintenance? And is that within the recommended manufacturer interval?

Hootz ,

Oh my the scary question.

Most places legit never do unless there’s a problem. When I do service I’ll usually flush what is needed but I don’t have time for a full cleaning since the customer is supposed to do that.

Corporate chains tend to have actual SOP so they tend to be cleaner in general and will have their lines cleaned more often.

I generally suggest every 4 weeks, and to do it when a box needs to be changed since you are only gonna be flushing the last bit of an old box out of the lines. Luke warm water in a 5 gallon pail and you dunk your qcds with the caps off, run the gun or fountain till it’s clear then start mashing the buttons to get any bits stuck in the line. Pull the qcd from bucket then put cap back on, reattach to box and run gun/fountain till product is running properly.

Tbh, it’s not the lines you gotta worry with soda it’s the gun itself, some places never clean the nozzles and they get gross. Also most of the time any bad tastes are related to water or a bad syrup ratio. I had someone call me saying their lemon lime tasted “dirty” it was a bad ratio, took me not even 5 min to fix.

I’d worry more about the beer though that’s a whole different beast. Lines should be done every two weeks, once a month at the very least. That shit will make you sick if it’s dirty enough, I’ve seen so horrid things related to beer.

Kedly ,

What’s a good alternative to reddit that isnt Lemmy?

RampantParanoia2365 ,

Have you heard of Digg?

Kedly ,

Fuck man, If I switch to Dig I feel like I’ve done the internet out of order xD I’ll have to check Digg out I guess

rhpp , in void *

Actually void* just points to anything, with no regard to the type of that thing. Pointing to the void is more accurately described by NULL pointer.

tunetardis ,

Fair, though I guess my interpretation was that void* is kind of like a black hole in that anything can fall into it in an unsettling way that loses information about what it was?

Traister101 ,

It erases the type of what your pointing at. All you have is a memory location, in contrast to int* which is a memory location of an int

frezik ,

“Allow me to combine the worst feature of strong typing with the worst feature of dynamic typing”.

marcos ,

But we need dynamic types!

…hold my beer…

riodoro1 ,

Result: one of the most if not the most popular programming languages.

neo ,

So, when I want the void to point back at me, do I have to loop over void* or over NULL?
And how many iterations?

programmer_belch ,
@programmer_belch@lemmy.dbzer0.com avatar

For the void to point back at you just dereference the NULL pointer

sus ,

as many iterations as it takes


<span style="color:#323232;">void* x = &x;
</span><span style="color:#323232;">char* ptr = (char*)&x;
</span><span style="color:#323232;">
</span><span style="color:#323232;">while (1) {
</span><span style="color:#323232;">    printf("%dn", (unsigned int)*ptr);
</span><span style="color:#323232;">    ptr--;
</span><span style="color:#323232;">}
</span>
mox ,

In other words, void refers to the typing of the pointer, not a particular value that might be present at its target.

(But I can see how someone might find it confusing.)

Olgratin_Magmatoe , in void *

Void star labs/Zach Freedman moment

xia , in void *

There are no ints in the void, only… death…

Klnsfw , in void *

For God sake, be consistent. It’s either int*, int**, void* or int *, int **, void *

xmunk , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

Who hates s-expressions? They’re elegant as fuck…

Python, on the other hand, deserves all the hate it gets for making whitespace syntactically significant - I even prefer Go’s hamfisted go fmt approach to a forced syntax to python’s bullshit.

eestileib , (edited )

I dgaf about indices starting at 0 or 1, I can deal with case-insensitivity, but syntactically significant whitespace drives me up the wall.

Diplomjodler3 ,

What’s so hard to understand about it? It’s how you should format your code anyway. Only it’s enforced.

Lysergid ,

No it’s how Python wants you to format. Many times I want to separate two logical sections in one function and can’t coz Python go crazy

Diplomjodler3 ,

Just put them in separate functions. If you have too many levels of indent, your code is convoluted. Sticking to the line length limit sometimes forces you to write more lines than you’d like to. But it makes everything so much more readable that it’s 100% worth the trade off

xmunk ,

What if the logic is more readable in one function?

I use whitespace to make my code more legible, python forces more whitespace consistency but it comes at the cost of limiting the legibility.

AdamBomb ,

Are you saying that you want to separate your two logical sections by having different levels of indentation and that’s what makes Python go crazy?

umfk ,

Can you give a concrete example? Because I don’t understand what you mean.

magic_lobster_party ,

It’s quite often I have to second guess whether the code is correctly intended or not. Is this line supposed to be part of this if block or should I remove that extra indentation? It’s not always entirely obvious. Extra troublesome during refactors.

In other languages it’s always obvious when a line is incorrectly indented.

slice1 ,

Yeah, it is a completely nonsensical thing to complain about. I hate to go around matching curly brackets like some braindead nematode. If you use more than two levels you should rewrite the code in most cases… just use advanced indexing and vectorization (by pythonic ;p). Or you can loop around like a freaking peasent in your inefficient garbage code that nobody can read because it is cluttered with comments explaining basic stuff. There is a reason Python is popular… and it is not because no one can read it. Same goes for dynamic typing - it is a blessing for most tasks. I do not want to explain to the machine what every temporary variables means…

vrighter ,

sometimes, a script needs to be edited in a plain text editor, without having access to an lsp or any other dev tools.

pkill OP ,

I agree but still you can oftentimes expect that the average person’s initial reaction to be somehow reluctant… until they understand it. it’s like those foods and drinks that you might need to try a couple times before you start enjoying them.

xmunk ,

Oh, definitely, they can look bizarre and confusing before you understand them.

muntedcrocodile ,
@muntedcrocodile@lemm.ee avatar

I hate em cos regardless of language auto formatter takes care of everything. So now im typing extra characters and fucking shit up and confusing myself when moving code between scopes.

Theharpyeagle ,

You take that back, python is my homie!

In all seriousness, I freely admit that I’m biased towards python because it was my first language and remains my favorite. I use an IDE for anything but the simplest scripts, so I’ve very rarely had any issues with spacing.

best_username_ever ,

In 20 years of using Python, I never had one issue with the indentation. Use spaces all the time, use PyCharm, and that’s it.

Whitespace is statistically insignificant in Python.

FiskFisk33 , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...
aniki , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

<span style="color:#323232;">I love python:
</span><span style="color:#323232;">     Fight me IRL.
</span>
Tamkish ,

fine i will take the bait: thats 5 spaces

Barbarian ,
@Barbarian@sh.itjust.works avatar

As long as the next line also has 5 spaces, that’s fine. Python only complains about inconsistency, not the exact number of spaces/tabs.

Buddahriffic ,

Make, on the other hand… Ugh.

smeg ,

What, you don’t like tabs and spaces being syntactically different?

Buddahriffic ,

(Sarcasm/deadpan detected but I’ll respond anyways).

Not when they are visibly the same and the spaces have no other meaning in that context.

Not to mention tabs being annoying in general because of how badly it works to adjust the distance of tab stops. That doesn’t really affect this particular case, but it’s why I generally use spaces instead of tabs.

Most of the annoyance is from vim recognizing that spaces are an error in makefile recipes but still using them unless I copy paste a tab in, including when I hit enter on a line that is using a tab already. It matches the indentation but uses spaces instead of tabs. I’m sure there’s a way to adjust vim config to fix this, but I have yet to acquire the esoteric knowledge required to do so.

ugo ,

If by vim you mean neovim


<span style="color:#323232;">vim.api.nvim_create_autocmd(“fileType”, {
</span><span style="color:#323232;">    group = file_type_group,
</span><span style="color:#323232;">    pattern = “make”,
</span><span style="color:#323232;">    command = “setlocal ts=4 sts=4 sw=4 noexpandtab”,
</span><span style="color:#323232;">})
</span>

Slap this in your config, done

Buddahriffic ,

Nah, it’s just vim in my work env. But thanks anyways, I appreciate that you tried!

flappy , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

I hate YAML so much

lorty , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...
@lorty@lemmy.ml avatar

No, YAML can fuck right off. I hate that this shit format is used for cloud stuff.

0x0 ,

YAML is the Excel of data formats due to the Norway Problem

RecluseRamble ,

OK, that’s excessively “convenient” for booleans. But I don’t get the passionate YAML hate, seems like a simple enough language for config. Didn’t have the pleasure (“pleasure”?) to work with it though, so what’s why else is it shitty?

CaptPretentious ,

Do a search for ‘why yaml is bad’ and you’ll get a lot of stories.

Constant passing problems, especially when the yaml gets very large and complex. After I implemented a new feature I was pulled into a call with 12-15 people demanding to know why it didn’t work. The new feature worked fine, The guys yaml had the wrong amount of white space and so it didn’t parse.

lorty ,
@lorty@lemmy.ml avatar

White space in the wrong place? Fails Wrong amount of tabs? Fail

Working in a big configuration file that has a lot of nesting? Good luck.

Best part is that most of these things don’t throw errors or anything, it just doesn’t work and you are left scratching your head as to why your deploy only fails in the production environment.

magic_lobster_party ,

A property can have the wrong indentation and it would still be a syntactically correct yaml. It’s hard to distinguish whether a line is wrongly indented or not. Copy and paste a line and mistakenly use the wrong indentation, and the entire production breaks.

In json it’s much harder to do similar mistakes.

UnfortunateShort ,

I think TOML found a pleasant compromise there

firelizzard ,
@firelizzard@programming.dev avatar

It’s hard to distinguish whether a line is wrongly indented or not.

That’s very much not my experience. I use YAML regularly and while I’ve had copy paste indentation errors when I look at the offending line it’s always obvious to me how to fix the indentation. The only indentation thing that’s ever given me trouble is embedding YAML as a string within a file that uses tabs.

quantenzitrone ,

since yaml is just a superset of json, you can easily avoid all problems like this

yaml is like a less strict json for me

AdamBomb ,

Since it’s a superset of JSON, couldn’t you just use the JSON notation if you hate the semantic whitespace?

chonglibloodsport , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

Haskell does both! Most people prefer to use whitespace when writing Haskell but it’s not required. Braces and semicolons are preferred if you’re going to be generating Haskell code.

_NetNomad , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...
@_NetNomad@kbin.run avatar

you'll pry my END command from my cold, dead hands...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines