Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
linknoid
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
1.
▲
by
linknoid
4y ago
I've done some porting of VB6 into C# with WinForms. It's actually a pretty direct mapping. I wrote a converter, and then spend a few minutes cleaning up the converted code per form. Took me a couple weeks to convert a 500KB pr
2.
▲
by
linknoid
4y ago
https://earth.google.com/
3.
▲
by
linknoid
4y ago
If the statement is "if (!isGreen)", it's much clearer to say "if is not green" than it is to say "if is green is false". Putting == true or == false makes you convert a clear statement "is green&quo
4.
▲
by
linknoid
5y ago
A lot of the improvements are just logically extending the language to remove arbitrary restrictions. That's what most of C# 10 and 9 appear to be. So most of the features you wouldn't go out of your way to use, but instead stuf
5.
▲
by
linknoid
5y ago
StackOverflow actually has a checkbox when you ask a question that says: "Answer your own question – share your knowledge, Q&A-style" which lets you post your answer at the same time as your question.
6.
▲
by
linknoid
5y ago
A lot of things a human can do can be found in other species, but I think the ability to read and write arbitrarily complex ideas really does set us apart, and caused a phase transition. It allows us to transmit ideas across time and space
7.
▲
by
linknoid
5y ago
And then they decided to end that line of succession. .NET Framework 4.8 is the last version of the framework. I've started experimenting with converting code to .NET 5, but it's a rather large jump compared to any previous upgr
8.
▲
by
linknoid
5y ago
Dvorak plays pretty nice with default vi keybindings, for the most part. Both y (yank) and p (put) are on the left hand, as well as x (delete characters), . (repeat last), u (undo), q (record macro), @ (execute macro) and " (choose re
9.
▲
by
linknoid
5y ago
So did you switch from Dvorak to Colemak? I just did a typing test on code-like things, and my typing speed is much slower, around 45 wpm, although that's normally accelerated by an IDE. I started learning Colemak for about a day a f
10.
▲
by
linknoid
5y ago
As a full time developer, I'm sure my typing speed directly affects my productivity (probably between 80-100 wpm in Dvorak). There are a lot of times I'm typing at full speed for hours, aided by code auto-completion and vim macr
11.
▲
by
linknoid
5y ago
I think I figured out what it is. I turned off web assembly in Firefox to reduce my attack surface for general web browsing (I wish I could turn off Javascript completely, but that doesn't really work these days, so NoScript is as clo
12.
▲
by
linknoid
5y ago
Nope, I get Error Code F7701-1003. I have Wildvine enabled, and I tried completely disabling NoScript. It's easier to just use Chrome for that one thing than have to troubleshoot the problem.
13.
▲
by
linknoid
5y ago
I cleared my cookies in Firefox for everything Costco related, and it works now. Thanks for pointing out that it works. No clue how it got in that state.
14.
▲
by
linknoid
5y ago
The only two places I use Chrome are Netflix and Costco. Costco's behavior is just plain weird: "Access Denied You don't have permission to access " http://www.costco.com/ " on this server." Is
15.
▲
by
linknoid
5y ago
Maybe you can help enlighten me on this. I've been struggling to understand the basics thermodynamics of carbon capture for quite some time. So we have a hydro-carbon, we mix it with oxygen, and the oxygen combines with the hydrogen a
16.
▲
by
linknoid
5y ago
Do you also remember waiting 5 minutes for a game to load from the insanely slow 1541 floppy drive? I'll gladly take a 10 second boot time with instant application start time over instant boot time with 5 minute application start time
17.
▲
by
linknoid
5y ago
Having worked extensively with both WinForms and Delphi GUI designers, I consider WinForms far better. WinForms designer is actual C# code, you can copy and execute that code outside of the designer. It's possible to search for refere
18.
▲
by
linknoid
5y ago
> Because SQL is amazing for executing business logic. Can you explain this a bit more? I've always heard that there are supposed benefits to writing business logic in SQL, and I've made efforts to put it into practice, but th
19.
▲
by
linknoid
5y ago
There are a few language features which require a specific type to be defined, but you can define those types yourself. For example, to use record syntax, you need to define this attribute: namespace System.Runtime.CompilerServices {
20.
▲
by
linknoid
5y ago
The C# compiler has always been included with the .NET Framework, it has never required Visual Studio: https://stackoverflow.com/questions/861384/is-it-possible-to...
21.
▲
by
linknoid
5y ago
Nope, I pretty much stopped once I got to college. At some point I decided I was going to learn Rhapsody in Blue on the piano, and got the sheet music (book) and started practicing. I didn't make it too far, but I made it a lot farth
22.
▲
by
linknoid
5y ago
I think different individuals learn different ways. I had piano lessons from a young age, and everything was done off of sheet music. I would spend all this time reading through note by note, chord by chord, working my way through. But e
23.
▲
by
linknoid
6y ago
The VsVim plugin for Visual Studio makes an attempt at supporting everything in the .vimrc (or _vimrc) file. Compatibility is not 100%, so certain things just fail, but it's a lot more than just basic key bindings.
24.
▲
by
linknoid
6y ago
12:00 should actually be 0:00 on the 12 hour clock, it belongs to the next 12 hour period. 11:59 PM is yesterday, 12:00 AM is one minute later, and falls on today. Same with noon, 12:00 PM comes one minute after 11:59 AM. When I see 12:0
25.
▲
by
linknoid
6y ago
That's my C# implementation, so long is 64 bits and int is 32 bits. 64 bits will never overflow in my lifetime. That's basically a Google scale amount of data.
26.
▲
by
linknoid
6y ago
Usually when I'm doing a binary search, I'm not searching over integers, so the comparison itself will be quite expensive compared to the rest of the loop, so I prefer it like this: int BinarySearch<t>(t[] array, t find,
27.
▲
by
linknoid
6y ago
I've been playing this version of it a lot recently: http://loderunnerwebgame.com/game/ Even though I'm a lot better than when I was a kid, I've only made it up to level 14 so far.
28.
▲
by
linknoid
6y ago
The simple trick with modulo 7 is take all the 3 bit sequences: (x & 111), (x & 111000) >> 3, (x & 111000000) >> 6, etc. and add them all together. It means you just have to do bitshift + add instead of all the comp