@sh_code
That looks like some ancient Unity3d code, I dealt with years back when the UI system is practically generated via OnGUI() call. When they finally move the load of UI design off the OnGUI call to an actual Canvas Object for designers, I threw all the UI layout work back to designers.
Best posts made by WPT
-
RE: Confuse your colleagues
-
RE: Newest Scratch scam: Ubisoft release a Scratch "learn coding" game
@_P_
The media/marketing has to frame it in such a way that it does not hurt the user's ego... -
RE: Newest Scratch scam: Ubisoft release a Scratch "learn coding" game
Let me just throw this in to the basket of "games that attempted to teach programming".
-
RE: We only hire the trendiest
@loopback0 In some places where I had worked before, being able to blindly copy and paste from the Internet would have been considered an advanced skill to have.
-
RE: Guy brings down thousands of npm builds
@cartman82 Wait... WTF do you need nested dependencies just to check a number?
-
RE: Guy brings down thousands of npm builds
@boomzilla Someone should start writing this up as an article.
-
RE: World of VNC
I might have a couple of forgotten VMs somewhere out there holding nothing of importance to me as of present. And I am sure those VMs are not being billed to me.
The fun part: I can't even remember which hostings were they under.
-
RE: Safe Space
@blakeyrat said in Safe Space:
Our estimation "planning poker" "deck" contains an "infinity" card (meaning "this task can never be completed based on what we know of it's specification now"-- think something like "as a user, I'd like to have peace in the Middle East") and also a blank card to be used when you think there's not even enough information to even guess, and it should go back to the PM to spec-out the feature more. If you're actually doing Agile estimations, I'd expect you to have a similar arrangements. (And yes, as other people said, you estimate in "points" which are purposefully vaguely-defined, not hours and days.)
I am so gonna steal that 'infinity' card and blank card idea.
-
RE: Do you always decouple everything in your code?
@sockpuppet7
Are you the only dev working on the endpoint/component? If you have collaborators working on the same endpoint but different components, it makes perfect sense for them to get you to decouple everything so your collaborators can get to work as soon as possible without waiting for your implementation. If you are alone working on that endpoint, just fuck it and refactor when you need to later. -
RE: Guy who create unused Classes VS Guy who doesn't know normalisation or basic OOP
Ah, the guy who doesn't know normalisation is also in charge of the project management. I was assigned to this position mid-project. He just gave me a Power Point slide show that shows what each corresponding page should do. That's a month ago.
Now, Friday, 5 P.M. last week, he came up to me and the asked.
"Everything is done now, right? The deadline is next Monday."Nothing about the deadline was mentioned previously.
I could say that it could be partly my fault for not asking when the deadline was even if the project manager does tell you when the deadline is for some reason.
However, if I were in charge of a project I would tell my team members what our goal is, at least.
That sounds exactly like my previous workplace. Don't worry, you only stayed until 2 am. Previously, I only returned home 2 times a week. I had dumped all my necessities and toiletries at my previous workplace.
-
RE: Every month do you write a monthly report in a monthly Microsoft Word monthly file every month?
We're developers, not middle management. Middle management are the ones that are supposed to do this shit. If they do not do it, what is the point of having them in the company?
-
RE: Finish 3 roughly similar bulletin boards in 1.5 days by copying and pasting from a roughly similar project: WTF or not?
Everyone of us specializes in different fields even in IT. So to say that each one of us would complete the same specific task in the same time frame is ridiculous. Our thought and analysis processes are unique to one another. Well, if this results in you being called out to be incompetent, then all the more that you should admit perhaps that you are not that competent in that particular task. That goes to say that some of us might also not be as competent in that particular task. But that should not make everyone of us incompetent as a whole.
I, for one, admit that I am not a good copy-and-paste data entering machine, as required by your job description/
-
RE: What's with ad-blockers being baked into browsers lately?
I should probably set up a sandbox system for me to click on the ads and see what else gets included into the system. It will sure be interesting to watch the system get flooded by pop-ups and weird shit, in the name of experimentation.
-
RE: J-Pop?
@Nprz It counts. I mean lets keep this topic off from any finger-pointing, rants and flamings. Lets just keep this topic a corner for sharing our tastes for the various music and songs.
-
RE: Native GUI toolkits: are they still used much?
Another reason why html is used nowadays for most UI comes from a business perspective : It is easier to find Web developers than native developers.
-
RE: c# - Any clean way for generic parent to get type of child?
@MrL
The risk of abuse, leading to tightly coupled dependencies lying all over the place, far outweighs the benefits of easy access to the singleton.
There might be valid use case for singleton, like object describing application state, but for the rest of the modules, there is more arguments for being able to control component lifecycles when using them. -
RE: Guy who create unused Classes VS Guy who doesn't know normalisation or basic OOP
Welcome to the eastern half of Asia where people can live out their lives within their workplaces.
-
RE: Guy who create unused Classes VS Guy who doesn't know normalisation or basic OOP
It really largely depends on whether is it MNCs or SMEs that you are referring to.
MNCs, you deal with shitty management + politicking shit.
SMEs, you deal with shitty coworkers + management.60% of your work in MNCs will be project management, 40% is just trying to hack shit stuff together, no development.
60% of your work in SMEs will be trying to patch up all the 3rd party stuff that management bought because they sound cool, 30% in stupid unnecessary long meetings that just serve to inflate the boss's ego, the last 10% is development. -
RE: J-Pop?
I will listen to anything from Kajiura Yuki. I am living in Japan currently.
https://www.youtube.com/watch?v=EZijw8n5GM0 -
RE: My Daily WTF of today
I am currently working in Japan after leaving that shithole of my country.
Well, the tie/suit stuff is what the people call here the salarymen of the Showa era, meaning companies with a traditional background like the banking/finance/service industry and oh, the government.
Tech companies try not to do overtime as the cost is high. The labor laws are strict against companies that get their employees to do overtime. Even if you want to work overtime to rush for a project deadline, your PM will force you to stop when it hits 9 pm. Employees who do not need to meet clients and do business dealings are not required to dress formal when they work.
-
RE: J-Pop?
I just loop her soundtracks to stop my brain from over-engineering my code and stick to the plan I made before I started coding. Definitely good to keep one motivated at work.
When I really need to get fired up to do anything at all, I will just start with any song from Jam Project.
-
RE: When the reviewer doesn't understand my Javascript it's his fault
@Tsaukpaetra said in When the reviewer doesn't understand my Javascript it's his fault:
@levicki said in When the reviewer doesn't understand my Javascript it's his fault:
How do you mark private memebers of the class to serialize/deserialize them?
You don't.
@levicki said in When the reviewer doesn't understand my Javascript it's his fault:
How is the test framework accessing your private methods?
It shouldn't be.
@levicki said in When the reviewer doesn't understand my Javascript it's his fault:
Then you don't understand reflection at all.
Probably part of this is true.
I remember there was a discussion in the .Net issues section about whether to allow external excess to private fields with attributes via reflection, since it is not a good practice and is not recommended. But Unity Editor as a product relies heavily on this feature to expose private fields to the Editor UI to allow level designers to set starting parameters. As of now, the Roslyn analyzer will just keep on being a noisy ass and fire off warnings for the SerializeFieldAttribute.
-
RE: When the reviewer doesn't understand my Javascript it's his fault
@hungrier said in When the reviewer doesn't understand my Javascript it's his fault:
@levicki said in When the reviewer doesn't understand my Javascript it's his fault:
Let me get this straight -- you are equating "features" in Visual Studio with ads?
No, I'm demonstrating that there's a difference between suggesting and doing
I keep forgetting that the Return key for Visual Studio autocompletes for me and I had to keep deleting autocompleted stuff. Sometimes, it is just annoying. Intellisense, IMO, is 50% helpful and 50% annoying.
-
RE: My Daily WTF of today
I'm surprised myself that I didn't realise this before but I just did.
This 2 million dollar project uses varchar type columns to store dates.
I can safely insert "Putin is my best friend" in any date(varchar type) columns.
I have to get any damn "date string" which looks like "20160126", substring(0,4) to get the year, and put them back as "2016-01-26" to display to the users.
FML
Oh btw, did I tell you that we use
SELECT MAX(ID) +1
to get the next sequence value?So do you end up with "20160199"?
-
RE: Do you ever sort a b-tree(or whatever) in your daily job?
@cvi said:
Yes, I use trees/graphs/etc regularly, and implementing specialized versions of such data structures is frequently a core consideration of whether or not a certain project succeeds.
What kind of project?
Because I've done web analytics, SMS message processing, and medical enrollments/billing, and this shit has never come up.
Projects like mine, "Games"
-
RE: Confusion over Korean
It could be simply your tone or body language. It may have sound as though you are challenging the guy for blame.
On the other hand, that guy sounds like "So the bug isn't actually a bug and is someone needs to be blamed and that person is not going to be me".This is kind of common in big Asian corporations, where a lot of effort is spent on finding someone to blame for the problem, rather than addressing the problem.
-
RE: Confusion over Korean
I never said it was culture, just how office politics are being played out in most big Asian corporations.
My home country's civil servants love to take pride in being "efficient" but when something goes wrong, the action taken to remedy a simple issue like a broken air-conditioning in a room can take up to 2 weeks, as they need to spend more than a week on finding a person to put the blame on and then call up the service personnel. -
RE: WTF NPM
@Carnage Sounds like Git's biggest problem is the idiots that try to use it.
git's biggest problem is there's too many ways to use it and most of them are
I spent quite some time at some point attempting to convince a colleague that being able to maintain significant differences between your own working copy and other people's while at the same time doing unrelated work is, in corporate settings, a misfeature.
I sort of realized that the use-case for git in the corporate world, is really limited. What usually is desired in corporations is central control of source code, which eventually makes svn the most fitting solution for most corporate use-case instead of git.
-
RE: 🔥 Doctor, my leg hurts when I stab it with this JavaScript!
Only if you are being a pedant.
I wouldn't call something like Google Docs a website ... while it does have a web address. It is a Office suite written in JavaScript. I think everyone would agree that a office suite is a group of applications.
EDIT: Google Docs isn't just a word-processor.
It is not a website. It is a webpage hosted on sites of Google. -
RE: c# - Any clean way for generic parent to get type of child?
@topspin said in c# - Any clean way for generic parent to get type of child?:
I still don't know what's speaking against the obvious two-liner solution or a template version of it. Something like the following (C++) should be possible in C#. Repeating the class name once, as in the OP, sounds better than reflection and other horribleness.
class Diagnostics final { Diagnostics() = default; public: static Diagnostics& instance() { static Diagnostics self; return self; } };
In C#, GetType() should always return the derived non-generic Type. Unless some idiot overloads it like the following.
class GenericClass<T> { public Type GetType() { return typeof(int); } }
-
RE: Every month do you write a monthly report in a monthly Microsoft Word monthly file every month?
@WPT said:
what is the point of having them in the company?
Make you write the report, show it to the CEO and courier the insults back to you.
If that is the case, refer to fbmacs tips
-
RE: c# - Any clean way for generic parent to get type of child?
@Cursorkeys said in c# - Any clean way for generic parent to get type of child?:
I have a generic class:
public class PhoenixSingleton<TSingletonType> where TSingletonType : PhoenixSingleton<TSingletonType>,new() { }
And this just looks janky and is annoying me:
class Diagnostics : PhoenixSingleton<Diagnostics> { }
Is there any other way to get the type back into the parent that I'm missing?
Just use GetType() in parent. It works for me. Since you have an instance, GetType of instance will return the derived type on that instance.
-
RE: Massive layoffs coming your way
I'd like to see how actually employable these laid off oldtimers are.
Similar things are happening in the old communist-era "public-owned" companies in Serbia. They are laying off 50-60 year old clerks, access/excel programmers, middle managers. People who spent their entire career "maintaining" some legacy system and otherwise hiding from work. People who consider showing up on time and being on good terms with the union people the sole measure of success.
If this is the same type of thing with IBM, I'm not sure I feel all that sorry for those complainers from the article.
You can find tons of those "oldtimers" in a small country at the tip of the Malay Peninsula in South East Asia. Some of these "oldtimers" are not oldtimers either, the mindset however, is that of what you just described.
-
RE: Visual Studio 20(fuck you)15
@abarker I did not possess a copy of 2013. But I worked with 2012 and 2015. Well, based on my experience, backwards compatibility seems to have gone backwards when the version number increases. Or is it just that it takes an awful time for me to navigate to the goddamn build configurations, before giving up and just text-editing the solution and project files.
-
RE: J-Pop?
最近はまっている:鈴木このみ
(My latest craze: Suzuki Konomi)
https://youtu.be/dP9rUj_ENS0 -
RE: Is this candidate a genius or a potential disaster?
@Magus said in Is this candidate a genius or a potential disaster?:
@fbmac said in Is this candidate a genius or a potential disaster?:
@wft said in Is this candidate a genius or a potential disaster?:
giant god classes with thousands of tentacles
how many tentacles should a proper class have?
In software? Oh, probably as few as possible. In some cases you get lucky and only have one!
Japan? I don't think numbers are the right question.
"What are the tentacles for?" would be the right question. Oh and probably "Whose tentacles are those?" too.
-
RE: J-Pop?
@Vaire
では、次の曲は欅坂46の「サイレントマジョリティー」。
https://www.youtube.com/watch?v=DeGkiItB9d8 -
RE: J-Pop?
Today's song: Uninstall by Ishikawa Chiaki
https://www.youtube.com/watch?v=ps0_QRzlp9k -
RE: J-Pop?
@Vaire
@Magus
How about something more indie?
Kurokamimidareshi Shuratonarite
https://www.youtube.com/watch?v=FT0eesmTSLc