HNHacker News
TopNewBestAskShowJobs

mahyarm

5,813 karma · joined April 21, 2011

Anything I write/say are my own views and not the views of my employer or on behalf of my employer in any way, shape or form.
submissionscomments
mahyarm··on Why Is Python Growing So Quickly?
Just use kotlin or golang. You get a modern language and you get types. And you still have java libraries with kotlin.

I totally understand the lack of typing & static compilation making things painful once you reach a scale where you can't put the codebase in your head. Asserts, unit tests and variable names are poor substitutes. As an interm solution have you tried converting your internal python code to be fully typed with 'optional types'?

mahyarm··on Chelsea Manning: The Dystopia We Signed Up For
Imagine your an accountant for a firm, you realize they are committing unethical accounting practices, some which may be 'legal', some which may be 'not legal'. You feel like they are pretty heinous and they breached the 'trust of the public' by doing so.

In this dilemma which trust has the higher priority? In your opinion it should be the US military, in Manning's case, it was not.

mahyarm··on Most Female and Male Occupations Since 1950
It's hard to explain without being misconstrued. The bay area tech scene is embedded in the general culture of the SF Bay Area itself, and that culture is very sensitive to these topics. It's like opening a recent wound before letting it heal.

Imagine a school shooting happened where you were recently and then some shared an article about the distribution of school shootings around the country on company chat. Just not a good thing to do.

mahyarm··on Most Female and Male Occupations Since 1950
A bunch also happened in the 1980s. It would be interesting to figure out the causes in each of these decades.
mahyarm··on Snapchat’s Influencers Are Fleeing to Instagram for Money
By class I meant income level, not culture.

In the past being a profitable artist meant superstardom or poverty, with a rare few in between with middle class incomes. Now with Youtube/patreon, there is a good chunk of 'middle class artists' that are developing today that didn't exist in the numbers that these platforms created.

mahyarm··on Sublime Text 3.0
Something I've realized is a lot of our habits transfer over from app to app. Most authors of new software make sure to follow the standard OS text editing conventions, and windows, linux & macos are all fairly similar.

When you use emacs or vim, which import their 1970s / early 1980s OS conventions with their keyboard shortcuts, you realize you can be dropped into a very foreign 'defaults' context, and they can conflict.

mahyarm··on Snapchat’s Influencers Are Fleeing to Instagram for Money
Vs. rapper, or sports player? An IG / youtube star is being a lower-middle class celebrity, which is actually a first in many ways.
mahyarm··on Under iOS 11, authorities won’t be able to image your device without a passcode
It does. But if your a US citizen or are ok to be barred from entering the US for a long time, then you have the option to not unlock.

If you go the US citizen route, be prepared to never get your phone back and many future border crossings to be 4+hr affairs where they confiscate most of your things.

As a US citizen they have to let you in.

mahyarm··on How to conduct a good programming interview
Is there a case study somewhere for such an interview? Like a description or a video or such?

Also how do you deal with the standardized interview being published? As in 'company X' uses a live coding exercise and they ask you to do X in a succession of changes. It would quickly come out for most larger companies.

mahyarm··on How to conduct a good programming interview
These places use the computer for interviews already for the visually impaired. It's just a name for a type of interview.

I even give people the option to use the computer if they are more comfortable with that or a whiteboard. It can be 50:50 in who choses what.

mahyarm··on How to conduct a good programming interview
Things like the FB app is really a function of the amount of code and developers working on it at once.

Amount of code is a function of the number of engineers. It's a social organization issue & a big company issue more than anything else. If facebook removed the algorithms part of their interview through a time machine, the same issues would of still cropped up.

Also in backend & foundational infrastructure stuff where you go make compilers and base foundational libraries, you do tend to use those algorithmic things once in a while. You use stats in analytics & data science and you math in ML and other initiatives. FB isn't just CRUD construction workers after all :p

mahyarm··on Messenger.com Now 50% Converted to Reason
I don't know much about OpenGL UI, but how does OS specific font rendering work?
mahyarm··on Messenger.com Now 50% Converted to Reason
I see you wrote the program. What did you write it in? What are you using for the UI toolkit? Are you planning to open source it?
mahyarm··on Chinese government is working on a timetable to end sales of fossil-fuel cars
Trunk batteries? Like jerry cans?
mahyarm··on Identity Theft, Credit Reports, and You
What happens when you have 10 valid applications as a landlord? Do they even have to tell you the reason why they chose application 3 over all the others? How does that work?
mahyarm··on Identity Theft, Credit Reports, and You
What a credit agency retains on you and what a bank asks from you in a loan application are two different things.
mahyarm··on Demon-Haunted World
The swift scalability problems start coming up around 70k lines of code, so for the typical case of 1 or 2 developers it doesn't come up. But if you start getting a large codebase:

