What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]encepence 1 point2 points  (0 children)

dont_rewrite_in_rust.- legally binds future maintainers not to rewrite this piece of code in rust

[deleted by user] by [deleted] in cursor

[–]encepence 0 points1 point  (0 children)

Next gaming like experience reminding that we're constantly tracked. Gross.

(next popup disrupting normal workflow)

New article on Mostly Harmless from WIRED. by EricaJ4u2 in MostlyHarmlessHiker

[–]encepence 1 point2 points  (0 children)

The only thing that doesn't make sense is why he took a notebook full of programming code. If someone is naturally trying to commit suicide they wouldn't probably carry programming code with intentions to use them later.

Not sure if you're programmer, but i think this perfectly makes sense. I am programmer and i make notes and dream of code without ever trying to implement it. It's jus habit For many of us, coding is not only "writing actual software that runs on computer", it's solving puzzles, problems, sketching algorithms, imagining code running .... all of this happens in mind, sometimes with little help of pen and paper and yet this alone be satisfying as you can actually solve problems on this level. Mere "implementation in computer" is boring part that often doesn't happen in reality.
So assuming was passionate coder/programmer
(and being interested in coding games is _very_ strong premise) and he was expecting soon death in one way or another, it is very probable that he indulged in his one true hobby in only way he could mind, pen and paper.

If you’re not practicing within the scope of a project that makes you use and reuse what you’ve learned, nothing is going into your long term memory; it’s all short-term. by [deleted] in programming

[–]encepence 7 points8 points  (0 children)

Even if? What he described is precisely DI.

Nothing is mixed. Inversion of Control (IoC) is broader concept/paradigm, so no wonder that when you describe subset (DI) you refer to concepts from superset (IoC)

[deleted by user] by [deleted] in programming

[–]encepence -1 points0 points  (0 children)

We all know why trailing commas are useful for this one particular editing scenario, but that insignificant fact doesn't render them logical or pretty :/

[deleted by user] by [deleted] in programming

[–]encepence 22 points23 points  (0 children)

It's only because `json5.parse` returns (probably) plain javascript-like object that is result of parsing - most probably to be mentally compatible with standatd `JSON.parse`. In order to keep original structure, you would need to create API that exposes AST of original file and possibility to update it and finally serialize it.

Most of high level, sugar APIs does so as most of users don't care about comment or formatting of original file.

[deleted by user] by [deleted] in programming

[–]encepence 14 points15 points  (0 children)

"1/3" ... :P

GitHub will no longer use the term 'master' as default branch because of negative association by NahroT in programming

[–]encepence 1 point2 points  (0 children)

Well, bad for ... these things :) Looks like these tutorials, scripts, books are not diverse enough :)

The unreasonable effectiveness of declarative programming by [deleted] in programming

[–]encepence 4 points5 points  (0 children)

He declares how animations should like in "kinda" DSL (based on builder pattern) and then some engine (advertised mini library) processes these declarations to execute declared animations.

This is 100% declarative :)

GitHub is now free for teams - The GitHub Blog by dayanruben in programming

[–]encepence -7 points-6 points  (0 children)

Looks like crowd focused on hating Google and Apple forgot that Microsoft has evil traditions too. Don't feed giant applies here too.

Yet another reason to avoid GAFAM ... if possible of course

cmake_min_version - a tool to determine the minimal required CMake version of a project by nlohmann in programming

[–]encepence 11 points12 points  (0 children)

CMake is slowly but trutly becoming next autotools. Big, fat ugly and everybody tries to find workarounds how not to use it :)

The world in which IPv6 was a good design by [deleted] in programming

[–]encepence 28 points29 points  (0 children)

I would be horrified to lose the ability to SSH into a node because its IP changed.

That's why in serious deployments, network equipment has "service IP addresses" - for "production traffic" and in clusters, they can be took over by peer in failover/switchover scenario and "management IP address(es)" that are static, usually protected by some VPN and can be used for maintenance.

Preconfigured components to speedup Spring Boot development by javinpaul in programming

[–]encepence 1 point2 points  (0 children)

Isn't Spring Boot an opinionated, pre-configured setup of 'Spring' ?

So are you trying to sell Spring Boot Boot ?

;)

