₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,489 members, 8,445,721 topics. Date: Wednesday, 15 July 2026 at 12:34 PM

Toggle theme

Seunthomas's Posts

Nairaland ForumSeunthomas's ProfileSeunthomas's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 36 pages)

ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 5:27pm On Oct 11, 2016
FrankLampard:
asalimpo 1 seunthomas 0
Grader..
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 5:27pm On Oct 11, 2016
asalimpo:
@op
your story seems fishy.
100k+ will generate between 50+ - 100+ source files.
at between 1k - 2k lines per file.
It will take you 1yr-10yrs to write 100k+ lines of code.
maybe less working at blistering pace.
So after churning all that code out, to count lines per file, you :
click on a file
scroll down
see the number
record it down somewhere
click on another file ...
by the time you're halfway thru, at the 25 file or 50th file, the tedium is getting to you.
You are beginning to think , isnt there a program i can download online to do this?
Your client too will be bored too.
If on the other hand, you choose to open all files in an ide, they'll be so many tabs, navigating will be uncomfortable and
you processor will run slow from having so many tabs open.

2) after a long tiring project, your client would not be interested in sitting down with you to do a line count
. Very unlikely

3) After seeing the tedium of manually counting codes per file, you'd have quickly hacked together a line of code program to automate the process for you ...

So i think you came up with that story to make the thread inviting..
But i may be wrong,but i think you're telling a fib (you dey blow fabu).
OK ohhh.

Mr Assumption.
Its always easy to look at how small you are and imagine that everyone is like you.

My project has more than 100 files in it.

Most of the files have between 500 and 1500 lines of code in them.

It did not take me 1-10 years but a full 8 months.

It was a process of write and rewrite.

We had to remove redundant code also, i am sure with the redundant code it would be well over 150k lines.

It was in Java.

Am not jobless na, why will i start counting lineshuh?

Am sure any reasonably good programmer should be able to devise a way to know how many lines of code.

By the way there are tools for that.

With all una git experience, una no even sabi anything.

grin shocked
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 5:19pm On Oct 11, 2016
asalimpo:
in dynamic languages, yes. Because they're typeless.
In static langauges like java...
Bro, you've go study java 101 more thoroughly and understand polymorphism cuz
this your argument displays some confusion on your part in this area.

array format is
<type> <identifier> <dimension> = new <type> <dimension>
e.g
String stringArray[][] = new String[1][2];

so if an array can contain multiple types , which are not of the same family (descendants of the same type)
how will the array instantiation statement be defined?



<type1><type2><typeN> <identifier> <dimension> = ...?
String, Integer, File [][] multiTypeArray = new String,Integer,File[3][5];

Sorry bro, but this wont work.
Really dont need another e-battle this week. Generally by design array datatypes support same or different types. Maybe you should do some more research about this topic. You will be surprised...
ProgrammingRe: Help: Issues Running Ubuntu On Vmware by seunthomas: 7:05pm On Oct 10, 2016
Most likely you are running a 32 bit version of vmware or your operating system is 32 bit. What operating system are you running and what is the architecture of your vmware(x86 or x64)?
ProgrammingRe: Is Seunthomas A Blogger Or Programmer? by seunthomas: 5:14am On Oct 10, 2016
mogozi:
He blogs most of the times on different programming topics. He teaches computer science to the less privileged. He also has a no codes policy. This is to develop theoretically sound programmers who do not acess to a computer.
He confided in me once that he has only a mobile phone.
You just joined nairaland in august this year and am already confiding in you? You cane is being soaked in hot fire in h*ll.
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 1:58pm On Oct 08, 2016
FincoApps:
LOL dude nor yarb the game, all the moves where hard coded.... I have been trying to implement Minimax algorithm to make it play perfectly but I think this is the hardest algorithm I've dealt with.

I remember begging this seunthomas guy to assist but he completely ignored.... I'm almost there sha cheesy
Una go insult person, una come dey expect help. Who go epp? angry

Secondly no be my responsibility to assist anybody. Na so one guy send me him school project for c code say make i help am do am.

I don do the work but i no go send am. Whats the point of being a programmer if you cant toil?

My only assistant is to guide, and not help people write their code.
ProgrammingRe: Seunthomas - The Greatest Programmer On Nairaland by seunthomas: 10:02pm On Oct 07, 2016
I see what you are doing sha. Google self dey see you.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 8:21pm On Oct 07, 2016
dhtml18:
I think anyone who actually went through the thread and nairaland programming board does not need to ask who is better between me and you - the difference is like HEAVEN AND EARTH.

