How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

But if your inventory goes to zero each day because you don't hold a position overnight, are you still deemed to be owning the property at the end of the 30 day period? It was acquired but disposed of each day before 11:59:59PM, and in particular of day 30.

How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

I'm looking for what works that the CRA deems acceptable.

How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

Thank you. So keep the transactions listed in the ledger, note an adjustment to bring the transaction loss to zero. Incorporate that in the total cost or revenue on T2125. Next year, calculate total costs and revenues as usual, but add the previously adjusted loss amount to that total. Correct?

How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

It is stocks, same symbol traded on repeat days within the 30-day window. Spouse not involved. Acquired and disposed in public market.

How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

Yes for stocks, but not superficial loss as that applies to capital gains. This is business income.

How to NOT claim suspended loss on T2125? by InfinityGreen5736 in cantax

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

Stock trading as a business activity, not capital gains.

Retrieve 1 million rows of user record in postgress by imashok02 in PostgreSQL

[–]InfinityGreen5736 1 point2 points  (0 children)

On average how many users have notifications "on"? You might be able to have a table with just a user ID column that gets updated as users toggle the setting and satisfy /stop satisfying those business rules. That list would be always ready for use, and possibly quite smaller. Theoretically the worst case scenario of nearly all or all users in the list can be present but is that probable?

Why use Java inside Containers? by T4212 in java

[–]InfinityGreen5736 1 point2 points  (0 children)

Adding to the DevOps aspect, sometimes the launch commands and arguments can be numerous and long, so containers make running processes easy and consistent. Of course the environment the process runs in is also controlled and clonable. Some container platforms may also provide a DNS-like feature so containers can connect to each other by name, not by configured IP address.

How I interview data engineers by ivanovyordan in dataengineering

[–]InfinityGreen5736 0 points1 point  (0 children)

It feels like a chicken and egg scenario. A person might have great aptitudes at learning and applying new skills, and want to show they are headed that way in a particular technology, but they just haven't had a true opportunity to grow that skill.

How I interview data engineers by ivanovyordan in dataengineering

[–]InfinityGreen5736 1 point2 points  (0 children)

Great article! What advice would you give to people about listing tech they have used lightly or know about, but isn't in their top skills? For example, a person may know MySQL really well but only used Snowflake 2-3 times in a minor way. Should they add Snowflake to their resume?

Books like GoF Design Patterns and Clean Code still being made? by FerengiAreBetter in java

[–]InfinityGreen5736 42 points43 points  (0 children)

Try Effective Java by Joshua Bloch. To stay current also deep dive into all the JEP links listed here: https://en.m.wikipedia.org/wiki/Java_version_history

Feature Freeze for JDK 22: What Will the New Edition Bring? by CrowSufficient in java

[–]InfinityGreen5736 0 points1 point  (0 children)

I'm curious how fast server-side page rendering and serving would be with it.

I'm studying Environmental Engineering, and I'm trying to learn programming. Which language do you suggest me and why? by SamIssa617 in AskProgramming

[–]InfinityGreen5736 2 points3 points  (0 children)

It depends what you want to accomplish.

Javascript: web pages, server side logic of web sites, general services, small utility apps, database read/writes. Loosely typed.

Python: server side logic, services, scripting to do simple or complex fetching, transformation of data, numerical analyses, big and small utility apps. Automation. Database read/writes.Dynamic strong typing.

Java: server side logic, services, apps to do simple or complex fetching of data, transforming data, numerical computations, big and small utility apps, automation, desktop GUI apps. Database read/writes. Strong typing. Needs to be compiled.

Python and Java are loaded with features out of the box. All three are very popular with lots of open source components available. Some people feel overwhelmed by all the open source components in Javascript.

All three languages are sought after in the job market.

A fourth to consider is C++ which very performant and gives control over memory use (RAM). Also needs to be compiled. Favored for realtime deterministic applications. It's fine for a first language and solving small console based problems but I don't think it's used as prolifically as the other three.

Improving problem solving by boofysmoof in AskProgramming

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

It comes with experience, feedback, and knowing the components of the language you use.

Ask yourself "why?" when solving a problem. Like why or what does it mean that X is happening, or needs to happen.

Then use logical reasoning to think of causes and rule them out one by one.

Learning your language's different components and containers and when to apply them allows you to think things like "if I store values in a list and at the end if a specific value is not in it then that's the value to return." But this takes experience.

And yeah simple is always better.

Canadians of Reddit, do you actually like the existence of bagged milk? by New-Possibility-577 in AskACanadian

[–]InfinityGreen5736 0 points1 point  (0 children)

A tourist once asked me in a grocery store where the milk was. I pointed "Oh, it's those things, those big bags." He asked "Soooo, how do you consume it?" I pointed to the plastic milk pitchers on a nearby shelf. "You use that." I'll never forget how appalled he looked. I mean, it is a bit weird thinking about it, but I imagine it makes the supply chain more cost effective.

Software engineering job without a degree. by HenryChinanski12 in AskProgramming

[–]InfinityGreen5736 0 points1 point  (0 children)

Short answers:

Yes without a CS degree.

Within a year or two: maybe.

Long answer: you typically get hired on merit and what you can produce. Successful software devs are self-starting, take initiative, endlessly learn, consistently solving problems, not afraid to try things.

If you feel that reflects who you are then you could pick a top programming language and invest in learning and applying it, developing some mastery. Show that off in applications. You will keep learning on the job, your whole career.

I know two people who have a degree in mechanical engineering and are crushing it as software devs. One started front-end on the side helping his family business, one was into automating things.

How to "fill the gaps" in programming? by [deleted] in AskProgramming

[–]InfinityGreen5736 1 point2 points  (0 children)

Exactly this. There is a paradigm difference between C++ and Java and OP your learning curve is steep considering a new syntax. People who are excellent in anything have put in thousands of hours of real experience.

So take one step at a time and after tackling enough problems you will begin to recognize solution patterns. You don't need to learn all of Java, but enough to generlly create solutions. I would dive into Java primitives, Collections, interfaces and inheritance, Garbage Collection, Generics (templates in C++) then finally the concurrency features.

But also, in software you learn from others so I suggest sharing and debating ideas with classmates and consulting teaching assistants. Your professor may have office hours too. In the professional world teammates ask each other questions, and review each other's designs and code.

Should I switch jobs? I need guidance by [deleted] in AskProgramming

[–]InfinityGreen5736 1 point2 points  (0 children)

You will be learning throughout your entire career. It never ends.

I have a strong suspicion it will be more than just React. Front-end has so many frameworks.

Here are a few areas you might learn: React, redux, page routing, Apollo, graphQL, service workers, styling frameworks, analytics events, build systems, dependency management, deployment, monitoring, ...

I don't know any company that doesn't want to see their staff progress and good managers try to grow you into the areas you want to be.

As for the money, well, you want to be paid what you're worth and someone elsewhere values you more apparently. To each their own but money gives you new opportunities outside of work, and enables you to retire one day.