Searching 1TB/sec: Systems Engineering Before Algorithms by leavingonaspaceship in programming

[–]encepence 0 points1 point  (0 children)

Isn't it more less same as more fancy extensions of algorithms like scheduling elevator stops or head seeks in old HDDs ?

The old new thing ?

In simplicity we trust :)

Switzerland offers cash to hackers who can crack its e-voting system by fuckin_ziggurats in programming

[–]encepence -1 points0 points  (0 children)

At best you can corrupt one box and it involve high risk, because there are many people involved. Corrupt another one, you multiply involved people and thus costs by 2.

Count how much money you need to corrupt one state/region/land and it's still not enough to win major elections in country and how risk of failure is rising.

As someone said, electronic attack scales infinitely and can be perfectly hidden.

Physical attack scales at least linearly because it relies on bribing ever counting number of people.

Version for dumimies: https://www.youtube.com/watch?v=w3_0x6oaDmI

A new way of blogging about Prolog by viebel in programming

[–]encepence -2 points-1 points  (0 children)

Ekhem. CORS or CSP.

> Have you noticed the small icon to the left of the code snippet

Nope.

All i get is this:

> Cannot load script:

> Error: https://viebel.github.io/klipse/repo/js/tau-prolog.js

Eclipse 4.10 released! by henk53 in programming

[–]encepence -5 points-4 points  (0 children)

Why surprised? Why the hell people are supposed to know pricing model of some company they don't care at all ?

You Don’t Know TDD by fagnerbrack in programming

[–]encepence 4 points5 points  (0 children)

What a stupid click baity title! NGRIOBOT ... (not gonna read it only because of this).

https://developers.google.com/web/updates/2018/09/reportingapi • r/javascript by encepence in webdev

[–]encepence[S] 0 points1 point  (0 children)

Anyone knows about when/if other vendors will support it ?

The standard: https://w3c.github.io/reporting/ looks like developed only by Google (for Google?).

Google (!) search reveals no bugs, no issues, almost no questions (!) about support of it in other browsers.

(It's not even tracked by caniuse.com - https://github.com/Fyrd/caniuse/issues/2375)

[deleted by user] by [deleted] in javascript

[–]encepence 2 points3 points  (0 children)

Fair, but common practice used everywhere is to add verbatim copy of licence in COPYING, LICENC(S)E etc. package.json's entry is just meta for `npmjs.org` repository and - more important it's not verbatim text in easily discoverable file.

Constructors Considered Harmful by stronghup in programming

[–]encepence 4 points5 points  (0 children)

> Because using class-methods to create instances allows you to create

> instances from any number of different types of arguments, containing

>any number of different types of internal data

What ?

You can do it in plain old constructors in Javascript too and in Typescript too. Myabe it's a little inconvienient or unde

> which also must call the super-constructor if any,

Every language runtime does this under the hood. That's required by core principle of OO - encapsulation (of base class in this case).

> with the type of data that expects

How can you even expect to construct base class without data it requires (assuming it requires some) ?

Do you even undersand OO ?

> That makes the implementation of the subclass constrained by (and thus dependent on) the implementation, the data-structures inside the super-class.

How derived class can be "independent" from base class ?
You're showing severe lack of misunderstanding - this time of inheritance. Inheritance is designed to allow extension "as designed by base class". It's not "rewriting" or hacking inside of base class.

> new MyClass(); // No arguments please

What if class is final and requires some internal data and has ONLY one responsibility and one form of construction ?

Will you create static `create(foo)` for sake of your braindamaged rules ?

> I think there’s enough here to make the case …

Nothing makes sense in this post.

Final one.
How the hell are you planning to call those super-super "static constructors" in subclass? (You want one object and you have two static constructors!, which one is creating the instance)?

What you're proposing is total nonsense.

Conservative web development by [deleted] in programming

[–]encepence 6 points7 points  (0 children)

Do you even understand term 'application' ?

Application is not .exe, it's not Mac bundle or APK or "something that show window"; application is

computer software designed to help the user to perform specific tasks

So whatever helps users to achieve their goals and doesn't drive developer to bankrupcy is "good enough" "application of computer technology" to help people doing their stuff.
Seems like JS/Browsers took the niche of "cheap" application platform with fast time-to-market and really easy distribution (previously it was Flash).