* indexing will take forever

* xcode will beachball continuously

* the debugger will crash because the codebase is too much to handle

* build times will be 4-5x more than the equivalent obj-c codebase

* startup times will balloon significantly if you have many separate libraries, since using swift forces you to use dylibs. 60-100 libraries will mean 3-5 seconds being added to your app startup time

They are all solvable problems, but it will take several years before they are fixed. But I don't think swift will be better than C++ development, since they are both similar languages as far as compiler tradeoffs go.

I notice some lag even in small swift projects compared to objective-c, but it isn't major enough to worry about.

mahyarm··on The 'Self Drive' Act puts America on the road to reducing congestion
Cars are also unused for over %90 of the time, taking up space in some parking spot on premium land close to people's workspaces and homes. On almost every road in america, 2 lanes of traffic are taken up by car parking. In a self driving car future, we can free up those lanes and put excess cars in parking / maintenance towers. The software system managing can predictively dispatch them based on previous demand curves to prevent traffic jams.

The amount of cars we would need as a society will equal the peak demand curve, much like electricity demand today. It will also be very likely that those cars will have multiple people in them since a large part of the cost savings will come from car sharing. In the future, we will probably have 1 motor vehicle serving 10 households, vs the almost 1:1 to 1:0.5 ratio we have here in the US today.

mahyarm··on Demon-Haunted World
MP3 hasn't changed as a standard or probably as a codebase for decades. Your apps are changing every week, and apps tend to grow in size as more and more code & features are added to them. It's a natural consequence of most software projects.

The binary size of swift projects doesn't catch most people, only large projects with > 400k lines of code as they go over the cellular download limit. It's the new hotness, so many projects are adding swift even if the app is old.

Adding swift to a project adds ~20MB alone for the standard libraries that get included with each app, and each line of swift creates that much more binary bloat. The autogenerated interface between swift and objective C creates even more bloat.

mahyarm··on Demon-Haunted World
Are you comparing identical OS versions and an identical amount of apps installed? Newer versions often make everything slower. I remember when the iOS 6 -> iOS 7 update happened, the exact same code run on the same device with different OS versions ran %20 slower.
mahyarm··on Demon-Haunted World
I'm guessing you have an iPhone?

Apps are getting larger due to more and more code accumulating as time goes on and apple's toolkit / compilers causing binaries to become larger.

Swift itself creates incredibly bloated binaries compared to objective-c. More people are using more 3rd party libraries than 5 years ago, where you just used apple's built in libraries for the most part. If you just used the shared system libraries, then that didn't count against your binary size.

mahyarm··on Choose boring employees
If react/njs is a mistake for web side projects, what would be a good alternative?
mahyarm··on Fish are eating lots of plastic
There is a lot of plastic waste your not allowed to put in the recycle bin, such as plastic wrappers for food.
mahyarm··on The End of ProTube 2
The apple app store doesn't prevent malware either. Reviews are done by just using the app and running an automated program on it.

If you turn off your malware features during review time, then it wont be caught. There is a good chance your malware behavior wouldn't be caught even if they were on.

After you've released the app, it's up to users to report the bad behavior to apple.

Also the OS is far more locked down than android and devices are frequently updated, which limits what malware can do.

mahyarm··on Homeowners faced an Airbnb nightmare as renters left them facing huge fines
The regulation is what is screwing the owner in this case. It's a simple ban on short term renting. If it didn't exist then it would just be a civil lease agreement violation and far less painful.

AirBnB went wrong in this case because they don't have a good property owner support channel to remove bad properties like this.

mahyarm··on Rapid release at massive scale
I think what they are trying to measure is how much is this build/release system effecting productivity of the engineers and changes their behavior. Not how productive the engineers are per say.

If the build system is super slow and just breaks all the time, your going to see a drop in the number of commits landed per day. If git is completely down and commits per day drop per 0, then you have an outage ;)

mahyarm··on Interview with Ryan Dahl, Creator of Node.js
It's still 3 more platforms, which means 3 more developers, which leads to more $$$. Not everyone is VC backed with multi-millions.
mahyarm··on Interview with Ryan Dahl, Creator of Node.js
How do you get stack continuity in anything that is multithreaded unless the debugger adds special support for it?
mahyarm··on New Uber CEO Says Company Could Go Public in 18 Months
Most shareholders don't like dividends because of the tax treatment compared to stock buybacks. It's still less liquid than a public market.

As far as those other examples, I don't know their full histories. From my memory amazon has had a break-even policy on purpose which investors are ok with. FB was profitable for about a year before IPO and its stock went to half of IPO for a year because people were worried about it's numbers until they got a lot of a money through mobile.

mahyarm··on Postmates laid off all its city managers yesterday
Most traditional shipping companies do have shipping insurance.
← PreviousPage 2 of 34Next →