Lounge<C++>

Today we're daydreaming about C++26 reflection
Sep 15, 2023 16:56
It seems there is no channel for golang.
 

Java

Dedicated to the discussion of the Java programming language a...
Mar 25, 2022 14:28
If we store reference to someobject in threadlocal, ITs still possible for multiple threads to breach thread safety, right? Because Threadlocal does not create deep copy of the object.
Mar 25, 2022 05:47
is this understanding correct that every thread has its own ThreadLocalMap object which stores the mapping from ThreadLocal to values. Every thread shares the same threadlocal object.
Mar 14, 2022 08:54
which part of the memory classloader or garbage collector program is stored. Is it heap ?
Dec 11, 2021 10:41
both should perform same irrespective of size of c
Dec 11, 2021 10:40
for (Iterator<?> i = c.iterator(); i.hasNext(); ) modified = remove(i.next()) vs for (Iterator<?> i = iterator(); i.hasNext(); ) modified = c.contains(i.next())?i.remove():false;
Dec 11, 2021 10:36
I dont understand how does it make algorithm faster
Dec 11, 2021 10:35
Why AbstractSet's removeAll iterators over the smaller collection
Dec 2, 2021 12:45
What does fairness parameter means then. If Its the OS that has to take the final call, why Java lets programmer to specify fairness parameter to schedule a thread that has been waiting the most.
Dec 2, 2021 11:49
Zoe can you please tell me if i got it correctly.
Dec 2, 2021 11:27
@Zoe Do you mean JVM scheduling at process level and OS scheduling at System level. Is this understanding correct. I mean to say while JVM decides which java threads gets executed next, while OS decide while next thread (that could be java one) among all threads running on the system gets executed next.
Dec 2, 2021 11:21
What does it mean when I read "JVM schedule threads", Aint it OS who always schedule threads for running.
Apr 17, 2021 13:41
is this an example of decorator pattern
Apr 17, 2021 13:41
return new Comparators.NullComparator<>(false, comparator);
Apr 17, 2021 13:41
Just saw following code in Java source code:
Apr 3, 2020 11:49
if jaxbObject refers to java object to be marshalled to XML, What would be the name of the objects to be deserialized into Json.
Apr 2, 2020 10:44
I think this should not work because GSON does not use setter and getter methods to set/retrieve property.
Apr 2, 2020 10:43
Could someone tell why if this is a correct solution to provide default value while working with GSON stackoverflow.com/a/30219311/35917
Mar 30, 2020 10:41
I agree, Boolean was my first choice too. Because of existing code, I am forced to make it Enum for now.
Mar 30, 2020 10:34
I have an enum Capability that have following values: ENABLE, DISABLE. Is capabilityType name sound good for such an enum ?
Mar 26, 2020 16:51
@Zoe Sure
Mar 24, 2020 07:04
Good morning
Mar 24, 2020 06:46
Is it possible to have one table having one-to-many relationship with multiple table in hibernate. e.g. Table1 have one-to-many relationship with Table2, Table3, Table4. I will be storing Table1's primary as foreign key in Table2, Table3, Table4.
Mar 23, 2020 13:18
Could someone help me take decision on design part, please :)
Jun 11, 2019 09:40
@Neil @Hans1984, Now I know forgiveness have names too.
Jun 11, 2019 09:22
oh it works, never knew. Sorry for interruption guys
Jun 11, 2019 09:22
/fatcat
Jun 11, 2019 09:18
I mean cat
Jun 11, 2019 09:18
She is so fat
 
May 6, 2021 06:34
Not sure what I am missing here
May 6, 2021 06:33
Its only printing 1
May 6, 2021 06:33
data="1
0
1
0
1"
IFS=$'\n' read -r -a profileList <<< $data
for profile in "${profileList[@]}"
do
echo $profile

done
May 6, 2021 06:33
Can someone please look into this question
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jun 3, 2020 09:16
@Tpojka Thanks for letting me know the impact. Fortunately there is no index on that column as well.
Jun 3, 2020 09:13
I think Its safe to just execute "Alter table tablename oldcol newcol smallint(6)"
Jun 3, 2020 09:12
@Tpojka That column is not used as foreign key in other table.
Jun 3, 2020 09:06
using ALTER table command simply
Jun 3, 2020 09:06
Is it okay if I change type of bit column to smallint in MYSQL ? I cant see any problem though
May 28, 2020 05:44
nice
May 28, 2020 05:25
Any though on simplifying this expression ((isExist && a==0) || (!isExist && b==0))
Apr 10, 2020 05:51
Right, It would be hard to find a well maintained library that provide full suite
Apr 10, 2020 05:28
But I got your point
Apr 10, 2020 05:28
For that we can use pattern matching in Json Schema
Apr 10, 2020 05:23
So the only point of json schema is to help client know what goes where and to generate good error message if validation fails at schema level
Apr 10, 2020 05:17
Double check ? I thought Json schema validation should be able to validate non-business validation (null, size, length etc )
Apr 10, 2020 05:08
A very general question, Is it a good idea to allow user to upload configuration in Json format. I am asking this question because I don't think there are very well maintained Json schema libraries compared to XML.
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Jun 3, 2020 09:05
If I convert*
Jun 3, 2020 09:05
IS it okay , I convert column type of bit column to smallint or integer using ALTER table command, I don't see any problem though
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Apr 28, 2020 15:42
What does model in ngModel refers to
 

Trash can

Like the recycle bin, but trashier.
Mar 26, 2020 16:46
would someone like to answer a hibernate query: stackoverflow.com/questions/60870907/…