Some people are even calling you a blogger, and I am trying very hard to help you resurrect your already tarnished image, but no, you no go gree - you are just worsening things for yourself.
Actually, i achieved what i wanted to do in this thread to weigh you.

You are not even heavy at all. I thought you may be at least some few steps from me but in reality we are too far apart.

Many of the people wey dey contribute no sabi anything na.

I see all your strategies but am not moved sha.

Wish you the best dude.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 6:49pm On Oct 07, 2016
codingground:
jeez am partially disappointed in this thread after going through all the 37 pages.
while am partially disappointed is because the kinda challenge i got isn't what i had in mind, tho i got a challenge it was rather a verbal challenge instead of the practical one i was hoping see.
mr op, you actually won this challenge(verbally).
plz dudes where is @airsaylongcon the guys seems to have something upstairs.
dhtml and op both have this problem of pride tho dhtml have some open source works to back his ego.
i saw a challenge (verbally) thats why am not fully disappointed.
who was that dude that said op's mouth is in a recursive loop? - you need to be arrested LOL.
What do you expect, i challenged the dude and his way to show he was a better programmer was github links.

Who dat one help??
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 6:47pm On Oct 07, 2016
Feeling like King Kong.

You know when one is great, they smaller guys always try to bring you down.

Its just natures law.

cool
ProgrammingRe: Is Seunthomas A Blogger Or Programmer? by seunthomas: 4:13pm On Oct 07, 2016
dhtml18:
Oh, you are getting it wrong. I am the celebrity here - people usually come to see if/how i am going to whooop your a*s*s.

While it is agreed that I am a FULL STACK PROGRAMMER / TROLL, people believe that you are BLOGGER (and not a programmer) - and to me, that is a VERY VERY IMPORTANT FACTOR.
Whoop wetinhuh??

Ok ohhhh..

I am laughing calabar laugh right now.
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 3:57pm On Oct 07, 2016
mogozi:
@ seunthomas read the last line...
that's a programmers way of saying you are a blogger!
Just so you know, I have a beef with computer teachers who can read codes but can't write any. You happen to be a the
chief of these crop of people.
You want a challengehuh?

For those of you who dont think am actually a code writer.

I am working on something that is guaranteed to blow your brains out.

LOL.

When its launched i hope you will patronize us sha.
ProgrammingRe: Is Seunthomas A Blogger Or Programmer? by seunthomas: 3:55pm On Oct 07, 2016
dhtml18:
There is even a rumour circulating that seunthomas and myself are the same person - and I have disclaimed this many times but it keep recurring.

@seunthomas, you know that every thread that carries seunthomas and dhtml18, will cause some people running over there to see what is latest.
And the board is very somehow at the moment.
You have overnight made 2 of us NL celebrities.

At least on programming section.

We are definately not the same person.
@dhtml18 does not know half the languages i know how to code in.
ProgrammingRe: Is Seunthomas A Blogger Or Programmer? by seunthomas: 3:43pm On Oct 07, 2016
I dont have a blog, else you would see me post links here.

@dhtml18 i really did not ask for this attention ohh.

I dont know why you have made yourself my social media strategist sha.

Dere is God ohhh...
ProgrammingRe: What Is 1.0? by seunthomas: 11:24am On Oct 07, 2016
1.0 is a floating point number or a double. Its not an integer. The difference is in the degree of accuracy provided by the decimal after the whole number.
I am not a mathematician but i assume it would be a decimal number also.
Once you have a dot(.) after the whole number it cant be called an integer or whole number anymore.
ProgrammingRe: How Many Programmers Are Looking For Work? by seunthomas: 8:05am On Oct 07, 2016
pcguru1:
I have been posting jobs and no one from NL likes to respond am beginning to think either they are scared or we have big men here
I have responded to a few by contacting the poster directly.

Most of them were a waste of time.

Anyone who wants to discuss project can contact the programmer directly.

Make una make the first move.
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 8:02am On Oct 07, 2016
pcguru1:
Not really seems like a waste of time to start counting lines of code for the purpose of informing people here, if it's for trimming down then yeah might be worth the effort.
Its actually to inspire yourself and others to do more.

If you are proud of your work am sure you would be curious to know how many lines of code is in it.

We dont need the exact number of lines an approximate value is in order.

Mind you very large projects like entire operating systems have known number of lines.
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 7:42am On Oct 07, 2016
Na wa for this our so called "Advanced level" programmers.

Una fit write enterprise applications with many files, but figuring out how to count the lines in your files na big wahala.

Me thinks something is up.
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 9:59am On Oct 06, 2016
timtoday:
I don't expect you to! Please just don't call me up on ridiculous post like this!
I could take my time to write you a proof but it wont make any difference.

Anyway no harm meant. Just having fun.

