skysight-inc/HackerNews huggingface dataset:
There are many decisions that you can make to improve the quality of your codebase. There is no a recipe that you can follow because each application is different but there are some general things that can make your life easier.

Here are some tips that helped me a lot:

- Keep your solution and tech-stack as simple as possible

- Mark those parts that can change often and try to make them configurable (when you have it configurable you don't need to change code and re-deploy every single adjustment)

- Make sure you have a good and readable logging

- Use DI

- Separate your application core application logic from the infrastructure part (DAL, Network Communication, Log Provider, File readers/parsers and similar)

- Keep your functions/methods clean and without side effects

- Method has to return something (try to minimize the usage of "void" methods)

- Split each feature or functionality you are working on into small pieces and compose the final thing with them

- Be disciplined about your naming conventions and code style
Just read the Economist.
The author noted that it was his fifth app, so it's likely that he had the knowledge and patterns/libraries/boilerplate etc. already in place.
Have you read Bash Pitfalls[1]? Do you write truly correct Bash/POSIX code? Do you still love it?

[1]: https://mywiki.wooledge.org/BashPitfalls
> I'm saying we didn't have a problem that Kubernetes solved.

So why did you adopted a tool you had no use for to begin with? Sounds like poor judgement all around, from the adoption to the complains.
I'd like to see how that would go.
> setting a repo

`git init`? Clicking create repo in GitHub?

> setting up project in the IDE

are you doing this stuff blindfolded or something?
So PowerShell then?
Exactly, people act like restricting access (or in this case voluntarily not storing something) will also remove all the surrounding information about it. I didn't need to read pro-slavery propaganda to know slavery is bad, and I didn't need to read every type of propaganda to know or learn how propaganda works.

Edit: Also this thread is full of people (including me to be fair) not providing any sources to whatever they feel is true.
so it will eventually run stochastic gradient descent faster than GPU?
The ONLY FREE application tracking software to help you grow
> It's mostly useless to declare a variable that cannot be assigned.

So all functional languages (where immutability is the default) are mostly useless?
You can add me to those interested in a pure POSIX shell bible. Whenever I'm about to write a moderately large script, I'm actively avoiding bashisms as they don't buy me much yet make my script unportable. But, given you've spent so much time on this subject, are there any bashisms that are truly essential and you don't want to live without?
My friends think I'm nuts for not having my tv connected to the network (I use my PS4 for all the offerings). It's just a default that people nowadays because it's convenient.
>without tax makes taxes invisible

Right, and that is the argument used against free tax returns in the US. They want taxes to be painful enough so that filing your taxes makes you think about them (and hence you would support the party that lowers taxes etc.)

Overall, this dubious logic will never go away.
all countries have that freedom. read the comment that i am replying to to get my context.
I'm totally fine with not voting at the state level. I don't think it makes any sense that I can vote in a state I don't live in, just because it was the last one I lived in before I left the country.

But if they're taxing me, I deserve a vote at the federal level 100%.
Ha ha, must have been swisscom? The salt unlimited, IME, was pretty unlimited. CHF45 (~USD45) per month unlimited.
Australia's digital divide set to widen for farmers
so, is javascript an interpreted language?
what about jits?
...or babel, for what is worth.

if languages are "compiled" why does both C and C++ (and also java etc...) need a "memory model"? bare physical address and real threads should be enough, no?

> Languages are a specification, and an implementation working together in perfect harmony, with absolutely no undefined behaviour at all, yes, keep walking now.

never talked about "quality" or "comprehensiveness" of the specs.
Just that languages are specs, not implementations.

Yes, in the real world you will use gcc, and you will learn that you write some text stuff and it will transform to an executable for you.

Still, why don't you use the right terminology?

The problem is that, if a book slip on this -- so basic -- definition, how good can it be on the complex parts?
The truth is - to be agile you embrace Waterfall if that's the best approach for the project/team/client. Agile is about being flexible and adaptable in your approach in order to get the job done.

Anyone who tells you it's anything specific is trying to sell you something.
Michael Jackson was making music before MTV even existed.

https://en.wikipedia.org/wiki/The_Jackson_5

He was 6 at the time.

MTV started almost two decades later.
That's a shame.

I've often wanted to know what viewpoints enemies of state have so I can get another opinion on things. Particularly a world-view as different to mine as ISIS would have been interesting. :(
Hunblebrag much?
Extensions you all need to be vs. Code Pro
I've had some ideas that have relied on scraping data from sources that don't provide an open API (and server-render their sites), and the scraping part has been a bit of a barrier - gotta say I'm amazed how easy it was using your tool. The UX was pretty intuitive also, I like that you've basically embedded a web browser, cos everybody already knows how to use a web browser!
well we're partly there: risc v
Viki includes this as a regular feature. You can leave comments on timestamps, and those comments flash at the appropriate time (if you have them enabled).
Forget the settings, just use http://old.reddit.com always :)
I stopped criticizing redesigns because i usually get over it, but the Reddit one makes the site at least 8x slower for me.
Please keep calm - there's no need to shout. If for no other reason, it's harder to read all caps.

We are not making the point you think we are.

We're all clear that if the bank can distinguish, they must refund legitimate cases, but that's not what we're trying to explain either. Responding to your last paragraph alone:

"I was talking about cases where the bank is not able to distinguish an actually fraudulent transaction from a legitimate one. Your response "but if they are able to distinguish them, they have to refund you!11" is just completely irrelevant to the point that I was making."

My response is not "if they are able to distinguish them, they have to refund you". It is "if they are _not_ able to distinguish them, they have to refund you".
I've started working on it here: https://github.com/dylanaraps/pure-sh-bible
That's not as easy as

cat something | grep "this" | cut -f 1 | sed -e 's/.../.../'

You end up writing too much code, it's very verbose. Some times symbols are what you want. In fact the biggest progress in the growth of Math happened when they tossed out doing math with words and bought in symbols.
Some PDF viewers have trouble with it.
Because they are real companies that we know and recognize and can compare the valuation to.
MJ must have had half a dozen albums, a movie or three, and half a dozen years of solo career outside the Jackson 5 - who he was singing with for about a decade - by the time MTV got around to launching. All the Thriller video did was boost sales of albums from the already-a-celeb worldwide. His celebrity was launched by being young, cute, and part of a very famous family. Basically being born into that family was enough.
Iatrogenics is a thing
Not just that. There's a long sequence on life in the young men's camp. The feeling is a lot like Woodstock. Or maybe a mix of summer camp and an idyllic version of basic training.

And the light show! Camp fires and torchlight! Huge insignia, and huge billowing banners. Very moving.
> Doctors don't know everything, and I'd venture that effectively no research on the effects of a cesarian on the baby's gut health was done before the procedure became widespread.

You’d venture wrong. The initial studies demonstrating flora differences date well over 20 years. It was in fact probably a pop science article in some mass media outlet poorly citing one of those papers that got the ball rolling for this seeding practice in the first place.

And did you bother to read the TfA? As mentioned there is no evidence that the biome is influenced by vaginal flora. So there is absolutely no new support for the value of vaginal seeding.

Doctors may not know everything, but many of us know what we don’t know which is why we don’t recommend seeding. There is no evidence that it works nor that it does any good. This new study only further supports this hypothesis.
Rant: Racist idealogies wouldn't be on the rise if it were easy to Google actual arguments against racism, but despite trying various search terms Google keeps failing. >:(
You're welcome!

The only issue I have now is that I've moved on to using Firefox. So, I can't really use this extension anymore.

I guess that sounds like another 'niche problem' that needs solving.
While I agree that Google is more powerful, remember that even if you or your friends don't use Facebook, many of the sites you visit do - so unless you've got pimped out tracking protection (which as a HN user you probably do, but maybe your friends don't!), Facebook still have a good idea where you're moving throughout cyberspace
“Money” is the abstract concept that allows one to do accounting “X owns me M money”, rather than “X owns me 3 cows and 4 sheep, but I own him 2 days of work”.

“Currency” is where one has (small, most of the time) tokens that represent money. The material used in such tokens can be worth the money it represents, as historically in gold and silver coins, but it need not, as in banknotes.
See https://jihadology.net/
Convincing americans to raise taxes and regulation on their own prosperous native tech industries is self destructive by nature. Neither europe nor asia handicaps their own tech sectors that way, which would give them a chance to be more competitive in global markets via siphoning off more of the united states tech market share, wealth and prosperity.
The spying is one thing, but you're right: SmartTVs doesn't make sense, because the software sucks.

If Sony, Phillips or some other manufacture made a SmartTV with software that rivalled the AppleTV, or even just a Chromecast, then it would make some sense to save the money from the AppleTV and buy a better TV.

The thing is that all of the SmartTVs I tried are slow and confusing. You're better off buying a cheaper TV and getting the $200 AppleTV HD.

If you factor in the cost of developing shitty software, then maybe there would be more profit in just release a new dumb TV.
A prominent example of this is the Treaty establishing the European Union where every single one of the 20+ language versions is "Canon" and has to be used by the European Court of Justice. There are often judgements with paragraphs devoted to figuring out the hidden differences between certain wordings in different languages. Interestingly this can lead to problems but sometimes it also clears things up if one language is more precise than the others.
Humblebrag is strong in this sentence. The post is full of it but this is the worst offender.
Just because I have a discount on my taxes (which is fair considering I don't use roads, public utilities, law enforcement services, emergency services, medicaid, or qualify for contributions towards my social security points) doesn't mean I don't deserve representation for the amount I pay over that discount.
it might give you the impression that you understand something when in fact you only learned how to follow a specific formula.

Learning to follow the specific formula by rote is a good thing.

For example you really should know your multiplication table up to 10 basically by heart. And the algorithms for doing basic arithmetic on large numbers needs to be practiced until you don't have to think about them. As should the algorithms for simple algebraic manipulation.

If you try to move on without having those and similar skills under control you will never get to the understanding part of mathematics since you'll spend all your time dealing with the mechanics of arithmetic.

What you need in math is lots of unique problems to solve, not repetition of the same equation with different constants.

Repetition of the same problem with different constants is how you learn to spot patterns and develop techniques you can build upon. Like if you find that f(x)=7, f(3x)=21, f(5x)=35, f(9x)=63 then you might spot a pattern that you can explore and that will make it really easy to solve the rest of the problems.
> Have you read Bash Pitfalls[1]?

I've read pretty much everything I could get my hands on regarding the shell (including the mentioned link) and I still love it.

> Do you write truly correct Bash/POSIX code?

If we define correct as passing shellcheck, avoiding all pitfalls and maintaining compatibility (POSIX sh not bash), then yes, I like to think so. :)

> Do you still love it?

Oh yeah! I've been writing a ton of POSIX sh as of late. My latest project being a Linux distribution: https://getkiss.org/

(hello from Firefox in KISS!)
You can very easily argue that Salesforce, by dealing with companies who do it, does all of the things that are forbidden by the license.
>I’m not entirely convinced it’s fair for non residents to vote, especially those that have no intentions of coming back

I think it would be fair to be able to opt out of tax filing obligations in the US and for that give up the right to vote until you return.
You wouldn’t be alone there either.
I dislike use of "nazi" as I can't tell whether you just mean white nationalist, eugenics promoting, expansionist, anti-democratic or anti-jewish views (or all of the above).

Next time could you indicate which things you are including in your definition the first time you use the word? It will also help prove you aren't just using "nazi" for its negative affect.
Unless you are a math prodigy, drills are paramount to understanding the concepts, especially before about high school. Almost no one needs deep understanding why three and four make seven, or why long division works. But if they cannot call upon these elementary tools on demand, in an instant, they will be flummoxed in later math classes. Hence, drilling until they've nailed it.
I like to use curly brace jump shortcut and interactively debug my code and other's code to avoid being too picky about this stuff, unless you have to stick to 80x24 kernel surface ;P
The article does mention the 17. August 2017 event just not under the GW170817 name. From the article:

> They point out that the collaboration initially registered the event as a false alarm because it coincided with what’s known as a “glitch”.
And for a kid growing up, those nights are required for development of the brain by resting. Delaying the night rest with "learning" would be ineffective and might even hurt development.

I instead put my time at midnight programming and such, as most people on the IRC channel were online at that time for me...
And the have this subtle dystopian message on each one

"Waste Please"

https://www.google.com/search?safe=active&q=Waste+Please+Dis...
and we don't answer out names to unknown phone calls made by our friends :P
> Do your work, don't expect anything in return. Because when you do, your work gets corrupt.

This translation doesn't seem to cover the familiar, deeper meaning of the passage. The term कर्म (karma) can refer both to work/action as well as to the principle of cause and effect (that the word 'karma' more commonly represents). My understanding is that it really talks about the purifying effect on the mind of doing your duty without expectations of being rewarded. A bit like Bushido.

This is not duty in the sense of solving your own problems and taking risks as an entrepreneur. It is more about doing the job that society (the very rigid caste-based society that is the context here) has laid out for you. The subject of the speech was Arjuna. Krishna, the speaker, was reminding Arjuna that being born a warrior it was his duty to fight in the war that he didn't want to fight in, even if it meant slaughtering his cousins who were on the opposing side.

Seen in its original context, it doesn't quite mean the same thing as what GP said.
I am curious to see what ISIS propaganda is like, but I am scared to dig about looking for it for fear of being put on a watch list.
Cisco Offered $7B-Plus for DataDog as Company Prepares to IPO
Like Sonos did. And I did what you said. Into the trash can.
> What, even approximately, is the rate of retraction?

On RussiaGate? pretty high. On the Covington MAGA-wearing kids? A lawsuit. But naked numbers means nothing. We agree that trump tweets a lot of nonsense, if he were to add 10 time more tweets that were true it would not dilute the nonsense of the others.

> That main witness "bombshell" is not remotely what is written in the NYT. It is what Fox news _says_ the NYT

I read the NYT article (do not remember the exact wording, but I have never opened the fox news one) and the clear picture was that they were reporting the content of a book and that the book was reporting that as facts; what I criticize in the NYT article is the omission about the witness apparently not remembering the story (an omission they had to correct indeed).

(As a philosophical aside: I do not want to convince you that "the mainstream media lies", that is not a proposition to me, in the sense that I do not know What a proof or disproof looks like. What I am trying to do is to point out the viewpoint of your outgroup.)
Ah, the difference between RAM: and RAD: on the Amiga. Nice. :)
I came up with translation. Duty is the better word instead of work.
I think the reverse is also more common. Drug get pass the "causes no harm" phase and they start putting it into everything. Recently I've seen glue used as both spermicide and in eye drops.
I think we need to separate which age groups we're talking about. What works best for a 16 year old might not be the best solution for an 8 year old.

As a parent of a younger child I think homework is a good thing because it makes it easy for me to track my daughters progress in the different subjects and gives a natural venue for me to sit with her and help her with whatever she might need help with.
Nothing I've purchased matches the level of outright disgust I feel for the Kindle and it's ads.
It's the cost of the last mile, and the difficulty and expense of running those wires.
I find that those who lie at that critical intersection of high intelligence and extreme laziness tend to get into programming. Perhaps it's the appeal of machines that can do your homework for you.

Anyway, that's why they end up making webshit for Facebook and not building rockets, curing cancer, or solving tricky economic problems for the President. Those jobs go to people with the sitzfleisch to do their homework.
It makes me sad that features are now paid apps. Imagine if every tool in GIMP was a separate app.

This app should be a feature of a default Paint-like app.
I do have a 32-bit device (Asus T100 netbook/transformer) that I use regularly enough for it to be a 'daily driver', especially when I travel.

But I'd be OK with this limitation :)
cygwin

you can build also with gcc for cygwin, but you introduce a cygwin.dll (not sure about the name) dependency.
I think it's funny actually. It's probably a good parallel to human nature. We want to see big attractive signs and believe there are no fine prints and even if they're here most won't really read them.
200k people applied for jobs at Amazon in a single week
> You can add me to those interested in a pure POSIX shell bible.

I've started working on it here: https://github.com/dylanaraps/pure-sh-bible

> are there any bashisms that are truly essential and you don't want to live without?

The only thing I'd say I miss when writing POSIX `sh` is arrays.

I work around this by using 'set -- 1 2 3 4' to mimic an array using the argument list. The limitation here though is that you're limited to one "array" at a time.

The other alternative I make use of is to use "string lists"
(list="1 2 3 4") with word splitting.

This can be made safe if the following is correct:

- Globbing is disabled.

- You control the input data and can safely make assumptions (no spaces or new lines in elements).

While it's something that'd be nice to have, there are ways to work around it.

EDIT: One more thing would be "${var:0:1}" to grab individual characters from strings (or ranges of characters from strings).
Under reporting is possible to some extent everywhere, that doesn’t mean that paying taxes is “optional”.

Hidden money cannot be spent and as soon as it surfaces you would have quite some explaining to do.
I definitely will. Still, the article was written last year and I've been hearing that the gold rush is over since way before 2015.
Hearts and minds are not fixed. People can be recruited and radicalised. For every one person who'd do this stuff on their own there's a hundred who do it because they think it's popular.

> the paper trail can be long and damning - making it much easier to convict them

This usually comes out after they've carried out the mass shooting.
The main issue is that in the US, you have to be lucky enough to work at a company that is generous with things like taking a day off. ou have to be lucky enough to get paid vacation, that they are covered by FMLA, that you might get any pay at all when you are sick. Your drawn-out divorce proceedings and child custody hearings might cause you issues with your job because of attendance. And so on.

This luck is spread out: Call centers are notorious for having brutal attendance policies. Some retail places have decent policies for vacation. Even if you get vacation, you might not be able to take it as you please, regardless of notice - no 2 week trips to Europe for you. And so on.

Just because you've not worked at these places doesn't mean they don't exist or that they aren't peppered across the states.

The reason for this is because unlike in other countries, these things are not encoded in laws. If you are lucky, you don't live in a right to work state or have to take low-paying jobs. These increase the chances of not having some of these things.

Where I'm at now, there are laws about this stuff. I had to take time off from a temporary factory job because I broke my elbow. It Was Paid. McDonald's workers get the minimum legal vacation (4-5 weeks, I can't remember) and get the same sick day benefits as an office worker. Parents get extra time if they need to take care of their young child - how much time depends on things like age of child and if you are the sole caregiver or not. Every woman gets maternity leave if they have a child and no one is going to be stuck to an employer because the health insurance is good and someone in the family is sick.

Oh, and by the way: I'm american and now live in Europe. It is pretty easy to compare these things that I now have a right to but didn't in the US (indiana). Might talk to some of your countrymen in different walks of life to better understand what is going on under your nose because it seems to me that you are quick to dismiss people's experiences elsewhere but are blind to the ones around you.
I completed a lot of Xbox games..
> That's not as easy as

> cat something | grep "this" | cut -f 1 | sed -e 's/.../.../'

Literally none of this is actually useful if you're already in Python:

(
line.split('\t')[0].replace(…, …)
for line in open('something')
if 'this' in line
)

> You end up writing too much code

I can believe that if you're calling to external processes to perform operations which are pretty much trivial in the language.