Readit News logoReadit News
kalcode commented on Will Carbon Replace C++?   semaphoreci.com/blog/carb... · Posted by u/redbell
TheRealPomax · 3 years ago
The article is about creating a potential successor to C++ in the same way JavaScript lead to TypeScript, or Java lead to Kotlin, or C lead to C++, and in giving those examples immediately undermining its own thought because none of those replaced the thing they came out of. Heck looking at whose still writing new code bases in what, C++ didn't even replace C, and Swift didn't replace Objective C. C++ and Switft just became "more dominant".

So based on the article's own observation: no, of course not. The more interesting question is "will it stand on its own?" to which the answer is "only if it actually solves so many problems with the thing it's trying to supplant that it makes sense to give it a serious try".

And C++ just... doesn't have that many real problems. It has a lot of irks, but the problems people run into are problems that others already solved, a thousand times, over the last half century, in many different ways for many different iterations of the language.

Pretending you can replace C++ is like pretending you can replace cars. Not just "create EVs" but straight up replace cars. Good luck, you won't succeed if that's your goal, so hopefully you realise you need to focus on making a decent language that some folks might consider using instead of C++ for some of their work, instead of creating "the successor to C++".

kalcode · 3 years ago
> So based on the article's own observation: no, of course not.

This had very little to the discussion. Of course it can't be replaced. Code is created by humans, and as long as we have opinions nothing gets truly replaced. Just decreased usage over time.

> C++ and Switft just became "more dominant".

Yup, like this. Of course a general statement is no.

I have very little interest in this topic. But I seen this SAME comment a million times on anything thats new that attempts to challenge something. And as usual whether something "dethrones" something is less interesting than what changes or ideas that it offers.

Just like ALL those you listed, they didn't replace any of those, but they definitely challenged the ecosystems, or improved the old ones.

Naunce discussion is far more interesting.

For example, why do you think Carbon won't be able to gain dominance over time? I mean I think thats a huge hurdle too.

kalcode commented on Companies ran an experiment: Pay workers their full salary to work fewer days   npr.org/sections/money/20... · Posted by u/akeck
mouzogu · 3 years ago
why would a company agree to pay the same salary for fewer hours of custody?

it reminds me of the macchiavelli quote:

> “How we live is so different from how we ought to live that he who studies what ought to be done rather than what is done will learn the way to his downfall rather than to his preservation.”

productivity study is interesting but that's not how the real world incentives are aligned.

kalcode · 3 years ago
I get it is a strange idea. But putting a quote that doesn't really have any substance isn't really an argument nor adding value against it.

I think the idea of 4 days work week is asking to work outside the box for a moment on what benefits this could entail for different industry.

> To work all week is to surrender your will, working less is the core of motivating man

(see this quote disagrees!)

kalcode commented on Using your phone as a software development platform   aista.com/blog/using-your... · Posted by u/polterguy1001
chrismorgan · 3 years ago
I’m seriously confused about Aista. After https://news.ycombinator.com/item?id=32618797 a couple of days ago which is an absurd and utterly groundless criticism of GraphQL (and there seems to be a follow-up post now which I find even more baffling), one user there suggested the whole thing was trolling, and looking through a handful of other articles on that site I became more inclined to accept that the whole was a parody because so many of them are so extreme to the point of absurdity and caricature, and that the product almost epitomises some of the sorts of problems the articles are complaining about, and various other popular insanities in the software world (like inventing yet another pseudo-declarative probably-mostly-imperative programming language in YAML—so passé).

But… there also looks to be an awful lot of work gone into it, and it seems like it’s actually a real thing, that people use to do real stuff? And you have articles like this that seem serious and realistic? I just don’t understand what’s going on.

Yours sincerely,

Honestly Confused

kalcode · 3 years ago
The way that company has posted blog where they seem to have complete lack of understanding what graphql is and their comments on dev.to show a huge amount of disrespect.

The blogs posts comments themselves shows the company's author of these seems dense, rude and unknowledgeable in what they argue. Which also means their product they are making is likely being made by the same mindset.

Definitely wouldn't trust them.

It seems also like a ploy to get attention, which is definitely gonna keep me away from their product.

Seriously, check out these comment section. It's like they posted about something they have no clue about and then are gonna defend it to their grave regardless if they are wrong.

Wait until some security flaw comes out and this attitude makes them unwilling to admit they are wrong. Gross.

https://dev.to/polterguy/oop-a-software-development-mass-psy...

https://dev.to/polterguy/graphql-is-a-hot-smoking-pile-of-ga...

