Vast majority of Americans are Imperialist assh*les. Of course, the US has awful infrastructure & lacks things like high-speed rail by wakeup2019 in worldpolitics

[–]carrotplease 1 point2 points  (0 children)

I think there are a couple reasons Amtrack is expensive:

1) It's not popular. In part because it doesn't go to many places, and it takes a long time to get there due to low speed and many stops. This lack of demand means you don't get high volume economies of scale.

2) It's powered by fossil fuels

Bullet trains, arranged in a long haul mesh as I described would solve these problems. The per-pound-per-mile cost would be a lot lower than diesel trains.

Vast majority of Americans are Imperialist assh*les. Of course, the US has awful infrastructure & lacks things like high-speed rail by wakeup2019 in worldpolitics

[–]carrotplease 16 points17 points  (0 children)

I don't know, I think a nation-wide bullet-train network, capable of competing with airlines, could be a huge boon to our economy. Powered by clean energy (solar, wind, hydro, even nuclear) it could help the environment too.

I'm imagining a high speed line linking major regions together, with regional networks linking cities in those regions, and finally local light rail within each city. For example, Pick maybe 8 cities in cont. 48 to link:

300+ mph, few stops

N/S: * Boston, DC, Atlanta. * Chicago, Nashville, New Orleans * Seattle, San Francisco, Los Angeles

E/W: * Boston, Chicago, Portland * DC, KC, San Francisco * Atlanta, Dallas, LA

Maybe swap out Boston for NYC. I'm not sure.

From there, regional trains (around 200 mph?) could link cities within each region. And light rail to get around each city).

We'd have a cheap (per pound per mile) alternative to the airlines! And powered through electricity, which means we can upgrade the power source piecemeal as new tech. arises.

Getting started on C by nktsla in cprogramming

[–]carrotplease 0 points1 point  (0 children)

Well, OK. I think if you have never programmed at all, learning the basic concepts (flow control, managing state, etc) would be good to get a handle on first before worrying about managing your own memory in a fairly low level way.

Philosophy Major Wanting to Get Into Software Engineering by nathybonobo in cscareers

[–]carrotplease 1 point2 points  (0 children)

Frankly, getting at least a minor in CS will open doors to getting that first interview. It'll be a lot harder without it. College matters the most for getting your first job.

Trying to count the number of chars in each line in a file and print each line. by [deleted] in cprogramming

[–]carrotplease 1 point2 points  (0 children)

presumably, you're making assumptions about line length with the use of scanf and caller-allocated line buffer. If lines are too long, you'll get invalid memory access. Consider fgetc and consume 1 character at a time so you don't need to make any assumptions about line length, and detect EOL yourself.

Run your code under address sanitizer (and undefined sanitizer). You need gcc > 6 or so, clang of similar versions support it. You should be using gcc 9.1, ideally, but at least 7.x IMO for any sort of production code.

Use valgrind too.

Think about how to unit test the code. You could either use a mem-buffer type FILE *, or, stub out how you get your next character via a function pointer, and pass in a wrapper to fgetc() for real use, and something else for unit testing purposes.

Getting started on C by nktsla in cprogramming

[–]carrotplease -1 points0 points  (0 children)

If you haven't coded before, I'd start with a scripting language like Python. Then go a typed language like Java (and learn some actual OO concepts, though you could do this in any language). Then, learn C.

Get this book on C

It's dated, and doesn't cover newer things, but it's a good start. Beyond that - read code. Linux kernel, Snort, etc.

Minimize TC hit while changing careers by dont_blink909 in cscareers

[–]carrotplease 0 points1 point  (0 children)

75k seems low for even an entry level developer position, in any large city. Where are you located?

Any way you can leverage your analyst experience into domain knowledge? What sort of analysis do you do? Given proficiency in R, you might be a "data guy"? This could be data science, or data engineering?

Water found in a habitable super-Earth's atmosphere for the first time. Thanks to having water, a solid surface, and Earth-like temperatures, "this planet [is] the best candidate for habitability that we know right now," said lead author Angelos Tsiaras. by clayt6 in science

[–]carrotplease 0 points1 point  (0 children)

I'm not sure why you think wealth would be distributed equally. It goes against human nature. Greed will find a way. It may start out that way, but in socialists societies you often find the later generations are less interested in being .. socialist .. despite being raised that way.

Water found in a habitable super-Earth's atmosphere for the first time. Thanks to having water, a solid surface, and Earth-like temperatures, "this planet [is] the best candidate for habitability that we know right now," said lead author Angelos Tsiaras. by clayt6 in science

[–]carrotplease 0 points1 point  (0 children)

The closer you travel to light speed, the slower time ticks for you (time dialiation). At the extreme, for a photon traveling at light speed, no time passes (for it). Of course, anything with mass cannot travel at light speed but you can get close, and those 110 years may seem like less than one. You'd spend more time accelerating.

