HNHacker News
TopNewBestAskShowJobs

Xeronate

336 karma · joined April 4, 2016

submissionscomments
Xeronate··on Frameworkless Movement
I would be pretty hesitant to suggest not using a framework at a startup of all places (although really anywhere). They may seem overwhelming, but they are ubiquitous for a reason.
Xeronate··on Frameworkless Movement
How do microservices replace web frameworks at all? Every microservice I've seen uses some web framework (django, flask, asp .net core, spring boot, etc).
Xeronate··on Facebook senior software engineer interview
Here you go

https://leetcode.com/problems/find-all-anagrams-in-a-string/

https://leetcode.com/problems/subarray-sum-equals-k/

Optimal answers expected.

Xeronate··on .NET 5.0
Don't need DI to make your program so abstract no one can follow it. Wouldn't even say DI makes it easier to do because you can accomplish the same thing by just newing up objects.
Xeronate··on .NET 5.0
What types of services don't have complex business logic? Just trying to expand my horizons. I guess like a video transcoding service or something like maybe.
Xeronate··on .NET 5.0
Can you give some concrete examples of how C# is tedious compared to go?

Things like

  var filtered = purchases.Where(x => x.Name.Contains("Sean"));
and

  var grouped = purchases.GroupBy(x => x.Buyer).Where(x => x.ToList().Count > 10).ToDictionary(x => x.Buyer, x => x.ToList());
etc. come up a lot in day to day programming and always feel tedious to me in go. The first example in go looks something like

    filtered := []purchase{}
    for i := range purchases {
        if purchases[i].buyer == "Sean" {
            filtered = append(filtered, purchases[i])
        }
    }
and it only gets worse as the domain gets more complicated. I don't really know what your background is where you feel that static typing and generics are complicated. I write C# every day and spend 0% of my time fighting the language.
Xeronate··on .NET 5.0
Nancy is dead https://github.com/NancyFx/Nancy. Archived and stated that it is no longer maintained.
Xeronate··on .NET 5.0
Go seems nice, but don’t you think writing business logic feels very tedious compared to C#? Generics and linq speed development time up for me significantly.
Xeronate··on .NET 5.0
What’s not to like about DI? Makes it so much easier to wire up dependent services and refactor those wirings at a later time. If you don’t use DI you have to manually manage everything yourself.
Xeronate··on PostgreSQL Templates
I’ve seen two people mention this for integration tests and that sounds great, but how do you handle system tests? As an example of the difference, my team would use an integration to test a repository class individually and a system test to check everything from the top level api endpoint and down. I think the top level thing is important because it makes sure we are getting the right connection string from our database provider and what not.
Xeronate··on China to ban online gaming, in-game chat with foreigners outside Great Firewall
SARS-CoV-2 is pretty specific. Comparing with covid-19 seems more reasonable. https://trends.google.com/trends/explore?q=Wuhan%20virus,cov...
Xeronate··on The Unreal Engine Wiki is now permanently offline
Also interested in this question. I recently started on my first game project after 4 years of being a professional C# dev and chose unreal because it seemed to be the quickest path to success for a small multiplayer arena battle game. Seems like coding my own networking layer, renderer, animation system, etc. would take way longer.
Xeronate··on Is College Still Worth It? The New Calculus of Falling Returns [pdf]
Will she never pay them off and then reap the benefit? Is happiness not something she benefits from?
Xeronate··on Moving from Go to PHP Again
Why do so many companies keep moving to go? I tried to like it, but it was just so painful to write.
Xeronate··on Why We Chose Rails to Build Gitlab
Serious question. Why do so many companies choose to rewrite in Go? I tried to like it, but it just felt so painful to use.
Xeronate··on I interviewed at six top companies in Silicon Valley in six days
I agree with you that my gist demonstrates "table stakes", but I think that is the level of tree traversing most interview questions require. I don't think any interviewers are asking people to implement distributed algorithms like the one you linked. They are asking for algorithms that just combine a few of the basics. With that said, I'm inclined to believe our fellow commenters are arguing about the utility of what I shared. For example people siding with me gave examples of finding the biggest file in a file system and constructing a dependency graph to refute the idea that tree traversal are useless and mentioned that there isn't any "deep understanding" in BFS because it's so simple. It reminds me of the tweet by the creator of Homebrew[0] about not being able to reverse a binary tree that so many people bring up when this topic arises. To me that's just table stakes.

