« first day (2281 days earlier)      last day (2659 days later) » 

7:00 PM
if you can't, stop accusing me
 
@Unihedron Rude word != Rude sentences :)
 
@ItachiUchiha idc find me one
 
> It's so messed up tho, but I will post.
> considering you wrote it, it's kinda expected
 
Am I not right for implying that a beginner shouldn't be ashamed of writing poor code while they don't have enough experience?
 
I hope you would agree that there are better ways to put it
 
7:03 PM
if better means more efficient, no, there aren't any
 
No. better != less efficient
 
@ItachiUchiha please suggest what a better statement means then, if it isn't for efficiency
 
better == more useful == efficient
 
yeah that's what I said
if better means more efficient, no, there aren't any
 
user6857832
7:11 PM
@ItachiUchiha
 
user6857832
It jus works for some, but it's messed up anyway.
 
user6857832
So that's why I'm writing it again, cuz my previous code is messed up, and the logic I'm using is jus trash.
 
user6857832
At what time ya gonna come on tomorrow? Cuz it's almost 1am here, So I may go to sleep, but I wanna know tho lol, how should I code lol
 
user6857832
@ItachiUchiha
 
user6857832
@Unihedron Lol plus It's fine, I don't really mind it cuz I know I'm jus a noob lol, who can't code properly yet haha.
 
7:16 PM
Feedback :

1. `Scanner` should be a part of the BowlingGame and not Bowling
2. `startGame()` doesn't seem to belong inside Bowling either
3. user input should be passed as a parameter to the Bowling class and it is its reponsibility to find whether its a spare, strike, or just plain points.
4. Each frame can have 2 chances, you don't seem to take that into consideration. Or am I missing something?
 
user6857832
@ItachiUchiha Yes they do have two chances.
 
user6857832
But if it's a strike then the user gets only one chance
 
OK now I see them...firstShot and secondShot
 
storeStrikeValue = i; <- you're overwriting previous strikes in the event of consecutive ones
 
user6857832
But I'm not gonna fix it lol, cuz It's really messed up. Plus the way I'm doing is prob wrong.
 
user6857832
7:18 PM
So I wanna write a new code.
 
user6857832
@Unihedron Yea, cuz the values will change later.
 
user6857832
Like once I get a strike then whole field needs to be changed.
 
@Hemlata you're changing the value even when there's an unfinished task
there's your problem
 
user6857832
Nah, it's only if it's a strike.
 
the task isn't done because your code doesn't get to do it, it's already overwritten in the event of consecutive ones
 
user6857832
7:21 PM
Plus I haven't added the code for other way like if it's a strike first and so on, So It won't gonna work.
 
user6857832
Plus I need a good algo to code it, what Am I doin is jus trash with lots of code.
 
there are two good times to start over
 
user6857832
@Unihedron nah, It has nothin to do with it. I already checked it so many times.
 
user6857832
Yea, but I need some hint.
 
what hint do you need?
 
user6857832
7:23 PM
@MadaraUchiha Can ya please tell me how do I calculate the score if it's a strike/spare?
 
user6857832
@Unihedron The way to calculate.
 
27 mins ago, by Unihedron
record all the rolls first, calculate it all in one go afterwards when you have all the data recorded
 
user6857832
@Unihedron But I want it to give output right away.
 
@Hemlata then do that?
 
user6857832
I don't know how to
 
7:25 PM
do you not know what code to write or how it is calculated in bowling?
 
user6857832
Hey, please leave a text here for how do I calculate strike/spare. I jus need some hint. It's too late, so ima off, But I'll come on in mid night to check your text lol. It'll be appreciated if ya can help me. @MadaraUchiha
 
user6857832
@Unihedron Nah.
 
@Hemlata It's a multiple choice question and "nah" isn't an option.
 
user6857832
Yea.
 
Which don't you know?
 
user6857832
7:28 PM
I told so many times lol
 
Yes, about how your trash code (you said this yourself) works, not about how it should actually work.
 
user6857832
Well my head is hurting. Ima off. Cya.
 
cya
 
7:47 PM
Hello everyone!
Could someone advice some book (article, whatever) for C# developer that is going to switch to Java?
 
"How to google: The Ultimate Guide to finding everything!" by Niklas Goeke.
 
someone give me a music suggestion
 

 A E S T H E T I C S

we're just looking for good music! :D
 
sweetness
listening to your suggestion on there
I'm diggin this breakbeat / dnb feel to it
 