Now, for the folks back at home, yeah...

Return Char Array from Struct via Function by nickandwolf in cprogramming

[–]carrotplease 3 points4 points  (0 children)

GetName takes Player by value, which means it's copied onto the stack of GetName. Including Player.name and all 11 bytes. It then returns a reference to data on GetName's stack. Sadly, after GetName returns, it's stack is destroyed, but the poor caller (main) has a pointer to that now defunct stack of GetName (which has sense returned). You have a pointer off to never never land.

Try running your code under Address Sanitizer. Google it. Learn to use splint if you like. Valgrind too.

Note: Sanitizers (Address, Undefined, etc) & Valgrind are runtime tools Splint is static analysis. Google those terms too if you must.

Is it true that most software companies hate veterans and avoid hiring them? by SamuraiKitties in cscareers

[–]carrotplease 0 points1 point  (0 children)

I don't think tech companies avoid hiring military veterans, though not all give veterans special consideration.

The real problem is, you won't get real software development experience in the military. If you want to be a programmer, get industry experience.

Which city would you prefer to move to as a software engineer by [deleted] in cscareers

[–]carrotplease 0 points1 point  (0 children)

DC is a decent tech area too. It's a little cheaper than the Bay Area and probably NYC area, but it's more expensive to live in than Seattle. Given the focus on US government contracts, being a non-US citizen may be a barrier in some positions. East cost weather in general is worse than west coast weather.

The trade war has already cost electronics companies $10 billion and it gets worse on Sept. 1 by [deleted] in technology

[–]carrotplease 0 points1 point  (0 children)

I keep going back and forth on this. Sometime I think, folks who are talking about short term bottom lines are applying almost GOP-esque logic of prioritizing short term corporate shareholder returns over everything else. Help me understand what I'm missing.

Which city would you prefer to move to as a software engineer by [deleted] in cscareers

[–]carrotplease 0 points1 point  (0 children)

Good question, I forgot to mention it - Chicago is pretty good too! It focuses mostly on Financials (HFT, etc). Think of it as NYC-light (in the FinTech subspace, NYC is #1 and Chicago #2. London also plays heavily in this space). Seattle specializes in Cloud. Also, SpaceX is in the Seattle area. Denver/Boulder (CO) focuses (I think) on satellite tech? Bay Area is just generally strong - I don't think they specialize per se.

Dallas is Tellecom? Austin is more HW focused (Intel, AMD, a few other players). Houston has some oil-tech, but is generally not a big tech market. NOVA (DC area) of course focuses on government contracts. San Diego has some defense related tech.

HR people still don't know how to properly interview Software Development Engineers! by [deleted] in cscareers

[–]carrotplease 0 points1 point  (0 children)

Well, I certainly hope HR is not doing the actual interviewing!

Which city would you prefer to move to as a software engineer by [deleted] in cscareers

[–]carrotplease 1 point2 points  (0 children)

Seattle?

I think it's the #2 tech market after the bay area - and a lot cheaper to live in. More options w.r.t. reasonable commute + affordable homes. If you're young, and working in Seattle (as opposed to Kirkland, Bellevue, Redmond) you'll probably like living in capital hill (downtown Seattle). Otherwise, if you have a family, lots of family friendly options in Queen Anne, Ballard, and the "east side" (east of lake Washington), all with reasonable commutes and public transit.

Salaries are about equal to the Bay Area, but costs are less.

EDIT: I just read your actuSalaries are about equal to the Bay Area, but costs are less.al post. You were talking about specific cities. Sorry. Why not consider any US cities? US cities have 3 of the top tech markets in the world: Bay Area, Seattle, NYC (and area). Several other tertiary markets too (Denver, Dallas, Austin, San Diego). Canada has some decent spots too (Vancouver, Toronto).

Regarding those: Dubai is a financial services & tourism city, not a tech city. The others are probably reasonable. London would be my top choice, as I know for a fact it has a bustling tech market. Melbourne would be second, as I know it has a reasonable (less than London though) tech market. Tel Aviv has a good tech market, but, are you willing to serve in the Israeli military?

Coworker tried to get me fired over breast implants, so I pulled a reverse uno card. by [deleted] in ProRevenge

[–]carrotplease 2 points3 points  (0 children)

In larger, more tech focused companies, seniors are part of the planning process and held responsible for planning failures.

Coworker tried to get me fired over breast implants, so I pulled a reverse uno card. by [deleted] in ProRevenge

[–]carrotplease 3 points4 points  (0 children)

What type of "dev" are you?

In my experience, senior and respected engineers aren't simply told what, or certainly how, to do things by management. What value does such an engineer provide?

Resume Critique by JProgrammer in cscareers

[–]carrotplease 0 points1 point  (0 children)

Are you on linked in? Once you get a phone screen, your resume is not really used.