On the topic of my example not constituting "knowing BFS", the BFS I shared is just a slight modification of what most students are taught and is close to the second method for level order traversal of a tree on geeks for geeks[1]. If you don't like the BFS usage because it isn't on an explicit tree (although nested HTML templates most definitely form a tree), the result of parsing an AspxFile in my gist returns an explicit tree data structure[2][3] and the helper method[4] at the bottom does a standard preorder traversal[5] on that linked structure. That feels like "actually using DFS on a data structure".

[0] https://twitter.com/mxcl/status/608682016205344768?ref_src=t...

[1] https://www.geeksforgeeks.org/level-order-tree-traversal/

[2] https://gist.github.com/tohsa/2d906942f8712abdfc7df72128479c...

[3] https://github.com/PositiveTechnologies/AspxParser/blob/mast... (AspxParseResult has a reference to the root AspxNode, and btw I didn't write this parsing library)

[4]https://gist.github.com/tohsa/2d906942f8712abdfc7df72128479c...

[5] https://www.geeksforgeeks.org/dfs-traversal-of-a-tree-using-...

Xeronate··on I interviewed at six top companies in Silicon Valley in six days
Heard back from the OpenGrok developers and they said they don't support the use case I needed. My gist was just a very small part of the overall process (and yes, for that small piece it was trivial to use a linux util instead of csharp).
Xeronate··on I interviewed at six top companies in Silicon Valley in six days
It feels like OpenGrok should be able to do this, but I'm not seeing it. How do you search for a method call in a code path? E.g how do determine i function A calls function C? function file1.A(){file2.B();}, function file2.B(){file3.C();}
Xeronate··on I interviewed at six top companies in Silicon Valley in six days
I can tell you really don't know what you're talking about because you can't just "use libraries to do it". You can use a library to parse a given input, but you need to traverse the tree in a specific way. Here, I'll give you an example of the first step of the problem with proprietary info stripped out. https://gist.github.com/tohsa/2d906942f8712abdfc7df72128479c... You plain and simple need to know BFS to do these sorts of things. You're acting like its some act of algorithmic wizardry when its not.

It's not a question of speed. It's the fact that tree traversals are the best way to analyze parsed text. Although, it was quite resource intensive and we ended up distributing the workload among multiple computers so we could scan all pages at once. Luckily this was easy because pure functions are trivially parallelizable.

Xeronate··on I interviewed at six top companies in Silicon Valley in six days
I was recently asked to identify pages in our 10 million line application that use a certain piece of business logic. It involved parsing the page and their nested subcontrols into a tree with by doing a modified BFS on the linked files, doing a modifed BFS on the tree to identify the related code behinds, parsing the C# from the codebehinds into a tree, and traversing the C# tree (again with a modified BFS) to find if the code path was hit.

These questions come up all the time. You just need to be proficient enough with algorithms to identify them.

Xeronate··on At Blind, a security lapse revealed private complaints from tech employees
I read it for a few days and then had to uninstall. It has an astoundingly horrible user base.
Xeronate··on Why Use F#?
FWIW I work for a large public tech company and we have a major portion of our microservices written in .net core deployed on linux containers in AWS.
Xeronate··on Repl.it raises $4.5M from A16Z, Paul Graham, and others
So does pretty much everyone. The problem is with setting up virtual environments and managing packages.
Xeronate··on China now the most prolific contributor to physical sciences, engineering, math
Having a bachelors doesn't make someone a good teacher. There is a reason teachers get teaching degrees.
Xeronate··on Google’s Jeff Dean’s undergrad senior thesis on neural networks (1990) [pdf]
Does being a public Ivy really mean anything? I went to Miami Universiry and it didn't really seem like anything special.
Xeronate··on The financial mistakes behind why a startup laid off 400 employees overnight
No you don't. I'm from a small town in Ohio and my first job was at Home Depot for $12 an hour 6 years ago.
Xeronate··on Learning Math for Machine Learning
Cool. I will look into those, but I was asking as a general interest in math question. I actually have no interest in machine learning. I'm bored of chasing money. Interested in 3D computer graphics and math for math's sake.
Xeronate··on Learning Math for Machine Learning
I get what you are saying, but is the right way to learn math with a "connected path". I've heard "The art of problem solving" series works through math in the correct way, but I'm not sure how far I would get on that alone. Right now I'm trying to gain intuition in linear algebra via OCW with Strang, but I would like to truly understand. Is the only way to just to do a second bachelors in math?
Xeronate··on Computer science as a lost art (2015)
College is only one way (albeit a good one) to get a firm grasp of CS. I'd argue putting in 1000s of hours of work is another.
Xeronate··on Django Newbie Mistakes
I'm surprised you are worried about JSON performance and not ORM performance. It seems like if you really needed better serialization/deserialization you could just call a c module from python.
← PreviousPage 4 of 5Next →