(joke in the title stolen from a redditor)

Context: some Rust kid vandalized cppreference.com today.

95 points
*

That kid is an asshole because cppreference is doing the lordโ€™s work.

Also, I know that language choice is one of the most important decisions when starting a new project but, personally, I work on a highly performance sensitive project thatโ€™s written in PHP. If you think you need Rust to be performant or type safe then you donโ€™t really know what youโ€™re doing yet. It makes it easier and increases theoretical limits - that is all.

permalink
report
reply
25 points

I want to tell the computer what it should do, not what the computer things I can do. Thatโ€™s why I use scratch

permalink
report
parent
reply
19 points

I saw md5 checksum implemented in scratch.

permalink
report
parent
reply
11 points

There is also a whole OS written in scratch. A very basic one but still

permalink
report
parent
reply
8 points

I would like to hear more

permalink
report
parent
reply
6 points

I am happy to answer any and all questions.

permalink
report
parent
reply
9 points

Is this a new project that was intentionally started in PHP or something legacy? Any interesting benchmarks? Like minimal wire to wire network processing time and where the bottleneck is?

permalink
report
parent
reply
3 points

Is PHP strongly typed?

permalink
report
parent
reply
3 points

Itโ€™s a choice left up to developer but you can have static and runtime type checking enabled for as many functions as you desire. Theoretically you can have collection subtype checking but Iโ€™d say that PHP is still quite frail here as proper collection typing lacks any template-style typing but needs dedicated collection types.

permalink
report
parent
reply
2 points

then you donโ€™t really know what youโ€™re doing yet.

Can you elaborate on this? How are you guys making PHP so performant? Do you call C programs from it or something?

permalink
report
parent
reply
15 points
*

No, we just use good algorithmic approaches including an emphasis on lazy evaluation. Itโ€™d take out application like 20x as long to compute 2+2 compared to one written in C but computation in PHP isnโ€™t our main bottleneck - itโ€™s efficient network connection handling and psql query performance.

Our PHP code is maintainable and expressive that makes it much easier to tune performance where it counts.

permalink
report
parent
reply
57 points

As someone who learned a lot from C++ and that now loves Rust, this annoys me.

permalink
report
reply
41 points
*

An attitude Iโ€™ve seen a lot among software developers is that basically there arenโ€™t โ€œgood languagesโ€ and โ€œbad languages.โ€ That all languages are equal and all criticisms of particular languages and all opinions that some particular language is โ€œbadโ€ are invalid.

I couldnโ€™t disagree more.

The syntax, tooling, standard library, third-party libraries, documentation quality, language maintainersโ€™ policies, etc are of course factors that can be considered when evaluating how โ€œgoodโ€ a language is. But definitely one of the biggest factors that should be considered is how assholeish the community around a particular language is.

A decade or two ago, Ruby developers had a reputation for being smug and assholeish. I canโ€™t say I knew a statistically significant number of Ruby developers, but the ones I did know definitely embodied that stereotype. Iโ€™ve heard recently that the Rust community has similar issues.

The Rust language has some interesting features that have made me want to look deeper, but what Iโ€™ve heard about the community around Rust has so far kept me away.

I write Java for a paycheck, but for my side projects, Go is my (no pun intended) go-to language. Iโ€™ve heard nothing but good things about its community. I think Iโ€™ll stick with it for a while.

permalink
report
reply
28 points
*

But definitely one of the biggest factors that should be considered is how assholeish the community around a particular language is.

I think all of the factors youโ€™ve mentioned are extremely valid, but this is the one factor that I think should absolutely not count into whether somethingโ€™s a โ€˜goodโ€™ or โ€˜badโ€™ language. If Iโ€™m choosing which technologies to use for my next project, the question of whether it has a rude vocal minority in its community is AS FAR DOWN on my list as possible. Right next to whether its name is hip or whether their homepage is engaging.

permalink
report
parent
reply
19 points

A toxic community wonโ€™t help you in good faith when youโ€™re running into issues, and this makes it harder to develop using a language with a toxic community.