kalcode commented on Microservices and the layers to watch for when architecting your system   infoq.com/articles/consis... · Posted by u/mulkave
intellisense · 4 years ago
Agree but I believe the distinction is that in GraphQL this is part of specification to address overfetching/underfetching issues.
kalcode · 4 years ago
That is more related to the frontend, the frontend doesn't have to overfetch data.

But the graphql still will fetch that data and just filter what does out, it still has to get that data.

Example is a query like

``` { currentUser { id name todoLists { title items { name } } } } ```

The resolver will likely get the whole user object from the database, then just send name and id. Then when it finished getting the user, it will then query for the todo lists, and then only send the title (even though it got the whole row for each todo list), then after it fetches those lists, it will query for the items. And retrieve the whole rows of each item from the database.

The data the server needed to fetch didn't change, just what the frontend receives. It is still loading and fetching all the data on that query and then graphql filters the results leaving the server.

Also in the above steps, you notice it queries AGAIN after a data set has been retrieve, this causes an N+1 problem.

It is not inherent in the specs or implementation that fixes these. If you want to avoid fetching the whole object you will need custom code, and to avoid N+1 problem, you need batching of data within requests that "caches" or consolidate nested requests like data-loader, and some form of response caching to help with these issues.

Not siding against the tech, just clarifying those cons.

kalcode commented on Rust: Enums to Wrap Multiple Errors   fettblog.eu/rust-enums-wr... · Posted by u/jasim
dmix · 4 years ago
> More specifically, the the `#[derive]` attribute on the enum lists which procedural macros to execute (Debug and Snafu here).

Yep I've used Rust before...

It's still like putting comments above your functions.

kalcode · 4 years ago
> It's still like putting comments above your functions.

If you're used to a certain language then sure that makes sense. Your comment seems like you are boxing yourself in, limiting yourself to just what makes sense in Javascript, very opposite of a programmer who looks to improve their craft.

Take a moment and think about that. Because it looks like Javascript comment...you only see it like that to a point of making this statement. There is a lot of ways different languages uses tokens/symbols to indicate something. Not everyone agrees what those symbols are used for. Some languages use it to define macros like C++ or preprocessor directives like C#. Some as comments JS/Python/. Some as like Java nothing.

Because the languages you use are use to it, and the language you use doesn't use something similar, it looks "wrong". That is in itself a narrow view.

I think you should question that kind of thinking, I believe it will be helpful.

kalcode commented on Why Is the Human Brain So Efficient? (2018)   nautil.us/issue/86/energy... · Posted by u/rcshubhadeep
ResidentSleeper · 6 years ago
Whether or not it's comparable depends on the level of distinction you're trying to make. Obviously, CPUs don't think or experience the world (but on the other hand that kind of "feature" seems increasingly likely to be implementable in software, even if our current CPU architectures are rather unsuitable for that goal). However, if we're gonna talk about energy efficiency and computation performance, now that it has become evident that the brain is merely a kind of a computer, we can definitely look for parallels.
kalcode · 6 years ago
> now that it has become evident that the brain is merely a kind of a computer

I am ignorant in this area. But I keep reading how brains are nothing like computers the more we learn. Your statement seems to suggest otherwise and id love to read about it. Can you drop something where I can start exploring about how the brain has become more evident that it's merely a kind of computer? Thanks!

kalcode commented on Ban kids from loot box gambling in games   bbc.co.uk/news/technology... · Posted by u/MarcScott
input_sh · 6 years ago
They can't be traded for legal reasons. If you were able to trade them, that would mean they'd have monetary value. As such, they'd be a nail in the coffin of labeling loot boxes as gambling.

A quote from the report[0]:

> At present, the Gambling Commission states that purchasing loot boxes does not meet the regulatory definition of licensable gambling under the Gambling Act 2005 because the in-game items have no real-world monetary value outside the games.

They later reference this written evidence[1] that suggest that such legal framework is too tight and needs to be broadened.

[0] https://publications.parliament.uk/pa/cm201719/cmselect/cmcu...

[1] http://data.parliament.uk/writtenevidence/committeeevidence....

kalcode · 6 years ago
Pretty important point for how far we should regulate something.

I think the gaming community would want loot-boxes completely banned under the guise of "gambling".

The individuals that would spend an unhealthy amount on these loot-boxes are not individuals that will stop their behavior if lootboxes are banned or even regulated.

These individuals have know that you can't get your money back, you can't earn more money and you can blow your life savings on it. With no return promised, monetarily, these individuals know the money they spend can't be gambled back. Thats the crux of gambling and their laws. People truly believes one more bet and they can get it all back.

