The Big Programming Thread - Page 745
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Mr. Wiggles
Canada5894 Posts
| ||
enigmaticcam
United States280 Posts
On July 22 2016 08:16 tofucake wrote: no Good to know, and there will always be MSSQL jobs, but Linux servers are like 98% of the internet That depends on how you use SQL server. Your typical DBA manages a SQL server mostly at an infrastructure level, which would all be proprietary to Microsoft. But at an application level, learning to collate data and understand how to talk to a database is absolutely relevant regardless of the language or implementation. Also not all databases support internet based applications. There are a lot of internal applications in the corporate world that require a database layer, and SQL Server thrives there. | ||
netherh
United Kingdom333 Posts
On July 22 2016 22:14 Blitzkrieg0 wrote: Final and const are not equivalent at all. Setting a parameter to const says that the function will not change that value. Java's final makes it immutable so it can never be changed. For instance, I could have the following functions: void printValue(const int value) int addValue(int value) Consider the situation where I pass value to printValue, addValue, and then printValue again. I can pass my int to each of these functions and const just guarantees that the value won't be changed. If I made a final int in Java like you suggest then I wouldn't be able to call addValue. Const provides a completely different meaning. uhh... what? Both those functions just copy the value. I have no idea about java, but what I read on wikipedia implies final is exactly like const for variables, except that it doesn't carry to member variables of a const member variable in a class, apparently. Also, passing arguments by value and as const in C++ is generally a bad idea. At best it pollutes your interface, and at worst it's all just a big lie. | ||
Shield
Bulgaria4824 Posts
Compiler: Java 1.8 Client: Java 1.7 How do you compile it for Java 1.7? The following doesn't seem to work: javac -target 1.7 -source 1.7 Does it need rt.jar as well? Which rt.jar though? The one for 1.7 or is the one for 1.8 fine? | ||
spinesheath
Germany8679 Posts
On July 23 2016 01:51 netherh wrote: uhh... what? Both those functions just copy the value. I have no idea about java, but what I read on wikipedia implies final is exactly like const for variables, except that it doesn't carry to member variables of a const member variable in a class, apparently. Also, passing arguments by value and as const in C++ is generally a bad idea. At best it pollutes your interface, and at worst it's all just a big lie. Well yeah, it doesn't seem like a lot of thought went into those examples. Final and const still are not equivalent. This becomes apparent when it is used for a pointer to a const instance - meaning that I can only use that pointer to access members of the instance that have been marked as const. Final methods in Java can't be overridden, const methods in C++ guarantee that they don't alter their instance. For example like a well-behaved getter, but a setter would never be const. And while a getter doesn't change stuff by convention in Java, it is enforced by the compiler in C++. Therefore, if I pass my pointer to someone else as a pointer to const, I can be certain that the other code won't change anything about the instance, at all. Save for shenanigans like const_cast or C style casts of course, but you probably should have bad things happen to you if you do that. I really miss const in C#. And templates. It's always sad when you have to resort to using reflection to prevent code duplication. | ||
Blitzkrieg0
United States13132 Posts
| ||
mikedebo
Canada4341 Posts
I spent the better part of the last couple years editing "500 Lines or Less", which is basically a bunch of domain-expert programmers writing short example programs in their domain and explaining the what and why of their decisions. It's free if you want to take a look at it here (scan down to "500 Lines"), and all profits on the paid versions go to Amnesty. I didn't realize this thread existed on TL, but I just noticed now and figured maybe some folks here would find it interesting ![]() | ||
Nesserev
Belgium2760 Posts
| ||
Deleted User 101379
4849 Posts
It's been a while since I developed in Java, though I was fluid in it 10 years or so ago. Does someone have experience with Hybris and can tell me how working with it is in general? I'll get trained in it of course, but I'd like to know what I'm getting myself into. Also, what's the usual Java IDE? Still the awful Eclipse? I feel a bit bad for leaving my current job, since I'm essentially 50% of the programming power and the company already has big trouble getting any programmers at all, so now they're in deep trouble, but in the end the offer was too good to reject. | ||
![]()
zatic
Zurich15312 Posts
On July 26 2016 15:39 Morfildur wrote: I've just accepted a new job for developing a brand new Hybris shop in Java. It's been a while since I developed in Java, though I was fluid in it 10 years or so ago. Does someone have experience with Hybris and can tell me how working with it is in general? I'll get trained in it of course, but I'd like to know what I'm getting myself into. Also, what's the usual Java IDE? Still the awful Eclipse? I feel a bit bad for leaving my current job, since I'm essentially 50% of the programming power and the company already has big trouble getting any programmers at all, so now they're in deep trouble, but in the end the offer was too good to reject. Why don't you come work for my company ![]() Never feel bad about leaving a company. That same company will fire you without hesitation should they not need you anymore. It's just business. | ||
Deleted User 101379
4849 Posts
On July 26 2016 16:50 zatic wrote: Why don't you come work for my company ![]() Never feel bad about leaving a company. That same company will fire you without hesitation should they not need you anymore. It's just business. Well, I'm not a Hybris person yet ![]() However, I'm supposed to build up my own team from scratch for the development of the shop with full control over who I want to have, which means I will have to find Hybris programmers myself. Do you want to move to Flensburg? It's much prettier than Berlin and a beach is just on the other side of the town - just the weather is rarely good enough to actually enjoy it ![]() We might even be able to compete with the Berlin wages, considering how terrible those are ![]() My current company is very... well, social, and I have high standings with the management. It will be very different moving from a 30-people company where everyone respects my opinion to one that has several hundred employees just at the HQ. | ||
![]()
zatic
Zurich15312 Posts
![]() I don't even have any touch points with hybris personally but I know that the company is struggling to find people. But hey, being able to build your own team sounds great so congrats! Also, I am from Freiburg, so Flenburg is basically the North Pole to me. | ||
Khalum
Austria831 Posts
On July 26 2016 16:50 zatic wrote: Why don't you come work for my company ![]() Never feel bad about leaving a company. That same company will fire you without hesitation should they not need you anymore. It's just business. Do you by any chance need c++ people too? I'd not mind living in Berlin for a while.. The Weinerei on Griebenowstraße is definately a place I'd go to every other day or so.. Sorry for bein offtopic.. | ||
Djagulingu
Germany3605 Posts
On July 26 2016 15:39 Morfildur wrote: I've just accepted a new job for developing a brand new Hybris shop in Java. It's been a while since I developed in Java, though I was fluid in it 10 years or so ago. Does someone have experience with Hybris and can tell me how working with it is in general? I'll get trained in it of course, but I'd like to know what I'm getting myself into. Also, what's the usual Java IDE? Still the awful Eclipse? I feel a bit bad for leaving my current job, since I'm essentially 50% of the programming power and the company already has big trouble getting any programmers at all, so now they're in deep trouble, but in the end the offer was too good to reject. IntelliJ is the Master Java IDE now. Even the community edition is better than eclipse and netbeans combined. | ||
Deleted User 101379
4849 Posts
On July 26 2016 21:50 Djagulingu wrote: IntelliJ is the Master Java IDE now. Even the community edition is better than eclipse and netbeans combined. Good to know. I'm using PHPStorm from the same company for my PHP stuff, so that IDE might actually be familiar. I'll try it out. | ||
![]()
tofucake
Hyrule18968 Posts
| ||
amazingxkcd
GRAND OLD AMERICA16375 Posts
On July 26 2016 21:50 Djagulingu wrote: IntelliJ is the Master Java IDE now. Even the community edition is better than eclipse and netbeans combined. until M$ puts out a visual studio with full support for java, this will be fact | ||
Nesserev
Belgium2760 Posts
| ||
Shield
Bulgaria4824 Posts
On July 27 2016 00:35 Nesserev wrote: Which will never happen. Also, Visual Studio for anything not .NET... meh. My main language from university was Java, but I dislike it nowadays. Still useful experience to learn concepts, but it doesn't offer great performance. I think C# is the better Java minus portability. | ||
Frudgey
Canada3367 Posts
I'm okay to use HTML, JavaScript or JQuery to try and do this. I was just wondering if anyone knows what I am talking about. For context, thousands of values are being loaded into a text area and I think it's slowing down the HTML page that it's on, so I want to try and rectify this. Thanks! | ||
| ||