permalink
report
parent
reply
11 points

idk, how do I contact โ€œthe communityโ€ when I have an issue in the first place? All I know of is StackOverflow, and theyโ€™re honestly toxic enough to make me never ask questions there in the first place.

permalink
report
parent
reply
3 points

Documentation is not a community though.

permalink
report
parent
reply
13 points

Yeah, but the shittiness of a shitty community will come through in documentation that talks down to you and doesnโ€™t dain to explain things properly. And then when you go and ask a question because it wasnโ€™t well explained in the documentation and get derided for asking.

Fanboys are also likely to mislead (including in documentation) by downplaying caveats in libraries and such. Documentation can end up being more like marketing speak than technical reference.

You speak of โ€œvocal minoritiesโ€, but I donโ€™t think itโ€™s quite as simple as that. Languages have cultures around them. (As do lots of other things. Video games. Hardware devices. Car brands. What have you.) If a language has a toxic community around it, it might be an indication that the people behind the language may lack the ability or motivation to maintain a better community. Or worse, that theyโ€™re doing things that promote or attract the shittiness.

So, in short, I disagree with you. For one thing โ€œeverything about this language is great except its community is shittyโ€ makes me suspicious that maybe everything about the language isnโ€™t great and it has a really fanboyish community that likes to suppress any (even legitimate) negativity. Where I have to, I use the language I have to use, but when I have a choice, a shitty community is generally a deal breaker for me.

permalink
report
parent
reply
7 points
*

Rust documentation, at least for std is some of the best I have seen.

permalink
report
parent
reply
12 points

Pretty sure syntax is the only one that is even related to what a language is. All the rest are just ecosystem development primarily effected by popularity.

permalink
report
parent
reply
9 points

And the ecosystem affects whether when I run into an obstacle, I can google for 5 minutes to find the solution or whether Iโ€™ll spend the next three days trying dozens of incorrect approaches suggested by StackOverflow answers and random comments on language-specific forums and Wordpress blog posts etc. Whether you consider โ€œthe ecosystemโ€ part of the language or not, itโ€™s worth considering when choosing a language to work in.

permalink
report
parent
reply
3 points

Sure but, this isnโ€™t about the actual language. For instance I like Ada, there isnโ€™t a lot of public support for it and youโ€™re mostly left with the RM and GNAT manuals. But none of this is relevant to Ada as a language. Which was really all I was saying, you should probably split complaints about the ecosystem and the actual language affecting viability.

permalink
report
parent
reply
7 points

i cant imagine people thinking ruby is the best

permalink
report
parent
reply
5 points

Ruby is a really nice language especially when taken in the context of itโ€™s time. Curious why you feel it isnโ€™t worth being someoneโ€™s favorite?

permalink
report
parent
reply
1 point

its like python or lua but worse syntax and slower. we are not in the 90s anymore, i cant see any reason to use it unless working with a code base or library that already requires it. weakly typed interpreted languages are, imo, only good for certain applications, such as scripting or for beginners. why use ruby when lua or even python exist? i used to like ruby, btw, im not just a hater

permalink
report
parent
reply
4 points

Iโ€™d use ruby over python or JavaScript anyday

permalink
report
parent
reply
4 points

thats like decing whether to be punched in the face or kicked in the balls

permalink
report
parent
reply

Are you me? I know the joke is overused, but, seriouslyโ€ฆ that was a comment I would have written.

So wierd.

permalink
report
parent
reply
1 point

In my experience the actual rust community that youโ€™ll be seeing if you work with the language is actually incredibly nice and open minded. Itโ€™s got a lot of autistic people and other minorities who are more emotionally mature than a lot of adults. Rust people can be smug sometimes talking to โ€œoutsidersโ€ but once youโ€™re in the community the problem disappears

permalink
report
parent
reply
-4 points

Blaming others for your own shortcomings in being able to pick up a language is the same kind of behavior as some kid on League blaming everyone else on his team except himself for failing a match.

Stop letting a community dictate your use of effective tools, whether it be C++, rust, python, or air fryers.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments