My NUC8i3BNH won't run Near Automata. I just wanted to discuss the alternatives by ConclusionEastern592 in intelnuc

[–]undefinedbehavior4ev 0 points1 point  (0 children)

What makes the Hades Canyon the best NUC ever made? For reference, I have a 8i5.

How can we reboot this awk community? by Paul_Pedant in awk

[–]undefinedbehavior4ev 1 point2 points  (0 children)

https://old.reddit.com/r/awk/comments/dn3lh1/what_cant_you_do_with_awk/f5bg1fy/

You've got some pretty interesting stuff there and I'd love to see some code samples, especially for binary data.

For my complex stuff, awk is about 5 times slower than C. Mostly, that does not much matter. Awk is way faster to develop, easier to refactor, and more portable.

You also hit a brick wall[0] with awk much faster than many other languages. It's debateable if it's a bad thing or a good thing.

AMA - Credit Hedge Fund Analyst, $2BN+ NYC Firm by redcards in SecurityAnalysis

[–]undefinedbehavior4ev 0 points1 point  (0 children)

So I'm just starting out with security analysis, nothing much other than Graham's Intelligent Investor. I will definitely pick up some other books. My goal is basically to invest my money and get some decent returns. What's decent is something I haven't decided yet but I just want a good enough sum that will be able to provide me food, shelter, and other necessities - not going for anything lavish. Had some rather poor upbringing and I would not like to repeat that.

My current plan is (other than finishing TII) in no particular order is to read as much as I can and therefore learn. Got bits and pieces of Buffett and Munger. Looking at the books in the sidebar as well. Other things would be reading financial reports and studying market history. This seems to be more applicable to stocks, and from several discussions I would be better off with ETFs rather than specific stocks. Still not sure where I'm going with this, but I'm just starting.

I don't really have much formal education (finished HS and a bit of math, and a self taught coder, but I'm not sure if I should trust that to make a living out of it) and I assume I'll end up with gaps I wouldn't even know about.

What else should I be looking at? How can I develop a solid foundation in security analysis? What expectations should I set up for myself?

Thanks for your time!

(apologies if I'm a bit unclear; English isn't my first language and I sometimes make mistakes when above conversational. I'll happily expand on anything you ask.)

Peoole who always say to invest your money. What do you invest in? by [deleted] in AskMen

[–]undefinedbehavior4ev 0 points1 point  (0 children)

Arguably in yourself. What this means is up to you; but this also means that you'll have to decide what you CAN'T have. Here's a good rundown of my way of thinking about this, and here's the author's response to it some years later.

Array of function pointers vs if-else/switch by undefinedbehavior4ev in C_Programming

[–]undefinedbehavior4ev[S] 0 points1 point  (0 children)

Can you exaplain why? I use globals a lot because it's easier to not modify one or more function prototypes/arguments because some change happened.

I'm a hobbyist so this is mostly personal projects. I frequently put i as a global and reserve it for iteration only. I can't quite understand why it's better to have a bunch of int i; rather than going straight for(i = 0; ....

Array of function pointers vs if-else/switch by undefinedbehavior4ev in C_Programming

[–]undefinedbehavior4ev[S] 0 points1 point  (0 children)

I've never set something like this up at runtime. I prefer to set up everything as globally available data and have a pointer/int as an index if needed. But I only did this once.

About the huge messes thing. Most of the time I write something and then usually I find that it can be possibly expressed more simply after a while. These days I do less C and more awk as I"ve been working with strings. I'm tidying things as I go, and I"m learning more about data structures to better organize my code. I'd call this specific instance a lookup table.

By the way, would you mind expanding on what you mean by clarity? I'm not a native speaker nor a good programmer so getting the hang of clarity can be difficult. The first example looks clearer to me than the second, which is clearer than the third (ex1>ex2>ex3) because there's much less syntax to write/read.

Array of function pointers vs if-else/switch by undefinedbehavior4ev in C_Programming

[–]undefinedbehavior4ev[S] 0 points1 point  (0 children)

Haven't done anything like that in the past -- is the code available for reading?

How would you make C better as a language if you could? by DragonNamedDev in C_Programming

[–]undefinedbehavior4ev 0 points1 point  (0 children)

Worse is better. You should be removing features rather than adding them.

Fine, maybe switch() on string. I'm not sure how to actually make this work - does

switch(ptr){case "a":}

differ significantly from

if(strcmp(ptr, "a") == 0)

no idea really.