It's insane if a person on Overwatch or Fortnite truly believes the money they waste if beyond their budget is a good investment at all. That problem lies with the individual not EA and loot boxes.

Those people will have constant issues with their finance until they seek the help they need to stop. That could be learning better budgeting behavior to identifying they have a gambling problem.

That could be a gambling impulse but really we know people that constantly spend their money carelessly regardless of some mental addiction. A lot of people lack of financial control shouldn't create laws to dictate to companies what they should do, especially in a market saturated with competition that don't deploy any of these practices simply because these people refuse to follow a monthly budget thats within their means.

We don't remove things from society just cause others have difficulty with it. Now I have no issue with more regulations especially targeted at kids, but let's be honest here. Most of this should still fall on parents and education. Companies caught pushing to sell these random loot-boxes to kids should be addressed and fined. Especially the ones that use streams that buy these boxes and open them with kids audiences. These companies that sponsored these streamers should receives fines for targeting kids. Also like to see some form of guarantee or odds exposure.

Long rant, but I find the fact you can't get monetary value back makes it extremely different than the current types of gambling and should effect the way we regulate it. End of the day, when no monetary value can be extracted we are regulating random chance and rewards...silly path to go down to call anything random and rewarding essentially gambling.

kalcode commented on None of my projects want to be SPAs   whatisjasongoldstein.com/... · Posted by u/thequailman
kerkeslager · 7 years ago
Okay, but that's an even worse idea than what I've seen Redux used for. Now you're splitting the UI between client and server in a completely custom way, that adds even more complexity. Worse, the performance is likely to be worse because now you're paying the bulk JS load cost of loading Redux AND the latency cost of loading small parts as you go: the worst of both worlds. I doubt this is what the Redux folks had in mind, but if it was, it's even worse than I thought.
kalcode · 7 years ago
>because now you're paying the bulk JS load cost of loading Redux

Gonna have to quantify that. Cause I imagine if you did, you'd redact that statement. Redux is a very straightforwards and SMALL library that handles global state.

Its concept can be difficult to follow at first which may cause some to think it way more complex under the hood than it really is.

kalcode commented on YouTube CEO says EU regulation will be bad for creators   theverge.com/2018/10/22/1... · Posted by u/anastalaz
kibwen · 7 years ago
This is rich. Every YouTube creator that I follow has at least one video whose purpose is to rail against YouTube's mystifying demonetization policies, their trigger-happy DMCA policies that aggressively favor major copyright holders, and their opaque and useless litigation process. Here's one for reference: https://m.youtube.com/watch?v=bGZ_a6gL0f4 . Listening to the CEO of YouTube cry "but think of the content creators!" is about as transparently self-serving as a US politician crying "but think of the children!"
kalcode · 7 years ago
I don't think peoples complaints of YouTube are invalid at all.

But I think it is interesting how much credit these people that monetize YouTube don't give google at all.

Video hosting has always been expensive comparatively. They are large files. You tube stores multiple resolutions of your files.

YouTube hosting your video is free. You don't pay for it. These people that are bringing in $500 - $4,000 crying that 'youtube isn't giving me all my money' seem to also have a sense of entitlement in itself.

YouTube has a relationship with its creators. Creators get free video hosting, a video social platform and they can earn quite a bit of money doing it. YouTube in turns get a portion of the ad money too.

When YouTube demonetizes something they lose money too. They know their system can hurt their bottom-line in the end.

Understanding this is a business relationship between the two entities would probably make their attempts more professional. Maybe open a business that represents a large sets of these YouTubers instead of each one make a video about it. That way their collective views are significant chunk and they can apporoach YouTube as a professional entity.

Instead they post drama videos about it.

kalcode commented on Freedom to fail – or managing to succeed?   international.brandeins.d... · Posted by u/matt4077
soneca · 7 years ago
Why Broken Age is in that group?

I think it had a much lower expectation to start with, but also the delay to launch wasnt absurd and the end product is quite good in my opinion. Also, it was a comercial success for its niche.

kalcode · 7 years ago
Broken Age from start to finish took less than three years to make and went over-budget but still managed to complete the game by creating the two parts into chapters to get early sales outside the original kickstarters.

People who have never managed or been part of managing big projects with deadlines don't understand that. They see the above as a failure rather than obstacles that they succeeded in getting over and releasing a moderate to good game.

u/kalcode

KarmaCake day237May 1, 2017View Original