grin
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 9:44am On Oct 06, 2016
timtoday:
Good morning everyone.

@seunthomas, Please you probably should not have brought me up into this.
I saw your post, though I went through it there was no need making a comments.
Why? Because it is obvious you are living in your own reality with alot of false claims.
But since you called me up by name, I will yet help you see clearly that you don't know
what you claim you know.

Secondly, am responding because I felt you think that those who post more are likely to be
right or correct. Multiplying words on falsehood doesn't make such claims correct and the loudest person
in the room is not the usually the correct ones!

So, let me try one more time and see if you will get it.

@larisoft, mentioned to you that your code "WORKED" because

Your response:

Then check this and explain if your assertion is true.
class Test{



public static void main(String args[]){
boolean status=true;
char c='Y';
int v=100;
Object s[]=new Object[3];
s[0]=status;
s[1]=c;
s[2]=v;

System.out.println(s[0].getClass().getName());
System.out.println(s[1].getClass().getName());
System.out.println(s[2].getClass().getName());

}

}



My Comments:
If anyone runs that code of yours but have no idea what his going on such will immediately conclude
like you, that your answer to @FincoApps was TOTALLY right when you said


But of course, with a little pain of code, the obvious is revealed! How?

Instead of using this

System.out.println(s[0].getClass().getName());
System.out.println(s[1].getClass().getName());
System.out.println(s[2].getClass().getName());


like you did, do this


System.out.println(s[0].getClass().getSuperclass().getSuperclass().getName());
System.out.println(s[1].getClass().getSuperclass().getSuperclass().getName());
System.out.println(s[2].getClass().getSuperclass().getSuperclass().getName());


Maybe then you will get what I have explained to you in the previous post and what others are
now telling you.

They are all ACTUALLY a type of Object class. ARRAY in Java has a single TYPE!

Secondly, you also said this

Array "class" by design take the type they "refer" and as such are instances of such type and "sir" you can't extended,
of course nothing is impossible. Maybe you want to extend Java itself! Array are not like conventional classes! Get that sir?
And I don't think you can extend class java.util.Arrays. Please NOTE the "S".

Still on this your assertion:

ABBA Oga sir?! shocked
The primitive types, you gave in your code are NOT just UPCASTED! They were autoboxED in other words wrapped
if you will into their reprepective Wrapper Classes, which in turn are autoupcast into their MOTHER (or super if you will) class.
That is why I have use the methods getSuperclass twice to make you see it!

But if you had used instanceof like I told you in the previous post maybe you would have "healed" of this confusion!
I don't expect you to anyway!

Now to the part where you called me up!


@larisoft was right and wrong at the same time? But you did tell where he was wrong and where he was right!
You are only trying to play safe!
More so, the reason why your code works was NOT because "everything is an object in java", Please stop saying
that it make you look ____. I can't say it because am 2 yrs old remember? A lang with primitive types, that needed
a wrapper class of it's type wouldn't be such where "everything is an object"!

Oh! because the compilers didn't scream out with errors makes you believe "everything is an object in java"?
If only, you have been writing Java since "Odun gbogboro" like you said, you should have know that before
Java 1.5 i.e Java5, the compiler would have handed you errors, but thanks to autoboxing and her cousins!

Moreso, in plain text, (and if you will always tell layman the absolute truth, cos they will find out with time!).
Which makes this statement
of yours NOT TRUE!

What you called "conversion" doesn't happen EXPECT under some conditions, which is not part of your last quote.
You might have to go check that out! Am sure you will tell me you have read it all! Which is obvious you have not!

Try get the class name of "x" as you have it and check it's super class, then input primitive type int into the
array and try to dereference it like we did with the Object arrays previously!

Seriously, it would do you good to REALLY know what you are taking about! Or if you are Satisfied with where you are
please just stay in the thread where all you do is chest-beating and abuses. And if you must come up with some
study answering questions please just DON'T bring me in!

No, i don't hate you, in fact, you make me laugh hard with several of your "funny" assertion. But I hate to stay up hitting the same
point for several post!
There is no point trying to reason with you.
LOL.
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 8:18am On Oct 06, 2016
silento:
my was 6thousand that my largest
Nice.
ProgrammingRe: How Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 7:36am On Oct 06, 2016
FrankLampard:
How do I count. Because my IDE dey count added libraries too.
Just do an estimate na.
ProgrammingHow Many Lines Of Code Is Your Largest Work So Far? by seunthomas(op): 7:18am On Oct 06, 2016
This thread is just for fun.

I want to know how many lines of code you have written so far in one project.

Please dont share works that were combined effort.

I was involved in a project which lasted many months.

