Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
inglor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
811.
▲
by
inglor
11y ago
Good point. No, I don't believe that's what they mean there. The OP defines the F# version user as a union of either an activeuser or a deleteduser. The C# idiomatic way would be to use an abstract class and implement two subclass
812.
▲
by
inglor
11y ago
This. The nullable field and an enum is hardly the standard way to do things in C#. That's like having NULLable fields everywhere in SQL. Assignment checking is pretty simple but would not work if you want to verify the correctness of
813.
▲
by
inglor
11y ago
Or, you could use a class Hirarchy with a User abstract class and ActiveUser and DeletedUser subclasses and use the type system to enforce the constraints. Using a nullable field and an enum is hardly the standard way in C#.
814.
▲
by
inglor
11y ago
It's possible to a certain degree, but it's just way way harder then you'd do if you used a proper parser. For example, let's say I want to get all the recent question links off http://stackoverflow.com/q
815.
▲
by
inglor
11y ago
Good HTML Parsers typically use engines of browsers and will actually match websites very well. They'll let you use selectors and not regex and are a lot more accurate. It also won't break if the website adds a single attribute or
816.
▲
by
inglor
11y ago
It's amazing how many people get these core principles wrong. I recently visited a C++ shop who hasn't even heard of RAII and don't use smart pointers or standard containers. What a nightmare. It's great to see C++ getti
817.
▲
by
inglor
11y ago
It's worth mentioning that in some parts of the world (for example Israel) people don't have credit scores and you can't pay a service to find out what their income is. Of course, lying is still mostly unnecessary, especially
818.
▲
by
inglor
11y ago
The key difference is that software engineering negotiations aren't adversarial and no one wants you to overestimate or underestimate. There are numerous books on estimating software time, I recommend Fred Brook's The Mythical Man
819.
▲
by
inglor
11y ago
The simplest advice is this: Interview, A LOT, take some time every week/month and schedule several interviews. After the 10th interview you'll have a very good valuation of your worth. This is what I believe OP's biggest mis
820.
▲
by
inglor
11y ago
IDisposable's dispose is not an async function, there is no IAsyncDisposable interface with language support. There is however, a proposal https://github.com/dotnet/roslyn/issues/114 , I'm not dissi
821.
▲
by
inglor
11y ago
It has the ability to statically check the type system , that's amazing. Moreover async/await with async resource management (which C# doesn't have yet) gives it a real edge for server development.
822.
▲
by
inglor
11y ago
Diclosure: I work at a company https://www.tipranks.com and we collect all sorts of hedge fund, analyst, blogger and insider data. I don't understand how any of the suggestions it gave me works and that worries me. It'
823.
▲
by
inglor
11y ago
This tutorial comes with a ppt presentation that explains how to use it. Sadly I do not hold the copyright to that and it's in a foreign language - I do intend to write a new presentation that explains it. We `alert` the query when it
824.
▲
by
inglor
11y ago
That's a good idea, a PR would be appreciated but I can also add this myself.
825.
▲
SQL injection interactive tutorial using SQL.js
(github.com)
62 points
by
inglor
11y ago
|
5 comments
826.
▲
by
inglor
11y ago
I wrote an SQL injection tutorial using this a while ago: benjamingr.github.io/PizzaHack
827.
▲
by
inglor
11y ago
Here is an answer I wrote about it a while back http://stackoverflow.com/questions/17638305/why-is-bind-slow... Let me know if you have any questions about it
828.
▲
by
inglor
11y ago
Can't talk about closures without mentioning this excellent piece http://mrale.ph/blog/2012/09/23/grokking-v8-closures-for-fun...
829.
▲
by
inglor
11y ago
It's pretty interesting that the author did not talk about async/await which gives us back the imperative coding style with futures, effectively solving the problem - it has been adopted by many languages like Python, C# and JavaS
830.
▲
by
inglor
11y ago
It would be impossible to _actually_ have a feature like this as opt in since it would effectively create two different versions of C#. What the proposal does is emit warnings (and not errors) which is another shame. I'd much rather ha
831.
▲
by
inglor
11y ago
There is no way they can introduce a breaking change _this big_ into the language. This change effectively breaks almost every big piece of C# code.
832.
▲
by
inglor
11y ago
Only on firefox and chrome since they fixed it https://github.com/benjamingr/favicon-bug
833.
▲
by
inglor
11y ago
This does wonders when used in favicons :D
834.
▲
by
inglor
11y ago
Pfft. https://www.tipranks.com/etf/rsp
835.
▲
by
inglor
11y ago
The code is surprisingly well documented. For example: https://github.com/ParsePlatform/Parse-SDK-Android/blob/mast... looks like an honest effort to get contributions.
836.
▲
Io.js and the future of server side JavaScript
(youtube.com)
7 points
by
inglor
11y ago
|
0 comments
837.
▲
by
inglor
11y ago
It is a general comment about 3-4 specific services we have been using. I'm actually coming to give feedback in IBM in two weeks. If you'd like I can gladly send you a copy of it if you tell me how.
838.
▲
by
inglor
11y ago
Just buying other companies is nice - but how about we start with APIs that don't 500-error every other request? I <3 all their APIs for Watson but it feels like AWS 3.5 years ago. Reliability counts.
839.
▲
by
inglor
11y ago
Yes, once HTTP/2 kicks in (what most SPDY actually is now, and what it evolved into) the server can push assets. That makes this feature obsolete. Source: https://http2.github.io/http2-spec/#PushResources
840.
▲
by
inglor
11y ago
Just because they can translate doesn't mean it's good. If you check out this example: https://github.com/mythz/java-linq-examples/blob/master/READ... it converts 6 lines of readable C# to 20 l
More ›