HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on Facebook Financial Results 2019 Q4
I'm not equating that to how much each staff member costs, i'm saying thats what each staff member on average is roughly responsible for spending each year!
dana321··on Facebook Financial Results 2019 Q4
44,942 employees, its in the document near the bottom of page 1 under headcount

https://s21.q4cdn.com/399680738/files/doc_financials/2019/q4...

dana321··on Facebook Financial Results 2019 Q4
They are spending $46 billion a year to keep all that running.

Over a million dollars spent per staff member.

Wow.

dana321··on Who Says Tcl Rules?
uplevel and upvar..

Kinda strange how scope is restricted to the current level.

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

dana321··on Building all of our new mobile apps using React Native
I'll just leave this here.

https://devrant.com/rants/320156/i-hate-react-js-with-a-fuck...

dana321··on Microsoft Application Inspector
What about Rudt and Godlang?
dana321··on How to Kill a Startup Idea with Google Keyword Planner and AdWords: A Case Study
It would be a one-off fee, but you would charge more.

You could also charge a fee for doing a credit check on the other side.

dana321··on SQLite Is Serverless
Yes, using WAL. I tuned all of the settings that i could at the time.
dana321··on Show HN: Mimetype – Golang library for file type identification
Awesome, i will definitely use this in my project.

I've been looking for this, thank you for sharing!

dana321··on My 2020 Hackintosh Hardware Spec
I thought about myself, but OS updates / upgrades are risky.
dana321··on SQLite Is Serverless
It does allow multiple applications to access the same database at the same time, but when you do so it really hurts performance. I noticed this when i wrote a web crawler in go and used sqlite as the backend.

As soon as i connect using the command line interface, it slows down significantly.

Just something to bear in mind if you want to use it with multiple processes!

dana321··on Rolls-Royce plans mini nuclear reactors by 2029
I like your glass-half full way of thinking, and of course you are completely correct.
dana321··on Rolls-Royce plans mini nuclear reactors by 2029
When a read the title i thought that maybe they were going to put tiny nuclear reactors in everyone's home.
dana321··on Show HN: Get instant name ideas for your next startup, business or side-project
Yeah, tried another one `cross`. Said bitcross.com was avaliable but it wasn't.
dana321··on Show HN: Get instant name ideas for your next startup, business or side-project
I think you have a bug, i typed in trans as a test word and trans.io came up available, but its not.
dana321··on Show HN: Boards for Mac
Looks like trello!
dana321··on Chinese academic suspended for copying programming language
Suspended for copying python!
dana321··on How to Kill a Startup Idea with Google Keyword Planner and AdWords: A Case Study
I think they missed the opportunity to add some value to the market, by doing some kind of background checks to ensure the teachers are safe to let into your kids home.

Trust is an element people always look for above all else.

dana321··on Every Google result now looks like an ad
Why don't they put the icon and url underneath the title? Seems like its around the wrong way!
dana321··on Every Google result now looks like an ad
backrub.. still cracks me up when i see it.
dana321··on PHP Is an Industry
I would say that its smarty templates that need to go in the bin.

Its a terrible, horrible POS that should have died a long time ago.

And all the frameworks.. So many, there is no need. Just pull in what you need using composer.

PHP has came a long way, its just that most people haven't noticed the language has improved and now has a great package manager.

dana321··on A Response to Hello World in Go
// shortest "hello world" in go

package main

func main(){

       println("Hello World")

}
dana321··on The old internet died and we watched and did nothing
Where is Hotmail, Geocities, Xoom, Webring, Metacrawler etc? lol
dana321··on The Fallacy of Premature Optimization (2009)
Premature Optimization can hold back the release of software, and make it more complicated to debug.

.

Say you already have a function that returns the list of children in a node..

.

But you need a function that brings back only the first child if it exists.

.

1. Do you copy the function and return just the first item when you have it (with the associated code around the function) for efficiency sake.

2. Or.. Call the existing function and return the first item if there is at least one element?

.

1 Will be the best answer if you have a million records to load from disk.

2.Will be the best answer if you only have 20-30 records on average.

.

But 2 is the best answer before debugging, check that the code works properly before duplicating it and modifying it.

Answer 3 would be to add a limit parameter, and call the other two functions with it. That way, if limit=0, return all records. if limit=1, return one record maximum.

.

Sometimes the answer is to think differently about the problem altogether.

dana321··on Ask HN: Solo devs, how do you plan your development?
With trello, within a single card you can click "add checklist" on the right-hand side. Then add all your tasks, and check them off one by one - it shows you a progress bar on the main board.

I have a single TODO list of cards and i use the checklist within a TODO if its a large task that needs to be broken down.

I also arrange all of my links to libraries i've found online by dragging them directly onto trello or use the bookmarklet. I have about 30 boards on different topics, some with ideas, some with links all subdivided horizontally by topic.

dana321··on Why are my Go executable files so large?
As a Go developer, templates seems like a good idea more and more each day.
dana321··on Why are my Go executable files so large?
Go is a hybrid language.

Its not a jvm, but its runtime has jvm-like features such as garbage collection and reflection but also a thread scheduling system called goroutines.

I love the fact it is monolithic in nature.. One exe is all you need no matter which platform you use. Everything is statically compiled into the binary.

No bundling the jvm and a load of jar files, or lib*.so dependencies.

dana321··on Why are my Go executable files so large?
Have you tried this? I've played around with it in the past.

https://github.com/asticode/go-astilectron

dana321··on Minimalism – An undervalued development skill
A minimal core with just enough functionality to be useful, then a plugin framework with hooks for all the other features that everyone else needs to build in.

A minimal phone with just enough functionality to be useful, then an app store to get all of other functionality you need via downloadable apps.

Its a model that works well, providing an ecosystem to anyone who wishes to extend.

Code is kind of the same now.. Get the basic thing going, then people fork it, improve it, submit patches, sometimes over decades.

The worst software imho, is a closed architecture that has the kitchen sink included that nobody can extend.

Modularism and a pluggable architecture is much better than just minimalism on its own.

dana321··on Google Brass Set 2023 as Deadline to Beat Amazon, Microsoft in Cloud
For amazon maybe, with their thrifty leader JB but i don't think Google's datacenters are exactly cheap.
← PreviousPage 7 of 12Next →