At the end of the project we (me and client) just jokingly decided to count the number of codes by looking at the line number on each page.

We discovered it was over 100k lines.

So fire away.

Please be proud if you have even done 20 lines.


Its not easy to pour 10 lines from your end not to talk of 20.
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 7:11am On Oct 06, 2016
FincoApps:
In that your popular thread with dhtml, I glanced at your profile from time to time... nothingggg.... It appears recently, you have started recovering from your Ego boost and acting normally
I no dey abnormal na.

I am actually cool.

My actions na just filmtrick.

I think the drama makes the threads interesting.

cool

Sometimes when i imagine the faces of those who engage me in arguments i just laugh.
LWKMD.

By the way i write code a lot......................
Never been a day i did not write a few hundred lines of code in the languages i know.
ProgrammingRe: Let's Be Honest Php Sucks When Building Enterprise Applications by seunthomas: 6:39am On Oct 06, 2016
On this issue of security, if una no go vex, let me explain somethings.

No language is actually more secure than another language. Contrary to popular belief, security is actually not built into the language(am open to alternative views sha).

So you cant say Java is more secure than PHP or C# is more secure than Java.

Although some languages are type safe like Java. But that in itself is not overall security.

So a java application is likely to be hacked as much as a php application.

But the openness(source code) of some languages make them easy targets.

Also some languages by default have security features implemented in their libraries/frameworks.

Although execution speed "wise" Java,C#,python,ruby are faster than php5, because php is interpreted(interpretation is slower).

Enterprise applications require support from a well known vendor, that is why banks will pick Java or c# first because they can get support from the IBM's,Oracle's and Microsoft's or their partners.
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 6:12am On Oct 06, 2016
FincoApps:
I wanted to say the same o
Like really, go and check my past posts.

I write code a lot here.

Una just wan be rebel.

Plain and simple.

angry angry angry angry angry
ProgrammingRe: Let's Be Honest Php Sucks When Building Enterprise Applications by seunthomas: 5:23am On Oct 06, 2016
For those of you who like to shout "Facebook is using php". Go online and do more research ohh.

By the way, if PHP is as good as many of you say, then companies like Facebook wont need to have created Hack.

Its because of the deficiencies of the former(PHP) thats why the latter was created(Hack).

Me just they think sha.
ProgrammingRe: Seunthomas - The Greatest Programmer On Nairaland by seunthomas: 5:20am On Oct 06, 2016
I actually was on NL to share with people and to help many out of the mediocrity they are in.

If una continue like this i go leave una for this una recession economy. angry angry angry angry angry angry angry angry
ProgrammingRe: Let's Be Honest Php Sucks When Building Enterprise Applications by seunthomas: 5:18am On Oct 06, 2016
DanielTheGeek:
It's still PHP man, Facebook had no choice than to find a way to make PHP work for them so they made HACK and the Hip-Hop Virtual Machine. I'd call it PHP on steroids.
ITS NOT PHP, is like you saying scala is still JAVA because it runs on the JVM.
ProgrammingRe: Seunthomas - The Greatest Programmer On Nairaland by seunthomas: 5:17am On Oct 06, 2016
Thirdwrist:
That guy that programmes with his mouth...
Na wetin you dey programme with na?? Una don start to provoke me again abi?
ProgrammingRe: The Greatest Programmer On Nairaland by seunthomas(op): 5:16am On Oct 06, 2016
dhtml18:
Can someone please answer this question - seunthomas is the mr-know-all on this thread (and not me)
I dont know all.
You dey vex??
I dont do PHP MVC. I used to use CI(which is a PHP MVC framework) a lot but its been a while i did anything php. Late last year.
ProgrammingRe: Can An Array In Java Hold Multiple Types? by seunthomas(op): 5:13am On Oct 06, 2016
larisoft:
In ur example, u are putting these types as their parent object (java.lang.object) and I already mentioned that while you could do this, you'd no longer be putting different types in one array as they are cast to their common type first.

Calling getclass on the object of course calls the overriding child method instead of the parent class and that's why you get the results you get.
You are actually right and wrong at the same time. In my array at compilation time, i am putting in primitive types which are all different types into the array. Simply am inserting totally different types at compilation and the compiler naturally would throw errors but because like i said in my other threads concept of "everything is an object in java" (Which was also argued at by @timtoday) the compiler actually accepts this values.

But the magic you describe at runtime, where the JVM now allocates enough memory to hold a generic object for our array.

But in plain text and for a layman, our array is taking different types but the JVM is converting it into java objects(which by the way happens to every primitive type) during runtime. So irrespective of if you do this:

int x[]=int[3];
the JVM will still convert into the associated Java type Integer which extends object.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 36 pages)