Truth is, it appears that I have been 'crazy active' on CR, and I caught up on a few things this week.
2
I actually have some JDOM bugs to address as well....
Actually, truth is, I have had some nice successes at work which are keeping me on my toes.... no good success goes unpunished, it seems.
Now I get to tell a bunch of people how a small change to their design will make a huge difference.... and I know that the more senior folk will be thinking 'duh, that's obvious'.
and the people who designed it too.... but, I have been there, and, well, it is easier in hindsight.
You know what's not fun? Writing really complicated code that you can't test whenever you want because you don't have a machine to put SQL Server on...
Today at work, I had 15 minutes of downtime, so I got to test this code for the first time... two major problems...
@palacsint I know you worked hard on the zombie-queue, but I have made things worse... I found a bunch of android questions that should have been tagged as java, but were not.
So, there are now some more revivals and necro's to get.
ok so I did something .... let's say dumb, to get my highscoresManager to work in Microsoft XNA and now when I try to export it into MonoGame (Xamarin) what I did is holding me back and I am not sure how to fix it....
So I'm trying to design a binary relation interface in Java and then implement it, but I'm not sure if I'm doing it right. I'd really appreciate a little feedback just so I know if I'm way in the wrong direction or not.
This is what I've got so far-
Interface:
public boolean compare(Object ...
I don't know, I need to figure out what I did to make it work and then make it work again or in a different way. I have the main game class entwined in itself so bad right now.....
Here's the start of my GCode phaser program I think I'm using to many List(Of String) which will later slow down my program is there any other way to implement.
I need to return a structured array so I can call to it anytime
Ex: if I had [Block6]G0 X-43.2178 Y14.9604 Z4.89
After processing i...
Below is some code which verifies a credit card number using the checksum as well as check if number of digits are appropriate as well if digits start with right numbers. I am not sure if converting the double into a string was the best bet. I wasn't going to at first but had trouble figuring out...
(OK, I am bias... but ....) C# is set up quite similarly to Java, but, it is more closely integrated in to the operating system. This means that, if you are programming for only a Windows system, that C# will likely give you better results.
If you are programming for a more general audience, then C# is not a useful tool at all.
.net is the framework - it's the Common Language Runtime (CLR) which executes Intermediate Language (IL) code, which is what C# is compiled to. It's also the Base Class Libraries (BCL), a rich set of namespaces (of which only a subset is Windows-specific) that provide a wealth of objects and interfaces to write your code with.
C# has some language features which Java doesn't (e.g. 'delegates'). The bigger difference between C# and Java is probably the set of APIs (library classes).
basics of python looks unnecessary cryptic, if i get into internals of it
coming from java backgorund
python says everything is object, but when i run this 'x = "abc" then y="def" then print(id(x), id(y)) then y="abc" then print(id(x), id(y))' i see different result. python is tryint to simplify things at presentation layer, despite everything is object in python
@Mat'sMug My point was why the software industry gets divided using C# on one side and java on other side, it helps neither to the company nor job seekers
I've watched quite a few videos and read a couple of articles on unit testing and I've tried my best to make this test case as good as possible. Where can I improve this test case?
I should probably add that SM2Scheduler is an implementation of the SM2 algorithm, which is used in flashcard softw...
I am trying create an algorithm for finding the zero crossing (check that the signs of all the entries around the entry of interest are not the same) in a two dimensional matrix, as part of implementing the laplacian of gaussian edge detection filter for a class, but I feel like I'm fighting agai...
@Mat'sMug Many companies use C# in middle-east area, where as colleges teach Java as part of curriculum which is similar paradigm. learning C# syntax would need extra time again and cumbersome.
@Sham A lot of languages will do "string sharing" under the hood. If you change y, then it will get a new address, and will not modify x. To be fair, you don't really every need to -care- in Python about these sort of details
@Yuushi i repeatedly see this statement 'you don't really every need to -care- in Python about these sort of details' said by python prog, i dont know how valid is this
@Sham - out of interest, if you want to work on server systems, then your language choices are limited. If you want to work on mobile systems, then your language choices are limited. If you want to work on MSoft systems, then your language choices are limited.... but, with any of C, C++, and Java, you can do all.
@rolfl i would look into the intention by which any technology is introduced, if am not wrong, gates has introduced C# after java started capturing market very quickly, he want his share or may be am wrong
C inventor or linux kernel inventor intentions were very clear
@Sham - as far as I know, two features in Java precipitated its success.... the GC (which won a lot of friends who were strugling with C/C++), and the multi-platform support
Those two features were not available (together) in any other 'real' language at the time.
@ChrisW this is what i thought to clarify, are technicians running behind technologies which want market share? dennis/linus didnt think like this before they wrote their technologies.
@Mat'sMug i saw the answer for history of C#, answer is a bit interesting 'Semicolons are mathematically proven to make your language at least 9% sexier.'
@rolfl until that is illegal, get microsoft earn money, but the catch is, microsft make customers to use windows platform, software companies think of microsoft technologies to write apps on tis, and technicians are trapped
@Mat'sMug there is a problem in learning multiple languages of same paradigm, i would prefer learning another language which is of different paradigm, BTW i dont support java/C#/...
@Mat'sMug - there is one for you: http://www.bayt.com/en/job/programmer-in-saudi-arabia-3031701/ check out the skills: Positivism towards supervisor criticism Adherence to Company's Policies & Procedures
@Mat'sMug How would you feel using java JNI to connect java with C/C++ code and write multiple paradigms in single application instead of using CLR in MS world
@Mat'sMug am asking about technical impact not biological?
today he is struggling and looking like a peanut technically in front of google
despite he is #1 richest in world latest
@Mat'sMug Google is famous today becasue google did not take gates approach to snatch the market share, gates worked like carlos slim of Samerica who snatched major telecom sector
My experience is in companies that have an IT department, like retailers. The type of code written in these companies ranges from VBA/Excel macros to public ASP.NET MVC Web applications, but it's always focused on one thing: data. I haven't been exposed to functional stuff, thus I don't see the need for it. Maybe it could help me become a better programmer, but I don't have time to devote to this for now. Too busy playing 2048 ;)
What language you choose to start with, is not likely going to be the language you end with... so, it is not as big a decision as all that.... you can change later.
The truth is, that most programming skills you learn in one language are transferrable to other languages.
6
Learn the 'core truths' of programming, and go from there.
If you have identified that C# is a good language to learn in your region, and it will be easier to transfer out of your support role sooner with C# than some other language, then do it.
You have bigger issues than the fine details of what language is best.
@rolfl I'd got a little further: unless you quit pretty quickly, there's almost no chance you'll use the same language for an entire career. Being a little older, I've used even more languages than you've listed (going all the way back to Fortran).
@rolfl I guess I must have skimmed over a message or two and missed that. When I did Fortran, it was pretty much the primary language on that machine (a Control Data mainframe).
To put my career in perspective.... one of the first tasks I was given in my first job, was to install windows 3.11 for workgroups on a system running a token-ring network.
It was the first 3.11 install in the building.
it came on 5 1/4 floppies.
That was all so that I could get a 3270 emulator up and running because they did not have a temrinal for me.
Yeah, I was 'fresh'.... early 90's out of university
Hey, I am happy at 41.... ;p
I was 'lucky' in that I was at a university in South Africa where we actually had the internet though.... there were only 4 of them.... because, most of South Africa was not connected to 'the world' even though they had modems and stuff.
By the time I graduated though, things had changed.
Found the Other Hard Drive. now I just gotta figure out what I want to do with it.... I should pull the hard drive from my laptop so that I can boot into it if I want to. then I can work on windows 7 stuff, I wonder if that would even work?
Yeah, well, now I sit at home with an internet connection that's way faster than the LAN I first build when I made myself a cross-over cable and plugged two comptuters together with laplink.....
@JerryCoffin Yeah, and you probably have a much better idea on how it works under the hood. As for me, I like it because I can be "lazy" and not write out all the implementation. :P
The following code does work how I need it to, but it's ugly, excessive or a number of other things. I've looked at formulas and attempted to write a few solutions, but I end up with a similar amount of statements.
Is there a type of math formula that would benefit me in this instance or are 16 ...
I had posted this here and was asked to move it to code review since my code works and am looking for the best possible solution : original post
NOTE : i have seen the JOIN in GAE related posts but GROUP BY in my
requirements made me make a new post and I have made a solution of my own whic...
Sigh, went to refactor some code, but thanks to go's incredibly verbose way of doing first class functions, it actually ends up about the same length and no clearer
@Yuushi Yeah--some cool things mixed with a lot of fail, yielding a whole that manages to do a lot right and still ends up as (IMO) nearly a completely failure.
This is the stored procedure I'm using to list some places in my website. How can I optimize it to perform well? Which functions in query is taking much time for its execution?
ALTER PROCEDURE [dbo].[PlaceListSelect] @cateID int,
@searchTxt varchar(50),
@userID int,
@RowIndex int,
...
I have written the following C code for calculating the Shannon Entropy of a distribution of 8-bit ints. But obviously this is very inefficient for small arrays and won't work with say 32-bit integers, because that would require literally gigabytes of memory. I am not very experienced in C and do...
Recently I worked on one of the Codility Training - Genomic Range Query (please refer to one of the evaluation report for the detail of this training).
The proper approach for this question is used prefix sum. Here is the implementation:
int mapping(char c){
if(c == 'A') return 1;
if(c ...
@rolfl Regarding Java... there's two things you can do if you want to target iPhone. a) Use XMLVM to "de-compile" your Java bytecode into Objective-C source code. b) Use PlayN (assuming we're making a game), and Xamarin (not free!)
I start with an array containing some 'ids' and some 'values'.
What I need is to organize the 'ids' in a new array to be, if possible, apart when the 'values' they are associated with are alike.
So I came up with a solution. If there is too much of a value type, the spreading is uneven. So if...
Given I have the following structure already existing:
private void acceptInner(final Path path) throws IOException {
String newId = FileUtils.readAndModifyFileEntry(StageRename.ID_FILE, "id",
idString -> String.valueOf(Integer.parseInt(idString) + 1));
BaseUtils.moveKeepExtensi...
and now I need to save my SO questions (used 3 already in an hour), for if I encounter a major issue during work and am hopelessly stuck... And I don't know of any good question anyway.
Hmm, random idea, would it be useful to have default class values? As int is 0 on default for example.
In object-oriented computer programming, a Null Object is an object with defined neutral ("null") behavior. The Null Object design pattern describes the uses of such objects and their behavior (or lack thereof). It was first published in the Pattern Languages of Program Design book series.
Motivation
In most object-oriented languages, such as Java or C#, references may be null. These references need to be checked to ensure they are not null before invoking any methods, because methods typically cannot be invoked on null references.
The Objective-C language takes another approach to this ...