7:52 PM
eww spotify
 
yah god damn spotify do I need to signup to listen to it?
fear of the dark is an epic song though
@YuriTceretian Check this guy out, it's like a heavier rush almost.. djenty rush almost
 
Great! It reminds me Liquid Tension Experiment
 
@Unihedron I didn't realize that other room was an anime and manga room, lol my song has nothing to do with either
@YuriTceretian yeah I can sense that!
 
@ballBreaker meh
 
Also sick avatar, Samurai Champloo is epic...speaking of good music.. that anime has my favourite soundtrack of any show, ever
 
7:55 PM
I'm thinking of switching jam.unihedro.com from jamexchange (dead room) to that but again wrong audience
 
Yeah you mentioned that room before
Did it die of natural causes?
 
ah
I'm clever
omg amazing
I plotted a graph to solve a problem I've been stuck on for weeks
 
sits patiently and waits for the eureka moment
 
in hindsight I'm dumb for taking so long but
 
@Uni did that chat get frozen for being off-topic, or just lack of activity?
I'm highly considering opening a new room here
 
7:59 PM
I think it's a lack of activity
 
Oh okay, well I guess I have nothing to lose opening a new one anyways
 
gogogo
I'm betting it would get frozen within 4 months
 
Yeah probably, but screw it!
 
did you make it yet
 

Music Exchange

Share music! No limits
Name is up for debate and the description, just wanted to get that shiz made
 
8:03 PM
@Hemlata Spare just means that you dropped all ten in your second try
Strike means you dropped all ten on your first try
Spare isn't special
If you Strike though, you don't have a second try for that round, you just go to the next round, and whatever you do in the next round, you get double the score.
 
Don't spares have some other rule with them?
 
like what?
 
I dunno
I thought they were special
 
OakBot Online.
 
8:36 PM
Hey guys
 
sry for stumbling in here so roughly, but I hava a Java question and I think you guys can help me
 
shoot
 
I am right now creating a webapp using Java and I am looking for a lib that can do some kind of account system for me
 
account system as in?
 
8:42 PM
just something basic, users can register with a mail address, set a password and get some kind of api key, that's it
 
if it is that basic, you can code it yourself. there isn't a library, but you're looking for a content management system.
 
I am not sure if something like that exists. You can get some basic security features in spring-security
 
@vatbub do you need your users to register separately for API key? isn't auth through 3rd party (FB, Google etc) enough?
OTOH 'api key' sounds kind of enterprise already, so if you wanna go full-on, try keycloak
 
No, it's not an enterprise project :)
But I am afraid that if I code it by myself, it is goig to be less secure and more buggy than using something already existing and well tested
*going
 
you're looking for a content management system.
 
8:50 PM
in a java webapp?
YOu mean something like Wordpress?
*You
But spring security sounds quite promising
 
well, I'll have a look at that, thanks guys :)
 
9:44 PM
hi, im using springboot and trying to connect postgres, but im getting the following error:

Parameter 0 of constructor in org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration required a bean of type 'javax.sql.DataSource' that could not be found.
- Bean method 'dataSource' not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
- Bean method 'dataSource' not loaded because @ConditionalOnBean (types: org.springframework.boot.jta.XADataSourceWrapper; SearchStrategy: all) did not find any beans
any idea?
 
10:02 PM
@ChristopherAhPoong We're going to need to see more than the error I think.
Where's your data source bean?
 
10:42 PM
I was reading about aspect oriented programming and apparently it is quite common for it to be used in Mocking frameworks. Can anyone show me an example of it being used? I looked at the Mockito source on github and searched the word aspect and nothing came up.
 
what's aspect oriented programming?
 
Oh I'm a newbie when it comes to aspect oriented programming, i just started learning about it
You should take a look at the wikipedia page
never mind i found one
jeasytest is a java mocking framework that uses aspectj
 
11:17 PM
!!wiki aspect oriented programming
 
In computing, aspect-oriented programming (AOP) is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does so by adding additional behavior to existing code (an advice) without modifying the code itself, instead separately specifying which code is modified via a "pointcut" specification, such as "log all function calls when the function's name begins with 'set'". This allows behaviors that are not central to the business logic (such as logging) to be added to a program without cluttering the code core to the functionality. AOP forms...
 
Yeah, I have no idea what that means.
 

« first day (2281 days earlier)      last day (2659 days later) »