News for hackers. Stuff that matters.

anothergoogler

Yes, I know. That doesn't make an assertion about the "pitfalls" of `self` less muddy. It's literally a variable. It's a code smell too, but that's another conversation. Are we calling out variables in JS now? Maybe we should just hold ourselves to bootcamp standards, copy and paste StackOverflow or something like that. Programming is hard, etc.
Good luck doing OOP in JS without `this` with minimal contortions. And to be clear, there is no `self` in JS.
Not with such confidence to say things like "we are in the early days of decay."
What's it like being able to see into the future?
You sincerely believe that tax revenue would be lost to waste and graft with no benefit to the poor? Higher taxes sting me as much as the next USAer, but I think you're being obtuse.
Re:If San Francisco Is So Great, Why Is Everyone I Love Leaving? on Wednesday December 26, 2018 @10:55PM (#18767167)
If you're commuting in a Lyft/Uber, you're part of the problem. That aside, for better or worse, most of us city-dwellers are numbed to shocking! displays of hard drug use.
Re:Ruby 2.6 on Monday December 24, 2018 @04:28PM (#18754367)
I'm talking about the flat namespace.
Re:Ruby 2.6 on Monday December 24, 2018 @01:13PM (#18753369)
Clojure's stdlib is unintuitive, and `into` is the poster child.

It's easy to find what's available in Ruby: https://ruby-doc.org/core-2.5.3/Enumerable.html

Good luck with Clojure: https://clojure.github.io/clojure/clojure.core-api.html

Re:Why American cities are weirdly shaped on Sunday December 23, 2018 @11:50AM (#18747043)
Your kids might learn to spell an un-American name like Kwame if you raised them around those scary poor people.
Re:Slack 'bans users' who have visited US sanctioned countries on Thursday December 20, 2018 @07:25PM (#18730509)
The State Department is a Slack user so there's that. https://apps.gov/products/Slack/
Re:The Case Against Marzipan on Thursday December 20, 2018 @07:15PM (#18730454)
As an antimarzipanner I was hoping to learn that its production harms the oceans or something along those lines.
Re:Google AMP case study: leads dropped by 59% on Sunday December 16, 2018 @12:20PM (#18693969)
As user I dislike AMP because it adds a JavaScript requirement to read articles that don't have any JavaScript. There, I said it.
Re:Don't use the greater-than sign in programming (2016) on Sunday December 09, 2018 @11:06AM (#18641477)
Eventually, cognitive decline will win the day and I will be confused by simple use of conditional operators. Until then, I'm with you pal.
Re:Terminals Are Sexy on Sunday December 02, 2018 @05:16PM (#18584925)
Yea but it's written in JavaScript.
Re:Terminals Are Sexy on Sunday December 02, 2018 @05:10PM (#18584900)
Out of curiosity, for how long have you been using Linux as a daily driver?
Re:Terminals Are Sexy on Sunday December 02, 2018 @05:02PM (#18584856)
Re:Oracle Will Charge for Java Starting in 2019 on Sunday December 02, 2018 @02:20PM (#18583955)
Six month old blogspam, but all it takes is a baiting title to hit the front page here. Hurr durr Oracle, hurr durr Java!
I don't want somebody shooting for any reason on the BART.
> Instead of a well-designed data store, OOP projects tend to look like a huge spaghetti graph of objects pointing at each other and methods taking long argument lists.

Uh, what? FP projects are the ones with crazy argument lists, has OP even heard of the Law of Demeter? Does FP magically prohibit a huge spaghetti graph of functions and ad-hoc types pointing at each other?

> The main point is: just because my software operates in a domain with concepts of eg. Customers and Orders, doesn't mean there is any Customer class, with methods associated with it.

What an observation, it's all a bucket of bits so why name anything? Rub your hands together, mutter an incantation and voila, software without all that obnoxious structure!

Re:Bitcoin crashes through $4,000 on Saturday November 24, 2018 @07:18PM (#18524653)
And to think, one year ago we had the fad of Bitcoin Christmas gifts. I know some intelligent people in tech who bought into BTC and ETH around then. Sub-$1k BTC by year's end is a real possibility.
Re:Why Aren't There C Conferences? on Wednesday November 21, 2018 @07:26PM (#18507132)
Please don't project your narrow viewpoint onto PL communities.
Disagree, most employers are so desperate for somebody who can show up every day and throw some code together that they will make all kinds of excuses for the candidate. Plus most interviewers know jack and are easily impressed. That said, everybody has their own understanding of "entry level." I think the market is great for entry-level/junior developers, and glutted for true senior developers. Most companies have no need for somebody's 10+ years of real experience so the ceiling is quite low, and you are "senior" after a few years.
We're gonna need some examples here. One person's fizz-buzz is another's constant-time radix tree with one register and vice versa.
Re:The problem Bitcoin solves on Sunday November 11, 2018 @03:02PM (#18428245)
2013 called, it wants its hot take on "digital gold" back.
Re:Avoiding race conditions in Swift on Sunday November 04, 2018 @05:26PM (#18378388)
You have it backwards, it's the caller's bug if they assume order in an async process.
Talk about bad writing! I guess you need to write things like "molten vitriol" to get your point across when every sentence is hyberbolic. Some journalists need to learn that turning it to 11 isn't a legitimate approach outside of tabloids. Maybe Kotaku is a tabloid though.
Re:Oceans warming faster than anticipated, study finds on Wednesday October 31, 2018 @09:16PM (#18350694)
The lede is buried at the end of the article:

> Much of the data on ocean temperatures currently relies on the Argo array — robotic devices that float at different depths, surfacing roughly every 10 days to transmit readings to satellites. There are about 3,800 such pieces of equipment in waters around the globe that provide the publicly available information...

> By comparison, Resplandy and Keeling calculated heat based on the amount of oxygen and carbon dioxide rising off the ocean. Filling round glass flasks with air from research stations in the Canadian Arctic, Tasmania and La Jolla, San Diego, researchers analyzed the samples to determine the aggregate temperature of the ocean.

On what grounds is three samples of a novel measurement preferable to a few thousand direct temperature measurements? I mean in terms of reliability, not ability to generate clicks.

Re:JavaScript is now required to sign in to Google on Wednesday October 31, 2018 @08:15PM (#18350386)
> The privacy loss of one account being popped is likely far greater than the privacy loss of thousands of users' browsing patterns being correlated.

That's quite the hand-wave. How do you even measure privacy loss? And given that browsing history is not in your inbox, why are you so confident that one compromised email account is a bigger deal?

Re:Maintaining 65k open connections in a single Ruby process on Monday October 29, 2018 @07:35PM (#18332658)
I think you're confused about network programming in general. In a post like this, the assumption is that the concurrency is happening over a single network interface. It doesn't matter really. The most conspicuous limiting factor on a POSIX-compliant system is the number of available file descriptors. When you listen() on an address and accept() a connection, the networking stack allocates a file descriptor for that connection. Then you can handle more connections.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/ac...

http://pubs.opengroup.org/onlinepubs/9699919799/functions/li...

Beej's guide is a popular intro, but I'd bet any text on network programming covers sockets.

https://beej.us/guide/bgnet/

Older »