Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "unions"
-
Hehe, stumbled upon an oldie :-)
struct ComputerContractor
{
double salary;
long lunches;
float jobs;
char unstable;
void work;
int hiring_him_again;
const pain_in_the_arse;
unsigned agreement;
short fuse;
volatile personality;
static progress;
};
/* and there are no unions in sight */3 -
I interviewed to this small company. It was a position requiring a lot of experience they said. They did Microsoft SQL server and their technical interview questions were so easy it took me a lot of time to answer them because I was looking for traps, like for real. Think I might've answered too complex for them as well.
In the non-technical interview they joked about how they'd need to reserve two saunas in team events (Finnish thing) as they were all male and I would've been the first female.
Then they asked questions about my *children*. "Who takes care of them when they're sick?" Ummm, yeah, illegal much.
In the end they didn't hire me but they took two interns from the vocational school (or applied sciences). Yeah, so hard a job a Master of Science in Software Engineering with (at that point) three years of full-stack experience couldn't handle but some not even graduate interns could do?
Oh, and fun thing was. A couple months later a recruiter called me about the same company. I told *her* the story and she said she's gonna drop that company from her list and said no wonder they complain about not getting people for them. xD
I also send a tip to my unions discrimination department. They used my case as an example in presentations so suppose this experience served a purpose. ¯\_(ツ)_/¯2 -
In PHP (yes, it's a language I... don't hate) I've always hated exceptions. They're like GOTO, in an OOP world with interfaces and contracts, try/catch is really odd as it breaks a promise about returning with a typed value.
But you can now do this in PHP8, which comes pretty close to Maybe/Either monads (Option, Result whatever it's called in other languages):
function getUser(): User | UserNotFound
PHP8 unions don't come with the same strong guarantees as in other languages but *pets PHP gently on the head* you did well, my boy.
Now I would really love it if PHP9 could do:
function getUsers(): Collection<User>
Type Tree<T> = Null | Node<T>;
function 🎄(): Tree<Branch<Ornament|Light|null>>15 -
Concerning my last rant, some explanation:
In short:
Skype and security agencies spy on all the people.
More context:
To the extent, that Skype employees suffer mentally from excessive porn.
That's what large amounts of users did on this platform the last two decades.
So the affected had to bring their case to national, maybe even super national courts.
Which gave in to their claim.
Thus bringing the employees into another salary category, so, compensating the damage done.
What sounds like a unions topic reveals large scale mass surveillance of everybody without exception.
And describes some effort in machine led (picture) recognition.2 -
This is my first rant here, so I hope everyone has a good time reading it.
So, the company I am working for got me going on the task to do a rewrite of a firmware that was extended for about 20 years now. Which is fine, since all new machines will be on a new platform anyways. (The old firmware was written for an 8051 initially. That thing has 256 byte of ram. Just imagine the usage of unions and bitfields...)
So, me and a few colleagues go ahead and start from scratch.
In the meantime however, the client has hired one single lonely developer. Keep in mind that nobody there understands code!
And oh boy did he go nuts on the old code, only for having it used on the very last machine of the old platform, ever! Everything after that one will have our firmware!
There are other machines in that series, using the original extended firmware. Nothing is compatible, bootloaders do not match, memory layouts do not match, code is a horrible mess now, the client is writing the specification RIGHT NOW (mind, the machine is already sold to customers), there are no tests, and for the grand finale, the guy canceled his job and went to a different company. Did I mention the bugs it has and the features it lacks?
Guess who's got to maintain that single abomination of a firmware now?1 -
If you have ever used a union in a C/C++ Program let me know. I am really curious to see who in their right minds use unions unironically.23
-
Life of an Oracle Developer ... Day {I've lost bloody count now}
Task: Optimise a 236 line cursor consisting of 7 SQL SELECTS and unions, 39 joins and nested sub queries galore.
"YAYYY" said no one ever ...3 -
I don't know what to do because union and sum types both totally suck but I need them for my scripting language
Union types are fun and intuitive because they can be used with type refinement but they're not hierarchical thus bad for generics.
Sum types (or tagged unions) are great because they're hierarchical and can be nested properly but they need ugly type matching constructs.
The positive thing is I'm not making a systems language anymore so I only wanna jump of a bridge every second day5 -
#justathought
(Disclaimer: Don't think am being racist or anti feminist, i am currently studying about industrial revolutions and trade unions, nd this thought came to my mind )
We went from the time where women were forced to work in industries, to the time where women were forced to stay at home, to the time when women are willing to work in the industry.8 -
This is what I always wanted to say:
Openness is important to Amazon.
Russian people are treated very well too.
The manager I have appreciates my work.
Unions are allowed now.
Recommend my workplace to
Everyone.2 -
When elements of an union are distinguished by a boolean, VSCode's Typescript plugin can only do type elimination if I branch by "== true" and not if I just branch by the boolean.
This is because Typescript treats booleans as an union of the constants "true" and "false", and compile-time elimination can only be done if I use syntax that makes sense with unions. Logical evaluation, for some reason, doesn't.
The fact that this issue can even appear is deeply concerning.1 -
I'm almost at the point where I give up on this project, I'm banging my head too hard against the wall here.
I'm making an android app that should make it easier for local fishermen (hobby stuff, not enterprise things) to submit their catches to the local unions. For that to happen, I need to be able to fill a form in the app, more specifically, this form: http://karupaa.com/dk/...
After some research, I managed to figure out its probably a POST request, but I may be very wrong here.
Also figured out the URL to post to is probably either the first url given, or this one: http://karupaa.com/dk/...
I'm extremely confused at on this area, and any help would be greatly appreciated.
I dont really know anything about POST or GET requests, except for the quick comparison I read on W3Schools. Its an area Im lost in.
help :i11 -
Do you have a programmers union in your country?
In my country we have a general union for all different kinds of jobs and a engineers union. Maybe if developers had a dev union there would perhaps be less bs11 -
Unions are literally one of the most underwhelmed things in C or any other programming language.
(Sorry for bad english) -
Many Indiana entrepreneurs are now turning to loans to find capital to grow their businesses. The ability to obtain a business loan plays an important role in the process of expanding activities and ensuring the sustainability of the enterprise. In this regard, various financial institutions offer a wide range of loan products for small and medium-sized businesses.
To obtain a business loan in Indiana, entrepreneurs can turn to banks, credit unions, and alternative lenders. For example, you can contact https://gofundshop.com/usa/indiana/ . Banks typically offer traditional lending products such as lines of credit, long-term loans, and guarantee financing programs through the Small Business Administration. In addition, there are many credit cooperatives in Indiana that specialize in providing financial assistance to agricultural and small businesses.
However, the Indiana business lending market is not always straightforward. Many entrepreneurs are faced with the problem of lack of credit history or insufficient collateral base, which makes it difficult to obtain a loan. In such cases, turning to alternative lenders such as online lending platforms can be a solution. These lenders typically evaluate an entrepreneur's creditworthiness based on a variety of factors, including the business's financial performance, personal credit history, and the business's future growth plans.
It is important to note that Indiana has seen an increase in interest in business loans in recent years. Many entrepreneurs seek financial support to expand their business, launch new projects or upgrade equipment. In this regard, local banks and financial institutions are actively developing new lending programs, taking into account the specifics of small and medium-sized businesses in the region.
Additionally, Indiana has many business support programs that can help you obtain a business loan. For example, the Small Business Administration provides loan guarantees that allow companies with limited credit histories to access financing. There are also government support programs that provide preferential loans and subsidies for the development of small and medium-sized businesses.
Thus, the Indiana business lending market offers a wide range of opportunities for entrepreneurs. Regardless of what industry the business belongs to, company owners have the opportunity to obtain credit resources for the further development and growth of their enterprise. It is important to choose the optimal loan product and contact reliable financial partners who can offer the best lending conditions.1